This is the error I receive trying to compile virtualbox:
/etc/init.d/vboxdrv setup
Stopping VirtualBox kernel module [ OK ]
Recompiling VirtualBox kernel module [FAILED]
(Look at /var/log/vbox-install.log to find out what went wrong)
[root@tonto lib]# more /var/log/vbox-install.log
Attempting to install using DKMS
Creating symlink /var/lib/dkms/vboxdrv/2.2.2/source ->
/usr/src/vboxdrv-2.2.2
DKMS: add Completed.
Error! Your kernel source for kernel 2.6.18-128.el5 cannot be found at
/lib/modules/2.6.18-128.el5/build or /lib/modules/2.6.18-128.el5/source.
You can use the --kernelsourcedir option to tell DKMS where it's located.
Failed to install using DKMS, attempting to install without
Makefile:140: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<di
rectory> and run Make again. Stop.
Please help!! Thanks.
Problems running virtualbox with centos 5.3
-
vbtroy
- Posts: 6
- Joined: 8. May 2009, 18:50
- Primary OS: Linux other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Linux
Re: Problems running virtualbox with centos 5.3
I had the same problem. I managed to work through it, but I didn't keep notes.
The part I do remember is that I had to go into /usr/src/vboxdrv-2.2.2 and modify build_in_tmp to add the second line below:
I made the same edit to /usr/src/vboxnetflt-2.2.2/build_in_tmp.
Try this and let me know if it's still broken, and paste the error, and I'll try to remember what else I had to do.
The part I do remember is that I had to go into /usr/src/vboxdrv-2.2.2 and modify build_in_tmp to add the second line below:
Code: Select all
DKMS=`which dkms 2>/dev/null`
DKMS="$DKMS --kernelsourcedir=/usr/src/kernels/2.6.18-128.1.6.el5-x86_64"Try this and let me know if it's still broken, and paste the error, and I'll try to remember what else I had to do.