I almost went back to wired headphones before discovering this easy fix.
If headphones are not working with the virtual machine, follow these instructions, i.e., enable enhanced session mode, install guest additions, etc.