您好,登录后才能下订单哦!
简单记录一下VirtualBox的安装过程,出现的问题以及解决方案.
目前的最新版本是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 <version>
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_打头).
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。