VBox安装增强功能报错怎么办
这期内容当中小编将会给大家带来有关VBox安装增强功能报错怎么办,文章内容丰富且以专业的角度为大家分析和叙述,阅读完这篇文章希望大家可以有所收获。
站在用户的角度思考问题,与客户深入沟通,找到泗水网站设计与泗水网站推广的解决方案,凭借多年的经验,让设计与互联网技术结合,创造个性化、用户体验好的作品,建站类型包括:成都网站制作、成都网站建设、外贸营销网站建设、企业官网、英文网站、手机端网站、网站推广、国际域名空间、网站空间、企业邮箱。业务覆盖泗水地区。
执行安装脚本,报错:
点击(此处)折叠或打开
[root@rhel601 vboxsp]# sh VBoxLinuxAdditions.run
Verifying archive integrity... All good. Uncompressing VirtualBox 5.1.12 Guest Additions for Linux........... VirtualBox Guest Additions installer Removing installed version 5.1.12 of VirtualBox Guest Additions... vboxadd.sh: Stopping VirtualBox Additions. Copying additional installer modules ... Installing additional modules ... vboxadd.sh: Building Guest Additions kernel modules. Failed to set up service vboxadd, please check the log file /var/log/VBoxGuestAdditions.log for details. |
查看安装日志文件:
点击(此处)折叠或打开
[root@rhel601 vboxsp]# cat /var/log/VBoxGuestAdditions.log
vboxadd.sh: failed: Look at /var/log/vboxadd-install.log to find out what went wrong.
vboxadd.sh: failed: Please check that you have gcc, make, the header files for your Linux kernel and possibly perl installed..
chcon: can't apply partial context to unlabeled file `/usr/lib64/VBoxGuestAdditions/mount.vboxsf'
检查gcc和make包是否安装以及kernel和kernel-devel是否安装,在本次错误中,gcc和kernel-devel包没有安装,所以需要执行安装。
点击(此处)折叠或打开
yum install -y gcc*
yum isntall -y kernel-devel
安装完成后结果如下:
yum list gcc
yum list make
yum list kernel kernel-devel
点击(此处)折叠或打开
[root@rhel601 ~]# yum list gcc*
Loaded plugins: product-id, security, subscription-manager
Updating certificate-based repositories.
Unable to read consumer identity
Installed Packages
gcc.x86_64 4.4.6-4.el6 @local
gcc-c++.x86_64 4.4.6-4.el6 @local
gcc-gfortran.x86_64 4.4.6-4.el6 @local
gcc-gnat.x86_64 4.4.6-4.el6 @local
gcc-java.x86_64 4.4.6-4.el6 @local
gcc-objc.x86_64 4.4.6-4.el6 @local
gcc-objc++.x86_64 4.4.6-4.el6 @local
[root@rhel601 ~]# yum list make
Loaded plugins: product-id, security, subscription-manager
Updating certificate-based repositories.
Unable to read consumer identity
Installed Packages
make.x86_64[root@rhel601 ~]# yum list kernel kernel-devel
Loaded plugins: product-id, security, subscription-manager
Updating certificate-based repositories.
Unable to read consumer identity
Installed Packages
kernel.x86_64 2.6.32-279.el6 @anaconda-RedHatEnterpriseLinux-201206132210.x86_64/6.3
kernel-devel.x86_64 2.6.32-279.el6 @local
再次执行安装:
点击(此处)折叠或打开
[root@rhel601 vboxsp]# sh VBoxLinuxAdditions.run
Verifying archive integrity... All good.
Uncompressing VirtualBox 5.1.12 Guest Additions for Linux...........
VirtualBox Guest Additions installer
Removing installed version 5.1.12 of VirtualBox Guest Additions...
vboxadd.sh: Stopping VirtualBox Additions.
Copying additional installer modules ...
Installing additional modules ...
vboxadd.sh: Building Guest Additions kernel modules.
vboxadd.sh: Starting the VirtualBox Guest Additions.
Could not find the X.Org or XFree86 Window System, skipping. --这里的错误忽略
上面表示插件安装完成。
上述就是小编为大家分享的VBox安装增强功能报错怎么办了,如果刚好有类似的疑惑,不妨参照上述分析进行理解。如果想知道更多相关知识,欢迎关注创新互联行业资讯频道。
当前标题:VBox安装增强功能报错怎么办
文章来源:http://pwwzsj.com/article/pojpei.html