How to troubleshoot booting to a black screen on VirtualBox
I had this problem and my solution was simple.
Somehow, my VirtualBox configuration for the VM (Ubuntu) was changed after a VirtualBox upgrade. My guest VM was Ubuntu 64 bits and it was configured as 32-bit version. To change:
- Open VirtualBox
- Select your virtual machine and click on Configurations
- Go to General
- Change the version to Ubuntu (64-bit)
This is how I troubleshoot a non-starting Ubuntu in Virtual Box (assuming optimal settings for a virtual machine were already made):
- Make sure you had installed the most recent version of Virtual Box.
Try a reboot by entering a TTY terminal (Host + F1)
sudo reboot
Update the guest OS from TTY (Host + F1):
sudo apt update && sudo apt dist-upgrade
Install guest additions from command line.
- Reboot the guest after installing the guest additions.
Start lightdm manually from a TTY (Host + F1) with
sudo lightdm
Try several reboots of the VM. Due to timing issues it may help eventually.
- Try a reboot of the host.
- Check forums and virtualbox.org for known bugs.
For me, none of the previous answers worked. I solved this problem by disabling 3d acceleration on the vm settings page. This is quite odd since I've been using 3D acceleration flawlessly for months on that VM.