Installing NVIDIA drivers on Ubuntu (Guest) in VirtualBox causes it to stop working
Solution 1
It is not a good idea to install video drivers to a guest system.
Guest systems do not have direct access to the graphics adapter. That is why they use virtual VBox drivers.
Just remove the Nvidia driver and never install it to guest systems.
If you did not do that already, install Guest Additions from Machine
menu. This will install the virtual drivers.
Solution 2
I had recently installed Ubuntu 15.10 64-bit onto a USB thumb drive (not a Live USB!) and had trouble with running it on my laptop[1] natively and in VirtualBox interchangeably[2] while using nvidia-364
drivers. I experienced the login loop and several other problems after troubleshooting. My laptop has NVIDIA Optimus switchable graphics.
Selecting the "Intel (Power Saving Mode)" setting in the NVIDIA X Server Settings PRIME Profiles with my laptop before booting with VirtualBox solved this problem for me.
Here is an answer about installing nvidia-prime
.
Footnotes:
- Windows 8.1 64-bit host
- See this answer for more about booting USB drives in VirtualBox.
Related videos on Youtube
Grumpy ol' Bear
A meta-level binary dude embedded to a multimedia proxy world! Now we are all sons of bitches. - Kenneth Tompkins Bainbridge Patria O Muerte! - Ernesto 'Che' Guevara One useless man is a shame, two is a law firm, three or more is a congress. - John Quincy Adams Information is the currency of democracy. - Thomas Jefferson Now git of me goddamned lawn!
Updated on September 18, 2022Comments
-
Grumpy ol' Bear over 1 year
I'm running Ubuntu as a guest on VirtualBox.
When I install NVIDIA (current) drivers for my GTX 670 and restart Ubuntu, it starts into a permanent login-crash window.What's going on?
-
Grumpy ol' Bear over 8 yearsOh, thanks. Didn't know that. Learned something new. Any idea how to improve the graphic performance otherwise? Like different vbox drivers?
-
Pilot6 over 8 yearsYou need to install Guest Additions. These are the drivers.
-
Ömer ÇANGA almost 7 yearshi @Pilot6, I'm in reverse situation .. host is linux and guest is Win box,, I see that newer kernels will have direct access to GPU's, link: goo.gl/dGAa8z .. looking forward what future will bring us :)