Just note during I use NFS as synced folder in Vagrant.
- In your host, you have to install nfs-kernel-server:
sudo apt-get install nfs-kernel-server
- In
your Vagrantfile, you have to specify private_network even you want to
use public_network. If you don't specify private_network, vagrant up
will fail. Then specify synced_folder.
config.vm.network "private_network", ip: "192.168.33.10"
config.vm.network "public_network", ip: "192.168.11.2", bridge: "eth0"
config.vm.synced_folder ".", "/vagrant", type: "nfs"
Reference:
沒有留言:
張貼留言