Using Manjaro 18 (Arch Linux distro), I am running into issues with NFS.
I generally managed to fix the bulk of NFS and ssh key eerrors with the following adjustments ot the Vagrantfile:
# config.vm.network "private_network", ip: "10.10.0.63"
config.vm.network "private_network", type: "dhcp"
# config.vm.network 'private_network', :type => 'dhcp', :ip => '10.10.0.63'
config.hostmanager.enabled = true
config.hostmanager.manage_host = true
config.vm.synced_folder '.', '/vagrant', disabled: true
config.vm.synced_folder "project", "/data/shop/development/current",
type: 'nfs',
nfs_udp: false,
mount_options: ['rw', 'tcp'],
linux__nfs_options: ['rw', 'no_root_squash', 'async', 'insecure', 'no_subtree_check']
# SSH Key Access
public_key_path = File.join(Dir.home, ".ssh", "id_rsa.pub")
if File.exist?(public_key_path)
public_key = IO.read(public_key_path)
end
config.ssh.forward_agent = true
config.ssh.keys_only = false
# Disables the vagrant generated key.
# Uncomment if you only want access via user's key.
#config.ssh.insert_key = false
config.vm.provision :shell, :inline => <<-SCRIPT
set -e
# Add host user's ssh public key to authorized_hosts
homedir=$(getent passwd "$SUDO_USER" | cut -d: -f6)
echo '#{public_key}' >> $homedir/.ssh/authorized_keys
chmod 600 $homedir/.ssh/authorized_keys
SCRIPT
Now the remaining issue is that www-data does not seem to have write permissions in the file system. This is causing all web requests and workers to fail, since they fe. cannot write to the logs.