Trying to use vagrant to mount a VM. I use libvirt as a provider.
I have this in my Vagrantfile :
config.vm.synced_folder ‘.’, ‘/toto’
I get the following :
==> default: Mounting NFS shared folders…
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!
mount -o vers=4 192.168.122.1:/home/ludovic/Documents/src/3liz/toto /vagrant
If all goes well you should now be able to cd /mnt/vagrant and see your files in the /vagrant directory of your virtual machine.
I am still quite a newbie but thought I’d try and help.
P.S. DO NOT FOLLOW THE " Permanently Mounting the Remote File System" instructions on that page. It will break your boot up. (I found out the hard way!)