diff --git a/Vagrantfile b/Vagrantfile index bbdf3462..6fbeefb2 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -59,7 +59,8 @@ Vagrant.configure("2") do |config| config.vm.network "forwarded_port", guest_ip: "0.0.0.0", guest: 13747, host: 13747 config.vm.provision "shell", inline: $script config.vm.provision "shell", inline: $script_services, run: "always" - config.vm.provider "libvirt" do |v| + config.vm.provider "libvirt" do |v, override| + override.vm.synced_folder "./", "/tmp/module_build_service", type: "sshfs" v.memory = 1024 #v.cpus = 2 end diff --git a/docs/CONTRIBUTING.rst b/docs/CONTRIBUTING.rst index 629aa922..3d8149a2 100644 --- a/docs/CONTRIBUTING.rst +++ b/docs/CONTRIBUTING.rst @@ -138,6 +138,16 @@ for folder syncing:: $ vagrant plugin install vagrant-vbguest +If you are using libvirt, then folder syncing will be done using SSHFS. To +install this on Fedora, use: + + $ dnf install vagrant-sshfs + +If you are using libvirt but not using Fedora, you can install the plugin +directly in Vagrant using: + + $ vagrant plugin install vagrant-sshfs + To launch Vagrant, run (depending on your OS, you may need to run it with sudo):: $ vagrant up