Posted in Linux, Tutorials/Tips

Bodhi Linux: Configuring VirtualBox

Virtual-box is a very good tool, which also is free. You can install it from Synaptic or from official website download .deb file. You can use to install Linux or Windows virtually, by that I mean you can install it in to your computer without even changing your GRUB or restarting system. It will run just like simple program windows, which will have all OS. It does not matter why you use it: for testing purpose before installing into real machine, testing some random software, installing Windows just for some software you need, because maybe you do not like Wine. Okey let’s continue, let’s say you have already installed it from synaptic or .deb files, program it self runs, but when you start your virtual OS, you get an error.

Here are steps to make it working if get this error (you should get if using default Bodhi packages):

1. Enter command in to terminal:

sudo bash and then enter your password, then paste this command /etc/init.d/vboxdrv setup

2. You should see some text going, wait for it to complete:
vaidotas@Vaidotas-LPCL:~$ sudo bash
[sudo] password for vaidotas:
root@Vaidotas-LPCL:~# /etc/init.d/vboxdrv setup
* Stopping VirtualBox kernel modules [ OK ]
* Uninstalling old VirtualBox DKMS kernel modules [ OK ]
* Trying to register the VirtualBox kernel modules using DKMS
Error! Your kernel headers for kernel 3.0.0-12-generic cannot be found at
/lib/modules/3.0.0-12-generic/build or /lib/modules/3.0.0-12-generic/source.

* Failed, trying without DKMS
* Recompiling VirtualBox kernel modules
* Look at /var/log/vbox-install.log to find out what went wrong

3. Now look at number you got, for example I got 3.0.0-12-generic you might get others. Copy those numbers to synaptic.

4. After pasting number into Synaptic, you will need to install header files, for example I needed linux-headers-3.0.0-12-generic. Do not install other headers, they will only take your HDD space, but you will not use them.

5. After install, run command /etc/init.d/vboxdrv setup again.

6. Try Virtual-box again.

7. (optional) Virtual-Box now should work, if you want more functionality of it, like USB support. Then type this in terminal:

sudo usermod -a -G vboxusers YOUR_USERNAME<

Then reboot whole system.


PS: If you have installed virtual-box from synaptic or .deb file (not from .bod) then you need also to install gcc, search for it in Synaptic.

2 thoughts on “Bodhi Linux: Configuring VirtualBox

  1. Thanks man. I had exactly the same issue, your advice was very helpful. Thanks again 🙂

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.