×

如何安装Virtual Box的VBox Guest Additions扩展程序

hqy hqy 发表于2022-11-16 08:37:02 浏览327 评论0

抢沙发发表评论

Virtual Box的默认安装是不包含Guest Addition这个扩展的,在实际使用过程中带来种种不便,比如只能通过小窗口访问虚拟机的操作系统,通过默认的右Ctrl切换鼠标,不能和宿主操作系统共享文件等等。

这些弊端在安装了Guest Additions扩展程序后能得到完美解决。

Guest Additions,故名思议,需要在Guest即虚拟机操作系统里安装。

在VirtualBox的官网下载VBoxGuestAdditions.iso这个镜像文件,

http://download.virtualbox.or...

da4c30e39bf5454298e52fc015c1761a_1460000016822395.jpg

然后将保存在宿主操作系统本地的iso文件挂接到虚拟机操作修通的光驱里:

94c25395ed728b9886713b3538533cf7_1460000016822396.jpg

我的虚拟机操作系统是Ubuntu,新建一个文件夹/mnt/cdrom:

f52495af2e9c3b63ed9e73028fd474e0_1460000016822397.jpg

然后使用命令行sudo mount /dev/cdrom /mnt/cdrom将光驱挂接到目录/mnt/cdrom去:

656100cf107659132aa1ca27c407076d_1460000016822398.jpg

然后进入/mnt/cdrom, 就能看到镜像文件VBoxGuestAdditions.iso里的内容了:

3cc3b5767d4467dc05615053d37d813f_1460000016822399.jpg

执行脚本文件./VBoxLinuxAdditions.run:

65f95eba422ce5f8e52a6c4004ce1401_1460000016822400.jpg

f7d67ba3e77f2155904484cfb84f4742_1460000016822401.jpg

稍后收到提示: Running kernel modules will not be replaced until the system is restarted. 这说明Guest Additions已经在虚拟机操作系统Ubuntu里安装成功,重启虚拟机即生效。

779acc32e13eb467fe49469adca4d655_1460000016822402.jpg


 您阅读本篇文章共花了: 

打赏

本文链接:https://kinber.cn/post/2971.html 转载需授权!

分享到:


推荐本站淘宝优惠价购买喜欢的宝贝:

image.png

群贤毕至

访客