From 3b796056b00fbf668c22b26d527d5224ace61741 Mon Sep 17 00:00:00 2001 From: Michael Friedrich Date: Sun, 3 Jun 2018 12:07:02 +0200 Subject: [PATCH] Add requirements and fixes for libvirt NFS for shared folders fixes #152 --- README.md | 11 +++++++++++ distributed/Vagrantfile | 4 ++-- elastic/Vagrantfile | 4 ++-- env/Vagrantfile | 4 ++-- graylog/Vagrantfile | 4 ++-- influxdb/Vagrantfile | 4 ++-- standalone/Vagrantfile | 4 ++-- 7 files changed, 23 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 97a9c04c..d05c0e3c 100644 --- a/README.md +++ b/README.md @@ -127,6 +127,17 @@ $ sudo apt-get install vagrant $ sudo apt-get install virtualbox ``` +### libvirt + +libvirt uses NFS for shared folders in the VMs, `nfs_udp: false` is already [set](https://github.com/Icinga/icinga-vagrant/issues/152). + +`nfs3` needs to be enabled in your local firewall to allow connections. + +``` +# firewall-cmd --permanent --add-service=nfs3 +# firewall-cmd --reload +``` + ## macOS macOS runs best with the Parallels provider, VirtualBox works as well. diff --git a/distributed/Vagrantfile b/distributed/Vagrantfile index 112d5ea4..c5a37166 100644 --- a/distributed/Vagrantfile +++ b/distributed/Vagrantfile @@ -42,7 +42,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| if options[:synced_folders] options[:synced_folders].each_pair do |source, target| - node_config.vm.synced_folder source, target + node_config.vm.synced_folder source, target, nfs_udp: false end end @@ -102,7 +102,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| node_config.vm.provision :shell, :path => "../.puppet/scripts/shell_provisioner_pre.sh" # sync generic hiera data - node_config.vm.synced_folder "../.puppet/hieradata", "/hieradata" + node_config.vm.synced_folder "../.puppet/hieradata", "/hieradata", nfs_udp: false # provisioner: install box using puppet manifest node_config.vm.provision :puppet do |puppet| diff --git a/elastic/Vagrantfile b/elastic/Vagrantfile index 112d5ea4..c5a37166 100644 --- a/elastic/Vagrantfile +++ b/elastic/Vagrantfile @@ -42,7 +42,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| if options[:synced_folders] options[:synced_folders].each_pair do |source, target| - node_config.vm.synced_folder source, target + node_config.vm.synced_folder source, target, nfs_udp: false end end @@ -102,7 +102,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| node_config.vm.provision :shell, :path => "../.puppet/scripts/shell_provisioner_pre.sh" # sync generic hiera data - node_config.vm.synced_folder "../.puppet/hieradata", "/hieradata" + node_config.vm.synced_folder "../.puppet/hieradata", "/hieradata", nfs_udp: false # provisioner: install box using puppet manifest node_config.vm.provision :puppet do |puppet| diff --git a/env/Vagrantfile b/env/Vagrantfile index 15db384c..3af26ecb 100644 --- a/env/Vagrantfile +++ b/env/Vagrantfile @@ -42,7 +42,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| if options[:synced_folders] options[:synced_folders].each_pair do |source, target| - node_config.vm.synced_folder source, target + node_config.vm.synced_folder source, target, nfs_udp: false end end @@ -102,7 +102,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| node_config.vm.provision :shell, :path => "../.puppet/scripts/shell_provisioner_pre.sh" # sync generic hiera data - node_config.vm.synced_folder "../.puppet/hieradata", "/hieradata" + node_config.vm.synced_folder "../.puppet/hieradata", "/hieradata", nfs_udp: false # provisioner: install box using puppet manifest node_config.vm.provision :puppet do |puppet| diff --git a/graylog/Vagrantfile b/graylog/Vagrantfile index 112d5ea4..c5a37166 100644 --- a/graylog/Vagrantfile +++ b/graylog/Vagrantfile @@ -42,7 +42,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| if options[:synced_folders] options[:synced_folders].each_pair do |source, target| - node_config.vm.synced_folder source, target + node_config.vm.synced_folder source, target, nfs_udp: false end end @@ -102,7 +102,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| node_config.vm.provision :shell, :path => "../.puppet/scripts/shell_provisioner_pre.sh" # sync generic hiera data - node_config.vm.synced_folder "../.puppet/hieradata", "/hieradata" + node_config.vm.synced_folder "../.puppet/hieradata", "/hieradata", nfs_udp: false # provisioner: install box using puppet manifest node_config.vm.provision :puppet do |puppet| diff --git a/influxdb/Vagrantfile b/influxdb/Vagrantfile index 112d5ea4..c5a37166 100644 --- a/influxdb/Vagrantfile +++ b/influxdb/Vagrantfile @@ -42,7 +42,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| if options[:synced_folders] options[:synced_folders].each_pair do |source, target| - node_config.vm.synced_folder source, target + node_config.vm.synced_folder source, target, nfs_udp: false end end @@ -102,7 +102,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| node_config.vm.provision :shell, :path => "../.puppet/scripts/shell_provisioner_pre.sh" # sync generic hiera data - node_config.vm.synced_folder "../.puppet/hieradata", "/hieradata" + node_config.vm.synced_folder "../.puppet/hieradata", "/hieradata", nfs_udp: false # provisioner: install box using puppet manifest node_config.vm.provision :puppet do |puppet| diff --git a/standalone/Vagrantfile b/standalone/Vagrantfile index 112d5ea4..c5a37166 100644 --- a/standalone/Vagrantfile +++ b/standalone/Vagrantfile @@ -42,7 +42,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| if options[:synced_folders] options[:synced_folders].each_pair do |source, target| - node_config.vm.synced_folder source, target + node_config.vm.synced_folder source, target, nfs_udp: false end end @@ -102,7 +102,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| node_config.vm.provision :shell, :path => "../.puppet/scripts/shell_provisioner_pre.sh" # sync generic hiera data - node_config.vm.synced_folder "../.puppet/hieradata", "/hieradata" + node_config.vm.synced_folder "../.puppet/hieradata", "/hieradata", nfs_udp: false # provisioner: install box using puppet manifest node_config.vm.provision :puppet do |puppet|