Recently I upgraded my laptop from Ubuntu 16.04 LTS to 18.04 LTS. Everything is working perfectly fine but my computer freezes while doing something, dealing with virtual machines to be more specific. The mouse cursor moves but nothing on desktop responds. If I press Ctrl+Alt+F1, it locks the system and once I unlock the system again, everything remains frozen as it was.
I would provide any information if necessary. Also, I didn't had such issue in Ubuntu 16.04.
Best Answer
Virtualbox recently had a few problems with newer kernels. It might be worth trying to use the latest version directly from virtualbox.org.
To do so, please uninstall the Ubuntu version of Virtualbox, e.g. using apt:
Then, download the package file from virtualbox.org and install it using a package manager of your choice, e.g. using dpkg:
Make sure all necessary dependencies are installed:
Reboot and try running your VM again.