when I try to use NFS with Vagrant to synchronize folders, on my wandering I see permissions as the group number 501.
I fixed the problem by disabling NFS and specifying the user and group manually in the Vagrant file. I would use NFS though.
Here is my VagrantFile
$BOX = "ubuntu/xenial64" $IP = "10.0.0.10" $MEMORY = ENV.has_key?('VM_MEMORY') ? ENV['VM_MEMORY'] : "1024" $CPUS = ENV.has_key?('VM_CPUS') ? ENV['VM_CPUS'] : "1" Vagrant.configure("2") do |config| config.vm.hostname = "name.dev" config.vm.box = $BOX config.vm.network :private_network, ip: $IP config.ssh.forward_agent = true config.vm.synced_folder ".", "/var/www/name/current", type: "nfs" config.vm.provider "virtualbox" do |v| v.name = "name v.customize ["modifyvm", :id, "--cpuexecutioncap", "100"] v.customize ["modifyvm", :id, "--memory", $MEMORY] v.customize ["modifyvm", :id, "--cpus", $CPUS] end end
I tried nfsbind, but it seems that this requires an absolute path, which I would prefer to avoid. Any tips?
thanks
virtual-machine vagrant virtualbox vagrantfile
vicdup
source share