diff options
author | Dominik Ritter <dritter03@googlemail.com> | 2017-03-08 00:21:52 +0300 |
---|---|---|
committer | Dominik Ritter <dritter03@googlemail.com> | 2017-03-08 01:42:00 +0300 |
commit | ead489914f38576c133b7c0eb8987f485b1dab93 (patch) | |
tree | 5feeb7fc7bca3a05cd5e29d011d2ac8ab29a595c /test-bsd-vm | |
parent | 65556eba1bfda7458608adad190213e1dc781f4c (diff) |
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.
Diffstat (limited to 'test-bsd-vm')
-rw-r--r-- | test-bsd-vm/Vagrantfile | 7 |
1 files 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. |