vagrant 的同步文件配置无法生效解决办法

耗尽温柔 提交于 2020-04-10 18:15:40

配置主机与虚机同步共享的文件夹

config.vm.synced_folder "./labs", "/home/vagrant/labs"

重新载入后报错

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 home_vagrant_labs /home/vagrant/labs

The error output from the command was:

mount: unknown filesystem type 'vboxsf'

解决方法

vagrant plugin install vagrant-vbguest

https://github.com/hashicorp/vagrant/issues/3341

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!