簡(jiǎn)單記錄一下VirtualBox的安裝過(guò)程,出現(xiàn)的問(wèn)題以及解決方案.
創(chuàng)新互聯(lián)于2013年創(chuàng)立,先為巴青等服務(wù)建站,巴青等地企業(yè),進(jìn)行企業(yè)商務(wù)咨詢服務(wù)。為巴青企業(yè)網(wǎng)站制作PC+手機(jī)+微官網(wǎng)三網(wǎng)同步一站式服務(wù)解決您的所有建站問(wèn)題。目前的最新版本是6.1.18, 下載鏈接
雙擊執(zhí)行安裝,安裝的時(shí)候可能會(huì)出現(xiàn)回退,然后提示出現(xiàn)嚴(yán)重錯(cuò)誤,解決方法為:
1.啟動(dòng)服務(wù)Device Install Service和Device Setup Service,出錯(cuò)原因沒(méi)有仔細(xì)查看日志信息,猜測(cè)是VirtualBox安裝時(shí)需安裝網(wǎng)卡等設(shè)備;
2.清理注冊(cè)表:下載CCleaner,清理垃圾注冊(cè)信息
1.新增共享文件夾:虛擬機(jī)設(shè)置中新增共享文件夾,選擇Windows主機(jī)的共享文件夾,可不填掛載點(diǎn)
2.安裝增強(qiáng)功能:
A.添加虛擬光驅(qū)
B.掛載光驅(qū)
mkdir -p /media/drive
mount -t auto /dev/cdrom /media/drive/
C.執(zhí)行增強(qiáng)功能安裝腳本
cd /media/drive/
sh VBoxLinuxAdditions.run
如安裝過(guò)程出現(xiàn)錯(cuò)誤”Could not find the X.Org or XFree86 Window System, skipping”,安裝相應(yīng)的組件即可
yum -y install xorg-x11-drivers xorg-x11-utils
重新執(zhí)行此腳本:
[root@localhost drive]# sh ./VBoxLinuxAdditions.run
Verifying archive integrity... All good.
Uncompressing VirtualBox 6.1.8 Guest Additions for Linux........
VirtualBox Guest Additions installer
Removing installed version 6.1.8 of VirtualBox Guest Additions...
Copying additional installer modules ...
Installing additional modules ...
VirtualBox Guest Additions: Starting.
VirtualBox Guest Additions: Building the VirtualBox Guest Additions kernel
modules. This may take a while.
VirtualBox Guest Additions: To build modules for other installed kernels, run
VirtualBox Guest Additions: /sbin/rcvboxadd quicksetup
VirtualBox Guest Additions: or
VirtualBox Guest Additions: /sbin/rcvboxadd quicksetup all
VirtualBox Guest Additions: Building the modules for kernel
3.10.0-693.el7.x86_64.
VirtualBox Guest Additions: Look at /var/log/vboxadd-setup.log to find out what
went wrong
VirtualBox Guest Additions: Running kernel modules will not be replaced until
the system is restarted
雖然提示出錯(cuò),實(shí)際上一安裝成功,進(jìn)入/media目錄可看到掛載的共享文件夾(以sf_打頭).