Chinaunix首页 | 论坛 | 博客
  • 博客访问: 108862
  • 博文数量: 40
  • 博客积分: 2058
  • 博客等级: 大尉
  • 技术积分: 409
  • 用 户 组: 普通用户
  • 注册时间: 2008-10-07 16:49
文章分类

全部博文(40)

文章存档

2011年(3)

2010年(17)

2009年(14)

2008年(6)

我的朋友

分类: LINUX

2010-07-27 11:06:37

24 号系统装装好了, 想给机子上安装一个虚拟机供编译内核之用,找了一下大家都推荐使用virtualBox。于是就开始给刚装好的fedora13 上安装虚拟机virtualBox。
首先到官网上下载fedora13的安装包*.rpm。
然后用rpm 工具进行安装。
自己下载了一个archlinux的镜像。在virtualbox 中“新建”的时候出现错误:
我在使用virtualbox 装系统的时候出现Error in SuplibOslnit 错误
具体问题如下

The VirtualBox Linux kernel driver (vboxdrv) is either not loaded or there is a permission problem with /dev/vboxdrv. Please reinstall the kernel module by executing

'/etc/init.d/vboxdrv setup'

as root. Users of Ubuntu, Fedora or Mandriva should install the DKMS package first. This package keeps track of Linux kernel changes and recompiles the vboxdrv kernel module if necessary.
我的 /var/log/vbox-install.log中的内容如下:
Attempting to install using DKMS
  removing old DKMS module vboxdrv version  3.2.6

------------------------------
Deleting module version: 3.2.6
completely from the DKMS tree.
------------------------------
Done.

Creating symlink /var/lib/dkms/vboxdrv/3.2.6/source ->
                 /usr/src/vboxdrv-3.2.6

DKMS: add Completed.
Error! Your kernel source for kernel 2.6.33.3-85.fc13.i686 cannot be found at
/lib/modules/2.6.33.3-85.fc13.i686/build or /lib/modules/2.6.33.3-85.fc13.i686/source.
You can use the --kernelsourcedir option to tell DKMS where it's located.
Failed to install using DKMS, attempting to install without
Makefile:159: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR= and run Make again。 停止。
原来是内核开发环境的问题,参考解决办法如下:

这里要着重强调:fedora 无论哪个版本系统安装上以后默认是没有安装内核开发环境的,如果你要在fedora上 编译内核模块或者和在安装的软件过程中Makefile中要用到/lib/modouls目录或者/usr/src/linux
是一定要安装 kernel-devel 和kernel-headers 等内核开发包。切记切记~。我在用fedora11 编译内核模块的时候也遇到过这种情况。感兴趣的可以查看这里fedora13 下编译模块遭遇若干问题 http://blog.chinaunix.net/u2/81539/showart.php?id=2208363。


阅读(1420) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~