By 大伟哥 |
没有图形界面的Debian 11 虚拟机,在 Virtualbox 界面菜单上直接选择设备-安装增强功能的话,总是报错无法加载VBoxGuestAdditions.iso镜像文件,因此不能成功,需要在Debian系统内手动挂载镜像文件并执行脚本安装。
首先,在Virtualbox 管理界面,把VBoxGuestAdditions.iso选中,
然后启动虚拟机,进入Debian, 查看光驱信息,得到光驱名称是sr0:
cat /proc/sys/dev/cdrom/info
CD-ROM information, Id: cdrom.c 3.20 2003/12/17
drive name: sr0 drive speed: 32 drive # of slots: 1 Can close tray: 1 Can open tray: 1 Can lock tray: 1 Can change speed: 1 Can select disk: 0 Can read multisession: 1 Can read MCN: 1 Reports media changed: 1 Can play audio: 1 Can write CD-R: 0 Can write CD-RW: 0 Can read DVD: 1 Can write DVD-R: 0 Can write DVD-RAM: 0 Can read MRW: 0 Can write MRW: 0 Can write RAM: 0
挂载光驱到目录/media/cdrom下:
mount /dev/sr0 /media/cdrom
运行安装脚本:
sh /media/cdrom/VBoxLinuxAddtions.run
然后reboot就可以成功安装增强功能了。
- 149 阅读
添加新评论