From 31bad0ffb754afb8f8dd1c99f03f4322d6ae04b4 Mon Sep 17 00:00:00 2001 From: Robert James Hernandez Date: Wed, 13 Mar 2019 19:21:59 -0700 Subject: [PATCH 1/3] Fix freebsd vagrant priv config for vim-tiny --- scripts/vagrant-freebsd-priv-config.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/vagrant-freebsd-priv-config.sh b/scripts/vagrant-freebsd-priv-config.sh index f98e86b5f87..6288a806d0d 100755 --- a/scripts/vagrant-freebsd-priv-config.sh +++ b/scripts/vagrant-freebsd-priv-config.sh @@ -17,7 +17,7 @@ EOT pkg update pkg install -y \ - editors/vim-lite \ + editors/vim-tiny \ devel/git \ devel/gmake \ lang/go \ From c22facf3a5ee74f4afa71132d37a8dbcb51c91fc Mon Sep 17 00:00:00 2001 From: Robert James Hernandez Date: Wed, 13 Mar 2019 20:58:25 -0700 Subject: [PATCH 2/3] Set shell to sh and networking to host dhcp Set shell to sh which is present by default on freebsd. Also set networking to host dhcp due to limitations with NFS sharing: https://github.com/hashicorp/vagrant/issues/9063 --- Vagrantfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Vagrantfile b/Vagrantfile index 38d39d97bcf..81e072fd24f 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -49,9 +49,10 @@ Vagrant.configure(2) do |config| config.vm.define "freebsd", autostart: false, primary: false do |vmCfg| vmCfg.vm.box = FREEBSD_BASE_BOX vmCfg.vm.hostname = "freebsd" + vmCfg.ssh.shell = "sh" vmCfg = configureProviders vmCfg, cpus: suggestedCPUCores() - + vmCfg.vm.network "private_network", type: "dhcp" vmCfg.vm.synced_folder '.', '/opt/gopath/src/github.com/hashicorp/nomad', type: "nfs", From 20a16348fe1e98c0dbb09486de6190a510c947e4 Mon Sep 17 00:00:00 2001 From: Robert James Hernandez Date: Thu, 14 Mar 2019 18:36:30 -0700 Subject: [PATCH 3/3] Update vagrant box to freebsd 11.2 STABLE Freebsd 11.1 went EOL 9/30/18: https://lists.freebsd.org/pipermail/freebsd-announce/2018-September/001842.html Was seeing a failure with shared object "libdl.so.1" not found which is required for bash --- Vagrantfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Vagrantfile b/Vagrantfile index 81e072fd24f..7a182f8f6e9 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -3,7 +3,7 @@ # LINUX_BASE_BOX = "bento/ubuntu-16.04" -FREEBSD_BASE_BOX = "jen20/FreeBSD-11.1-RELEASE" +FREEBSD_BASE_BOX = "freebsd/FreeBSD-11.2-STABLE" Vagrant.configure(2) do |config| # Compilation and development boxes