Mar 10, 2009

Install virtualbox on ubuntu 8.10

virtualbox is a virtualization solution for x86.

I am trying to install virtualbox on ubuntu 8.10 amd64 with "sudo aptitude install virtualbox-ose". It ends up with the following error message:

Error! Your kernel source for kernel 2.6.2-7-generic cannot be found at /lib/modules/2.6.27-7-generic/build or /lib/modules/2.6.27-7-generic/source. Installing initial module

Error! Could not locate vboxdrv.ko for module vboxdrv in the DKMS tree.
You must run a dkms build for kernel 2.6.27-7-generic (x86_64) first.

This error is solved by running "sudo aptitude install linux-headers-$(uname -r)" as suggested by some Einstein at here.

1 comment:

Greenland said...

One additional note: You will still not be able to start VMs b/c the character device /dev/vboxdrv does not exist. To setup the device, you need to
1. sudo aptitude remove virtualbox-ose
2. sudo aptitude install virtualbox-ose

This remove/install process does not require package download. The existing cache will be reused.

About Me

My photo