When running Linux inside a virtual machine you may see the following:
Error: Driver 'pcspkr' is already registered, aborting...
To resolve the issue we can simply instruct the kernel not to load the pcspkr module:
echo blacklist pcspkr >> /etc/modprobe.d/blacklist.conf
Just update boot files (with the new configuration):
update-initramfs -u -k all