Knowledge Base


Compile VirtualBox vboxdrv on kernel 2.6.37-rc2

At home i am running Ubuntu 10.04 and had decided to move away from their kernel and switch to 2.6.37-rc2 to check if the speed improves as much as everybody is telling (i do not notice a change to be honest, but thats a different story)

However, the virtualbox kernel driver did not compile anymore, i updated virtualbox to virtualbox-ose-3.1.6 but even that did not help.

The compile error was:

linux/VBoxNetAdp-linux.c:92: error: unknown field ‘ioctl’ specified

I checked the deb package virtualbox-ose-dkms and there applied the patch from Oracle from

( to it. 

Basically one has to go into the folder where apt-get put it's sources, in my case this was


I downloaded the patch (filename was 1226-001.bin but i renamed it to VBoxNetAdp-VBox-3.2-2.6.36.diff) and applied it

cd /usr/src/virtualbox-ose-3.1.6/vboxnetadp/linux
patch -p2 VBoxNetAdp-linux.c < VBoxNetAdp-VBox-3.2-2.6.36.diff

Then i ran apt-get install virtualbox-ose again and it compiled fine




<- Zurück zur Übersicht