重庆分公司,新征程启航
为企业提供网站建设、域名注册、服务器等服务
简单记录一下VirtualBox的安装过程,出现的问题以及解决方案.
创新互联于2013年创立,先为巴青等服务建站,巴青等地企业,进行企业商务咨询服务。为巴青企业网站制作PC+手机+微官网三网同步一站式服务解决您的所有建站问题。目前的最新版本是6.1.18, 下载链接
双击执行安装,安装的时候可能会出现回退,然后提示出现严重错误,解决方法为:
1.启动服务Device Install Service和Device Setup Service,出错原因没有仔细查看日志信息,猜测是VirtualBox安装时需安装网卡等设备;
2.清理注册表:下载CCleaner,清理垃圾注册信息
1.新增共享文件夹:虚拟机设置中新增共享文件夹,选择Windows主机的共享文件夹,可不填挂载点
2.安装增强功能:
A.添加虚拟光驱
B.挂载光驱
mkdir -p /media/drive
mount -t auto /dev/cdrom /media/drive/
C.执行增强功能安装脚本
cd /media/drive/
sh VBoxLinuxAdditions.run
如安装过程出现错误”Could not find the X.Org or XFree86 Window System, skipping”,安装相应的组件即可
yum -y install xorg-x11-drivers xorg-x11-utils
重新执行此脚本:
[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_打头).