Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to correct virtualbox installation [closed]

Here is how the error output is if I run virtualbox from the terminal. How to correct it? I am on a Ubuntu 12.10 64bit machine.

virtualbox WARNING: The character device /dev/vboxdrv does not exist.      Please install the virtualbox-ose-dkms package and the appropriate      headers, most likely linux-headers-generic.       You will not be able to start VMs until this problem is fixed. 

EDIT:

I have both the latest linux-headers-generic and virtualbox-ose-dkms packages

like image 499
footy Avatar asked Nov 08 '12 14:11

footy


People also ask

How do you fix the VM session was closed before any attempt to power it on?

Uninstall and Re-Install VirtualBox. The next method to solve the "VM session session was closed before any attempt to power it on" problem in VirtualBox, is to uninstall and then to reinstall the VirtualBox application, especially if the problem appeared after a Windows Update.

How do I fix VirtualBox not opening?

Right-click on the VirtualBox executable file. Choose Properties, and go to the Compatibility tab. Click on Run compatibility troubleshooter or just check the Run this program in compatibility mode for field. Save your changes, and run the program with admin rights.

How do I Uninstal in VirtualBox?

Go to the "Start" (shell), "Contol Panel", "Programs and Features". A list of installed applications will be displayed in alphabetical order. Left click "Oracle VM VirtualBox" so it is selected, then "right click" it and choose "Uninstall" from the menu.


2 Answers

Before attempting to run this be sure that the current running Kernel headers are installed on your system. If you don't you will receive an error indicating that you need to install them or use the --kernelsource option to point to said headers.

Following the directions on this blog post helped me. Basically after you install those two packages you also need to do the reconfiguration:

sudo dpkg-reconfigure virtualbox-dkms  sudo dpkg-reconfigure virtualbox 
like image 145
Mike Ruelle Avatar answered Nov 10 '22 10:11

Mike Ruelle


After the two dpkg-reconfigure commands I also needed to run:

sudo modprobe vboxdrv 

And to fix eth0:

sudo modprobe vboxnetflt 
like image 24
AlexD Avatar answered Nov 10 '22 12:11

AlexD