From ead489914f38576c133b7c0eb8987f485b1dab93 Mon Sep 17 00:00:00 2001 From: Dominik Ritter Date: Tue, 7 Mar 2017 22:21:52 +0100 Subject: [PATCH] Fix setup for BSD Mounting folders works in vagrant only with /bin/sh, not with /bin/tcsh or /bin/csh. And only via NFS or RSync, but not with vfs. But NFS requires a private network. --- test-bsd-vm/Vagrantfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/test-bsd-vm/Vagrantfile b/test-bsd-vm/Vagrantfile index d672c1c1..7df512a3 100644 --- a/test-bsd-vm/Vagrantfile +++ b/test-bsd-vm/Vagrantfile @@ -31,7 +31,7 @@ Vagrant.configure("2") do |config| # Create a private network, which allows host-only access to the machine # using a specific IP. - # config.vm.network "private_network", ip: "192.168.33.10" + config.vm.network "private_network", ip: "192.168.33.10" # Create a public network, which generally matched to bridged network. # Bridged networks make the machine appear as another physical device on @@ -43,13 +43,14 @@ Vagrant.configure("2") do |config| # There is no BASH for root on BSD. We need to set another shell. # See https://www.freebsd.org/doc/en/articles/linux-users/shells.html - config.ssh.shell = "/bin/csh" + config.ssh.shell = "/bin/sh" # Share an additional folder to the guest VM. The first argument is # the path on the host to the actual folder. The second argument is # the path on the guest to mount the folder. And the optional third # argument is a set of non-required options. - config.vm.synced_folder "..", "/vagrant_data" + config.vm.synced_folder "..", "/vagrant_data", type: "nfs" + config.vm.synced_folder ".", "/vagrant", type: "nfs" # Provider-specific configuration so you can fine-tune various # backing providers for Vagrant. These expose provider-specific options.