本文介绍了无业游民:无法使NFS工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试更改VagrantFile,以使其使用NFS挂载而不是默认的VirtualBox共享文件夹.
I'm trying to change my VagrantFile so that it uses an NFS mount instead of the default VirtualBox shared folders.
我收到此错误消息:
vm:
* Shared folders that have NFS enabled do not support owner/group
attributes. Host path: .
这是我的VagrantFile:
This is my VagrantFile:
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "ktbartholomew/lamp"
config.vm.network "private_network", type: "dhcp"
config.vm.synced_folder ".", "/vagrant", type: "nfs"
end
我看不到任何所有者或群组被设置.
I can't see any owner or group getting set.
请帮助!谢谢
推荐答案
仅当所有者或组为true时,Vagrant才会引发此错误.尝试通过为两个synced_folder配置的两个选项都传递nil来强制使用它.
Vagrant only raises this error when the owner or group is true. Try forcing it by passing nil for both these options for both synced_folder configs.
, group: nil, owner: nil
这篇关于无业游民:无法使NFS工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!