My laptop has an 8th Generation Intel Core i5 8250U processor, with an Nvidia GeForce MX150 GPU, 8GB RAM and a 1TB hard drive. I have installed Ubuntu 16.04 64-bit as a guest OS on Windows 10 64-bit using VirtualBox. Ubuntu was not running smoothly, as there was a lot of lagging.
I searched online for information about the problem and many sources recommended to enable 3D acceleration in the VirtualBox guest OS settings so I did, but after a few loading screens Ubuntu 16.04 doesn't respond and gets stuck on a particular black screen with faint white text of some sort.
Checking Enable 3D Acceleration in the VirtualBox guest OS settings causes a black screen and checking on Enable 2D Video Acceleration results in a message that says: Invalid Settings have been selected
.
2D & 3D Acceleration and Video Memory settings in VirtualBox on Windows 10
You are doing exactly the opposite of what you should be doing when your guest OS has limited virtual hardware resources. Enabling 3D acceleration will give the guest OS better performance only if both the host OS and the guest OS have the hardware resources to support it.
Instead of enabling 3D acceleration you should allocate additional virtual hardware resources to the Ubuntu guest OS if it is possible to do so without depriving the Windows 10 host OS of the physical hardware resources that it needs to run properly.
Uncheck Enable 3D Acceleration.
In the left pane of VirtualBox click the Ubuntu 16.04 guest OS.
Click the Settings icon which looks like a yellow gear.
In the Ubuntu 16.04 - Settings window select Display -> Video tab.
Uncheck Enable 3D Acceleration (see below screenshot).
Increase the amount of available virtual RAM in the VirtualBox Ubuntu 16.04 guest OS.
In the left pane of VirtualBox click the Ubuntu 16.04 guest OS.
Click the Settings icon which looks like a yellow gear.
In the Ubuntu 16.04 - Settings window select System -> Motherboard tab.
Move the Base Memory slider to the right to increase the amount of virtual RAM to 4GB.
Increase the number of virtual processors from the default of 1 to 2.
Same as step 2 until you reach the Ubuntu 16.04 - Settings window and then select System -> Processor tab.
Move the Processor(s) slider to the right to increase the number of virtual processors from the default of 1 to 2.
Increase VirtualBox video RAM to the maximum amount of 256MB. From the Windows command line run:
If you run VirtualBox and go to Display in the Settings window, you would see:
Click the OK button in the lower right corner of the Ubuntu 16.04 - Settings window to apply the changes in the Ubuntu 16.04 guest OS settings.
Another thing to take into account is X11 vs Wayland. Wayland may not work that well in a virtual machine environment, so you may want to test the desktop behavior by editing the necessary gdm configuration, and enabling/disabling Wayland. This is done through the
/etc/gdm/custom.conf
file. In there look for the following line and comment/uncomment as needed: source