无法在VirtualBox guest虚拟机中挂载共享


1

我正在尝试在VirtualBox中的来宾操作系统中挂载共享:

$ mount -t vboxsf share /mnt/share
/sbin/mount.vboxsf: mounting failed with the error: No such device

如果我单击角落中的文件夹图标,然后单击“共享文件夹设置...”,我会看到:“share”“/ Users / me / tmp / vm-transfer”“”“Full”,如果我双击行:

文件夹路径:/ Users / me / tmp / vm-transfer

文件夹名称:分享

(未选中)只读

(未选中)自动安装

(未选中)永久

guest虚拟机已安装guest虚拟机扩展:

$ lsmod
Module         Size  Used by
vboxvideo      1838  1
vboxguest    163929  1

Answers:



1

我要离开了 来自@ user287782的非常有用的答案 标记为已接受的答案,因为它是问题的根源。就我而言,我正在使用Gentoo,而在Gentoo上,“VirtualBox guest adds”将自己安装为 init.d 脚本,所以他们可以开始:

/etc/init.d/virtualbox-guest-additions start

或更好,

eselect rc start virtualbox-guest-additions

为了实现这一点,

eselect rc add virtualbox-guest-additions default

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.