简单记录一下VirtualBox的
简单记录一下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_打头).
--结束END--
本文标题: VirtualBox安装
本文链接: https://lsjlt.com/news/47796.html(转载时请注明来源链接)
有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341
2024-10-23
2024-10-22
2024-10-22
2024-10-22
2024-10-22
2024-10-22
2024-10-22
2024-10-22
2024-10-22
2024-10-22
回答
回答
回答
回答
回答
回答
回答
回答
回答
回答
0