Installing VirtualBox on a PAE Kernel System
Asagidaki islemleri yapmadan once bunlari yuklememiz gerekiyor yoksa kernel modul derlenmesi sirasinda sorunlar cikabilmektedir.
yum install kernel-devel
yum groupinstall "Development Tools"
Sonrada asagidaki adimlari uyguluyoruz.
I recently got stuck while trying to install Headless Virtualbox on a Centos 5.2 server per the directions at Howtoforge here. The RPM failed with the error that it couldn’t find the kernel source. I thought I had already installed kernel-devel, and confirmed that I did. The instructions were to define the KERN_DIR variable like so:
$ export KERN_DIR=/usr/src/kernels/2.6.18-92.1.22.el5-i686/
$ /etc/init.d/vboxdrv setup
Stopping VirtualBox kernel module [ OK ]
Removing old VirtualBox netflt kernel module [ OK ]
Removing old VirtualBox kernel module [ OK ]
Recompiling VirtualBox kernel module [ OK ]
Starting VirtualBox kernel module [FAILED]
(modprobe vboxdrv failed. Please use 'dmesg' to find out why)
dmesg shows this:
vboxdrv: disagrees about version of symbol struct_module
Interesting!
After several missteps, it turns out there is a separate development rpm for the PAE kernel:
$ yum install kernel-PAE-devel
After that installs, we are good:
$ export KERN_DIR=/usr/src/kernels/2.6.18-92.1.22.el5-PAE-i686/
$ /etc/init.d/vboxdrv setup
Stopping VirtualBox kernel module [ OK ]
Removing old VirtualBox netflt kernel module [ OK ]
Removing old VirtualBox kernel module [ OK ]
Recompiling VirtualBox kernel module [ OK ]
Starting VirtualBox kernel module [ OK ]
Kaynak:http://systembash.com/content/installing-virtualbox-pae-kernel-centos/