曲径通幽论坛

标题: 解决 Building The VirtualBox Guest Additions Kernel Modules [FAILED] 错误 [打印本页]

作者: beyes    时间: 2012-8-20 15:42
标题: 解决 Building The VirtualBox Guest Additions Kernel Modules [FAILED] 错误
在使用 VirtualBox 安装客户端 Linux 系统时,我们一般都会再安装其增强功能模块,但有时在你升级了系统后,发现增强模块已经失效,这往往是因为内核升级到了新版本的缘故,此时可以尝试在/opt/VBoxGuestAdditions-4.2.0_RC1/init/ 的目录下(上面 /opt 的目录名根据你安装的 VirtualBox 的 Guest Additions 的版本不同而不同)执行 vboxadd 命令,一般是重新进行设置:
./vboxadd setup
如果成功,那么就最好,但是也可能会失败,比如看到下面的失败信息提示:
Building the VirtualBox Guest Additions kernel modules     [FAILED]

造成这种情况的原因一般是在设计内核时,没有一并安装相应的内核开发包,以 Fedora 为例,我们可以如下执行安装命令:
yum install kernel-PAE-devel.i686
安装完成后,我们可以再次尝试安装  virtualbox 增强组件,可以在光盘 mount 的目录下(比如默认在 /media 下)执行相应命令:
./VBoxLinuxAdditions-x86.run

Verifying archive integrity… All good.
Uncompressing VirtualBox 3.1.4 Guest Additions for Linux……..
VirtualBox Guest Additions installer
Removing installed version of VirtualBox Guest Additions…
Building the VirtualBox Guest Additions kernel modules
Building the main Guest Additions module                   [  OK  ]
Building the shared folder support module                  [  OK  ]
Building the OpenGL support module                         [  OK  ]
Doing non-kernel setup of the Guest Additions              [  OK  ]
Starting the VirtualBox Guest Additions                    [  OK  ]
Installing the Window System drivers
Installing experimental X.Org Server 1.7 modules           [  OK  ]
Setting up the Window System to use the Guest Additions    [  OK  ]
You may need to restart the hal service and the Window System (or just restart
the guest system) to enable the Guest Additions.

Installing graphics libraries and desktop services componen[  OK  ]
完后,重新启动计算机,模块即可生效。




欢迎光临 曲径通幽论坛 (http://www.groad.net/bbs/) Powered by Discuz! X3.2