I’ve recently had some issues with Virtualbox guest VM’s crashing during hard drive intensive tasks (like apt-get dist-upgrade). I tried fixed/dynamice size VM guest hard drive space, 8-16GB allocated ram, VDI/VMDK,QED types, and 8-64 core count per VM. None of these fixes worked.
I reinstalled the Virtualbox-OSE pkg and noticed this message at the end of the install under “Troubleshooting”
If you are using AIO, then increase these limits (PR#168298):
To check if AIO is used use: kldstat -v | grep aio
I did some searching and it came here:
I did not have a /etc/sysctl.conf so I created the file and added the above fix.
*This fix worked for me and I have not seen any errors after a complete Ubuntu 16.04 guest VM install and upgrade.
Hopefully this can help someone else.