這期內(nèi)容當(dāng)中小編將會(huì)給大家?guī)碛嘘P(guān)VBox安裝增強(qiáng)功能報(bào)錯(cuò)怎么辦,文章內(nèi)容豐富且以專業(yè)的角度為大家分析和敘述,閱讀完這篇文章希望大家可以有所收獲。
成都創(chuàng)新互聯(lián)公司自2013年創(chuàng)立以來,先為海南等服務(wù)建站,海南等地企業(yè),進(jìn)行企業(yè)商務(wù)咨詢服務(wù)。為海南企業(yè)網(wǎng)站制作PC+手機(jī)+微官網(wǎng)三網(wǎng)同步一站式服務(wù)解決您的所有建站問題。
執(zhí)行安裝腳本,報(bào)錯(cuò):
點(diǎn)擊(此處)折疊或打開
[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. |
查看安裝日志文件:
點(diǎn)擊(此處)折疊或打開
[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是否安裝,在本次錯(cuò)誤中,gcc和kernel-devel包沒有安裝,所以需要執(zhí)行安裝。
點(diǎn)擊(此處)折疊或打開
yum install -y gcc*
yum isntall -y kernel-devel
安裝完成后結(jié)果如下:
yum list gcc
yum list make
yum list kernel kernel-devel
點(diǎn)擊(此處)折疊或打開
[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
再次執(zhí)行安裝:
點(diǎn)擊(此處)折疊或打開
[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. --這里的錯(cuò)誤忽略
上面表示插件安裝完成。
上述就是小編為大家分享的VBox安裝增強(qiáng)功能報(bào)錯(cuò)怎么辦了,如果剛好有類似的疑惑,不妨參照上述分析進(jìn)行理解。如果想知道更多相關(guān)知識(shí),歡迎關(guān)注創(chuàng)新互聯(lián)-成都網(wǎng)站建設(shè)公司行業(yè)資訊頻道。