简单记录一下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_打头).
免责声明:
① 本站未注明“稿件来源”的信息均来自网络整理。其文字、图片和音视频稿件的所属权归原作者所有。本站收集整理出于非商业性的教育和科研之目的,并不意味着本站赞同其观点或证实其内容的真实性。仅作为临时的测试数据,供内部测试之用。本站并未授权任何人以任何方式主动获取本站任何信息。
② 本站未注明“稿件来源”的临时测试数据将在测试完成后最终做删除处理。有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341
软考中级精品资料免费领
- 历年真题答案解析
- 备考技巧名师总结
- 高频考点精准押题
- 资料下载
- 历年真题
193.9 KB下载数265
191.63 KB下载数245
143.91 KB下载数1148
183.71 KB下载数642
644.84 KB下载数2756