I'm running into this problem were I spin up multiple VMs and the last one is the only one that gets my synced_folder NFS mount (only when I run a private_network), all the other ones
get permission denied because of the /etc/exports file.
--- Vagrantfile ---
# Machine level settings
#
config.vm.synced_folder "/Users/user", "/home/user", :nfs => true
#
# Enabling VMware GUI
#
#config.vm.provider "vmware_fusion" do |v|
# v.gui = true
#end
%w(machine1 machine2 new).each do |name|
config.vm.define name do |named_vm|
named_vm.vm.hostname = name
#named_vm.vm.synced_folder "/Users/user", "/home/user", :nfs => true (I tried this also)
named_vm.vm.provider :vmware_fusion do |v|
#v.vmx["memsize"] = 2048
#v.vmx["numvcpus"] = 1
#v.vmx["cpuid.coresPerSocket"] = 1
#v.vmx['vpmc.enable'] = 'TRUE'
v.vmx["displayName"] = name
#v.vmx["annotation"] = "comment"
v.vmx["vhv.enable"] = "TRUE" #IMPORTANT: edit the VM's VMX file to support x64 nested VMs (vInception: VMs within VMs)
end
end
end
config.vm.define :new do |new|
new.vm.network :private_network, ip: "10.10.10.10"
end
config.vm.define :machine1 do |machine1|
keystone.vm.network :private_network, ip: "10.10.10.11"
end
config.vm.define :machine2 do |machine2|
glance.vm.network :private_network, ip: "10.10.10.12"
end
$> cat /etc/exports
# VAGRANT-BEGIN: /Users/user/Vagrant/.vagrant/machines/machine2/vmware_fusion/vm.vmwarevm
"/Users/user" 10.10.10.12 -mapall=501:20
# VAGRANT-END: /Users/user/Vagrant/.vagrant/machines/machine2/vmware_fusion/vm.vmwarevm
Any help is appreciated.