Simple clear advice in plain English

Get VirtualBox working in Ubuntu Linux

Virtualbox is great if you need to get Windows apps working in Ubuntu but it may need help to get working

Fix-virtualbox-problems-in-ubuntu
It is straightforward to get VirtualBox working in Ubuntu using the Terminal utility

VirtualBox is a very useful way of trying out other operating systems or to use Windows apps on a Linux computer without trying to get them working with Wine. In theory installation should be as simple as typing VirtualBox in the Software Centre and clicking on Install but once installed it doesn't always work properly.

In this case the problem was an error message that read:

WARNING: The vboxdrv kernel module is not loaded. 
Either there is no module available for the current
kernel (3.0.0-15-generic-pae) or it failed to load.
Please recompile the kernel module and install it by
sudo /etc/init.d/vboxdrv setup
You will not be able to start VMs until this problem is fixed.

This problem happened when VirtualBox was installed through the Software Centre and when installed by the download from the virtualbox.org website.

The solution is easy to follow but requires the terminal. Click on the Dash button, type terminal and click on Byobu Terminal. Type the command from the error message, entering your password when prompted:

sudo /etc/init.d/vboxdrv setup

This will probably display an error message but you need to find out which kernel version to use. In our case the error message reported that we needed to install linux-headers-3.0.0-15-generic-pae. Yours will probably be different depending on when you read this article and the computer you are using. Now type the following into the terminal window.

sudo apt-get install linux-headers-3.0.0-15-generic-pae

You will need to adjust this to the linux-headers version reported in the error message. We got some error messages but they didn't seem to be serious. Now type:

sudo /etc/init.d/vboxdrv setup

You should see the following message

* Stopping VirtualBox kernel modules
...done.
* Uninstalling old VirtualBox DKMS kernel modules
...done.
* Trying to register the VirtualBox kernel modules using DKMS
...done.
* Starting VirtualBox kernel modules
...done.

You can mow close the terminal window and use VirtualBox.

Article tags

Reader Comments

I have the same problem as @Giles.I am duel intobog Win8 and Ubuntu 11.10 with Windows XP off the same external hard drive connected via USB.I feel that my problem is caused by having two active partitions on the same disk

I have the same problem as @Giles.I am duel intobog Win8 and Ubuntu 11.10 with Windows XP off the same external hard drive connected via USB.I feel that my problem is caused by having two active partitions on the same disk

Posted by Bvbctbaeaminhagaita, 27 Mar 2012

   

Add your comment

All fields must be completed. Your email address will not be displayed or used to send marketing messages.

All messages will be checked by moderators before appearing on the site.

See our Privacy Policy for more information.

Related articles

myunity-customiser-utility-for-ubuntu

Tame the Ubuntu 11.10 Unity interface with MyUnity

Customise how the Unity desktop looks and works

Desktops screenshot

25 free Microsoft Windows Tools

Microsoft has many free downloads, but they're sometimes tricky to find. Here's a round-up of some of the most useful tools in the Sysinternals Suite

Loose cables graphics cards or memory modules can cause problems

Solve problems with your computer

Are you frustrated when your PC beeps, gives an error message and doesn't do what you want it to? We explain what these problems are and how to fix them

Question & Answer

Q.Why are some of the keys on my keyboard doing strange...

> Read the answer

Q.Is my phone’s Bluetooth any use?

> Read the answer

Q.Can I switch boot drives so that I can work on older...

> Read the answer

Best deals on the web

img

WACOM Bamboo Pen & Touch Graphics Tablet

£47.97- Buy it now

img

LIVESCRIBE Echo Smartpen - 2GB, Black

£69.99- Buy it now

img

Dell Keyboard : Danish (Qwerty) Dell KB212-B Quietkey USB Keyboard Black (Kit)

£21.59- Buy it now

Latest issue & subscription deals

Poll

Are you concerned about viruses that target mobile phones?

Jargon Buster

Computing terms explained in plain English

Restore point

A Windows backup of system files and settings.

Great shopping deals from Computeractive