check out my new blog at gmarik.info/blog

Tuesday, October 23, 2007

VirtualBox on Fedora installation

I was setting up VirtualBox on my machine and encountered error:

$ sudo /etc/init.d/vboxdrv setup
Starting VirtualBox kernel module FATAL: Error inserting vboxdrv (/lib/modules/2.6.22.9-61.fc6/misc/vboxdrv.ko): Invalid module format

Well that was because my kernel-sources didn't match my running kernel the module was built for.

I checked the /usr/src/kernels:
2.6.22.9-61.fc6-i586

and compared with uname -a:
Linux gm 2.6.22.9-61.fc6 #1 SMP Thu Sep 27 18:48:03 EDT 2007 i686 i686 i386 GNU/Linux

machine architecture uname -i:
i686

That means that to get module compiled i need to have kernel-sources(package named kernel-devel on fedora): for i686 architecture, and i had i586 instead

so find appropriate package:
$ sudo yum search kernel-devel:
kernel-devel.i686 2.6.22.9-61.fc6 updates
Matched from:
kernel-devel

then install it
$ sudo yum install kernel-devel-2.6.22.9-61.fc6.i686

now link like:
$ cd /usr/src/
$ sudo ln -s kernels/2.6.22.9-61.fc6-i686/ linux

to get linux link to point installed sources this:
[gmarik@gm src]$ ls -l
kernels
linux -> kernels/2.6.22.9-61.fc6-i686/
redhat

Having done that now we can try to setup VirtualBox again:
$ sudo /etc/init.d/vboxdrv setup
Stopping VirtualBox kernel module [ OK ]
Recompiling VirtualBox kernel module [ OK ]
Starting VirtualBox kernel module [ OK ]

PS: make sure your user have been added to vboxusers group
PPS: usually after rebooting machine i need to do:
$ sudo chmod g+rw /dev/vboxdrv

Labels: , , , , ,

 check out my new blog at gmarik.info/blog

Thursday, October 04, 2007

yet another html+css table bars|charts


Download & view

Labels: , ,