Merge #678 Use SSHFS to sync folders in Vagrant with the libvirt provider

This commit is contained in:
Matt Prahl
2017-09-14 14:48:13 +00:00
2 changed files with 12 additions and 1 deletions

3
Vagrantfile vendored
View File

@@ -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

View File

@@ -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