Skip to content

Commit 097827c

Browse files
committed
feat(Vagrantfile): add fallback to rsync
In some cases (namely when using an encrypted filesystem), a `vagrant up` will fail due to an NFS error. In these cases, it is necessary to fall back to rsync to share code between the local filesystem and the VM. This commit adds a comment to the Vagrantfile with these instructions and the necessary config directive. related to #942
1 parent ecdff91 commit 097827c

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Vagrantfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,13 @@ Vagrant.configure("2") do |config|
4444

4545
# Enable NFS for sharing the host machine into the coreos-vagrant VM.
4646
config.vm.synced_folder ".", "/home/core/share", id: "core", :nfs => true, :mount_options => ['nolock,vers=3,udp']
47+
# FALLBACK use rsync if NFS has issues (mandatory if using Windows, or any Linux with an encrypted filesystem)
48+
# config.vm.synced_folder ".", "/home/core/share", type: "rsync"
49+
# Note that with rsync, local Deis code changes need to be re-synced to the VM by issuing a `vagrant reload --provision`
4750

4851
# user-data bootstrapping
4952
config.vm.provision :file, :source => "contrib/coreos/user-data", :destination => "/tmp/vagrantfile-user-data"
5053
config.vm.provision :shell, :inline => "mv /tmp/vagrantfile-user-data /var/lib/coreos-vagrant/", :privileged => true
51-
5254
end
5355
end
5456

0 commit comments

Comments
 (0)