This is the line you need to get sound working within DOS in VirtualBox. Put this in your autoexec.bat
SET BLASTER=A200 I5 D1 T6 H7 P330
A lot of games and other apps won’t work due to lack of memory. This is because Virtualbox doesn’t actually emulate an IBM-compatible PC and doesn’t set up the memory properly. VMware is a better option.