簡單記錄一下VirtualBox的安裝過程,出現(xiàn)的問題以及解決方案.
成都創(chuàng)新互聯(lián)公司2013年成立,先為祁連等服務(wù)建站,祁連等地企業(yè),進行企業(yè)商務(wù)咨詢服務(wù)。為祁連企業(yè)網(wǎng)站制作PC+手機+微官網(wǎng)三網(wǎng)同步一站式服務(wù)解決您的所有建站問題。
目前的最新版本是6.1.18, 下載鏈接
雙擊執(zhí)行安裝,安裝的時候可能會出現(xiàn)回退,然后提示出現(xiàn)嚴(yán)重錯誤,解決方法為:
1.啟動服務(wù)Device Install Service和Device Setup Service,出錯原因沒有仔細查看日志信息,猜測是VirtualBox安裝時需安裝網(wǎng)卡等設(shè)備;
2.清理注冊表:下載CCleaner,清理垃圾注冊信息
1.新增共享文件夾:虛擬機設(shè)置中新增共享文件夾,選擇Windows主機的共享文件夾,可不填掛載點
2.安裝增強功能:
A.添加虛擬光驅(qū)
B.掛載光驅(qū)
mkdir -p /media/drive
mount -t auto /dev/cdrom /media/drive/
C.執(zhí)行增強功能安裝腳本
cd /media/drive/
sh VBoxLinuxAdditions.run
如安裝過程出現(xiàn)錯誤”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
雖然提示出錯,實際上一安裝成功,進入/media目錄可看到掛載的共享文件夾(以sf_打頭).