Ubuntu has a habit of beeping the virtual PC's speaker. To silence it, add the following line to your VMX file on the host:
mks.noBeep = "TRUE"
Note: Make sure you get ordinary quote marks around the TRUE, and not typographic quotes.
If that doesn't work, in Ubuntu:
- vi /etc/modprobe.d/blacklist.conf and add "blacklist pcspkr"