mirror of
https://pagure.io/fm-orchestrator.git
synced 2026-02-03 05:03:43 +08:00
Use SSHFS to sync folders in Vagrant with the libvirt provider
This commit is contained in:
3
Vagrantfile
vendored
3
Vagrantfile
vendored
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user