Chinaunix首页 | 论坛 | 博客
  • 博客访问: 163890
  • 博文数量: 15
  • 博客积分: 2015
  • 博客等级: 大尉
  • 技术积分: 630
  • 用 户 组: 普通用户
  • 注册时间: 2006-06-01 09:11
文章分类

全部博文(15)

文章存档

2011年(2)

2010年(8)

2009年(1)

2008年(4)

我的朋友
最近访客

分类: LINUX

2010-10-08 22:24:15

So here is how I installed VirtualBox on a PAE kernel

uname-a
Linux xxxxxx 2.6.18-128.el5PAE #1 SMP Wed Jan 21 11:19:46 EST 2009 i686 i686 i386 GNU/Linux


On initial install of Virtual Box I had the following error:

VirtualBox-2.2.4_47978_rhel5-1.i386

Creating group 'vboxusers'. VM users must be member of that group!

No precompiled module for this kernel found -- trying to build one. Messages
emitted during module compilation will be logged to /var/log/vbox-install.log.

Compilation of the kernel module FAILED! VirtualBox will not start until this
problem is fixed. Please consult /var/log/vbox-install.log to find out why the
kernel module does not compile. Most probably the kernel sources are not found.
Install them and execute

/etc/init.d/vboxdrv setup

as root.


After hours messing with Xen kernel I was expecting as much!
So as recommended I carried out the setup

/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)



Darn, here we go again..
So I updated headers for PAE kernel.

yum install kernel-PAE-devel
export KERN_DIR=/usr/src/kernels/2.6.18-128.1.10.el5-PAE-i686/


Tried the setup again but forgot that I had a clean install of centos so had to install gcc!

yum install gcc

and redid the setup

I still had errors as the compilers could not find the headers.

** Compiling vboxdrv
Makefile:145: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR= and run Make again. Stop.


The following declaration stating where the correct headers were did the trick.
(Note that this directory depends on the kernel version!)

export KERN_DIR=/usr/src/kernels/2.6.18-128.1.10.el5-PAE-i686/
/etc/init.d/vboxdrv setup
Stopping VirtualBox kernel module [ OK ]
Recompiling VirtualBox kernel module [ OK ]
Starting VirtualBox kernel module [ OK ]
阅读(2697) | 评论(1) | 转发(0) |
给主人留下些什么吧!~~

chinaunix网友2010-10-10 15:37:32

很好的, 收藏了 推荐一个博客,提供很多免费软件编程电子书下载: http://free-ebooks.appspot.com