4-1 安装dkms no
-
[popexizhi]
110 just setup ok,
#uname -a
Linux xxx 2.6.18-348.3.1.el5xen #1 SMP Mon Mar 11 20:28:48 EDT 2013 x86_64 x86_64 x86_64 GNU/Linux
本以为这此Kernel 2.6 可以直接安装Vbox了,但是setup就提示:
Stopping VirtualBox kernel module [ OK ] Recompiling VirtualBox kernel module [FAILED] (Look at /var/log/vbox-install.log to find out what went wrong)
开始以为是dkms没有安装呢,so
#yum install yum
但却提示“No package dkms available.”
go了一下,发现 还是看一下/var/log/vbox-install.log 吧!
“Makefile:181: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=and run Make again。 停止。”
这次再[go]
来源:http://www.linuxquestions.org/questions/linux-desktop-74/latest-version-of-virtualbox-kernel-errors-on-centos-5-i386-645991/
应该是这个,回去看看上次在testlinke 上 稀里糊涂的setup ok的setp中就有
yum install dkms kernel-PAE-devel qt qt-xll gcc
这个PAE上次在高配置的win7上因为没有选择就报错很久
查看http://www.linuxquestions.org/questions/linux-desktop-74/latest-version-of-virtualbox-kernel-errors-on-centos-5-i386-645991/
【原文】
Hi. You're in luck because I'm doing the same exact thing (except my server is x86_64.)
You will need the kernel sources. Downloading kernel-devel or kernel-headers does not work. CentOS kernel sources aren't available through yum, so I used these steps from the CentOS wiki.http://wiki.centos.org/HowTos/I_need_the_Kernel_Source
Getting CentOS kernel sources to build VirtualBox kernel module
of course, you may not run some of these commands if you already have the packages installed.
as root:
Code:# yum groupinstall "Development Tools" # yum groupinstall "Development Libraries" # yum install unifdef rpm-build
【popexizhi:应该是内核源码没有下载的问题,按原文安装了一下,重启系统。
然后
export KERN_DIR=/usr/src/kernels/2.6.18-128.1.10.el5-PAE-i686/
/etc/init.d/vboxdrv setup
ok 了】
【note】
yum groupinstall ----批量安装软件【参见:http://zhangjun2915.blog.163.com/blog/static/380862362010528104646736/】
Vbox 的CPU PAE/NX 选项 --扩展CPU访问4GB以上的内存[参见http://baike.baidu.com/view/493711.htm 和 http://qubuntu.blog.163.com/blog/static/195703121201192212147796/]
没有评论:
发表评论