Vagrant挂载目录失败mount: unknown filesystem type ‘vboxsf’

2018-04-28 13:39:02 浏览数 (3)

代码语言:javascript复制
错误提示:
Vagrant was unable to mount VirtualBox shared folders. This is usually
because the filesystem “vboxsf” is not available. This filesystem is
made available via the VirtualBox Guest Additions and kernel module.
Please verify that these guest additions are properly installed in the
guest. This is not a bug in Vagrant and is usually caused by a faulty
Vagrant box. For context, the command attempted was:
mount -t vboxsf -o uid=1000,gid=1000 vagrant /vagrant
The error output from the command was:
mount: unknown filesystem type ‘vboxsf’
1、打开
/Applications/VirtualBox.app/Contents/MacOS
2、找到
VBoxGuestAdditions.iso
加载到虚拟机
如果没有可以到这里下载
http://download.virtualbox.org/virtualbox/5.0.14/VBoxGuestAdditions_5.0.14.iso
3、在虚拟机当中执行
sudo mount /dev/sr0 /media/cdrom
4、cd /media/cdrom/ && sh ./VBoxLinuxAdditions.run
5、reboot下虚拟机即可

0 人点赞