![当 Ubuntu 服务器是 Windows 主机上的客户机时,如何包含 VirtualBox GuestAdditions?](https://linux22.com/image/1032253/%E5%BD%93%20Ubuntu%20%E6%9C%8D%E5%8A%A1%E5%99%A8%E6%98%AF%20Windows%20%E4%B8%BB%E6%9C%BA%E4%B8%8A%E7%9A%84%E5%AE%A2%E6%88%B7%E6%9C%BA%E6%97%B6%EF%BC%8C%E5%A6%82%E4%BD%95%E5%8C%85%E5%90%AB%20VirtualBox%20GuestAdditions%EF%BC%9F.png)
我一直试图将 Windows 10 主机上的文件夹与 Ubuntu 服务器 VirtualBox 客户机共享。但没有任何成功。这是对此的回答问题看起来很有希望,但失败了
$ sudo mount /dev/sr0 /cdrom
mount: /cdrom: mount point does not exist.
主机:Windows 10 Pro,22H2 Build 19045.3930 客户机:Ubuntu Server 22.04.3 已更新并升级至最新
当然,这需要一些额外的魔法。但是需要什么呢?
以下是新构建的客户虚拟机中 VBox.log 中的部分选定行。这些行是在注意到设备已选择客户添加 iso 后获取的。
VBox.log摘录:
00:00:49.320576 VMMDev: Guest Additions information report: Version 6.0.0 r127566 '6.0.0'
00:00:49.320633 VMMDev: Guest Additions information report: Interface = 0x00010004 osType = 0x00053100 (Linux >= 2.6, 64-bit)
00:00:49.320829 VMMDev: Guest Additions capability report: (0x0 -> 0x0) seamless: no, hostWindowMapping: no, graphics: no
00:00:49.321030 GUI: UISession::sltAdditionsChange: GA state change event came, notifying listeners
00:00:49.321150 GUI: UISession::sltAdditionsChange: GA state change event came, notifying listeners
00:00:51.431218 GUI: UISession::sltAdditionsChange: GA state really changed, notifying listeners
00:00:51.431266 GUI: UISession::sltAdditionsChange: GA state change event came, notifying listeners
00:17:20.664248 GUI: UISession::sltAdditionsChange: GA state really changed, notifying listeners
00:17:20.664350 GUI: UISession::sltAdditionsChange: GA state change event came, notifying listeners
00:17:40.092446 VMMDev: Guest Additions information report: Version 6.0.0 r127566 '6.0.0'
00:17:40.092896 VMMDev: Guest Additions information report: Interface = 0x00010004 osType = 0x00053100 (Linux >= 2.6, 64-bit)
00:17:40.093165 GUI: UISession::sltAdditionsChange: GA state change event came, notifying listeners
00:17:40.093562 VMMDev: Guest Additions capability report: (0x0 -> 0x0) seamless: no, hostWindowMapping: no, graphics: no
00:17:40.093747 GUI: UISession::sltAdditionsChange: GA state change event came, notifying listeners
00:17:40.127555 GUI: UISession::sltAdditionsChange: GA state really changed, notifying listeners
00:17:40.127607 GUI: UISession::sltAdditionsChange: GA state change event came, notifying listeners
00:25:19.300129 File system of 'C:\Program Files\Oracle\VirtualBox/VBoxGuestAdditions.iso' (DVD) is ntfs
00:25:19.301531 Path <string> = "C:\Program Files\Oracle\VirtualBox/VBoxGuestAdditions.iso" (cb=58)
答案1
我认为跑步:
apt install virtualbox-guest-utils
在客人可能做你想做的事。