曲径通幽论坛

 找回密码
 立即注册
搜索
查看: 3460|回复: 0
打印 上一主题 下一主题

解决 Building The VirtualBox Guest Additions Kernel Modules [FAILED] 错误

[复制链接]

4918

主题

5880

帖子

3万

积分

GROAD

曲径通幽,安觅芳踪。

Rank: 6Rank: 6

积分
34387
跳转到指定楼层
楼主
发表于 2012-8-20 15:42:43 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
在使用 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  ]
完后,重新启动计算机,模块即可生效。
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Archiver|曲径通幽 ( 琼ICP备11001422号-1|公安备案:46900502000207 )

GMT+8, 2024-6-2 21:20 , Processed in 0.059690 second(s), 22 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表