【发布时间】:2017-06-01 20:49:18
【问题描述】:
我需要在我的ubuntu/xenial64 框中将权限和所有权设置为/vagrant,并且我在 Vagrant 文件中找到了几个很好的配置选项解决方案。然而,我的问题是这个 - 我找不到答案:
我的默认 Vagrant 文件(Vagrant 1.9.5)在同步文件夹上没有任何配置。然而项目目录被同步到来宾中的/vagrant。所以没关系。
但如果我在 Vagrant 文件中添加任何配置,例如:
config.vm.synced_folder ".", "/vagrant",
mount_options: ["dmode=755, fmode=644"]
我在vagrant up 上收到一个错误,这基本上告诉我盒子上没有安装Guest Additions。所以很明显 vagrant 将我的指令解释为指的是我不需要的其他同步文件夹。
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...
基本上我不明白在哪里可以设置默认同步文件夹的选项?
【问题讨论】:
标签: permissions vagrant virtualbox synced-folder