Skip to content
Snippets Groups Projects
Commit 0f4071dd authored by ale's avatar ale
Browse files

Support both virtualbox and libvirt providers in Vagrantfile

parent 238ef6cf
No related branches found
No related tags found
No related merge requests found
Pipeline #15600 passed
......@@ -10,11 +10,10 @@ Vagrant.configure(2) do |config|
# Disable synchronization of the /vagrant folder for faster startup.
config.vm.synced_folder ".", "/vagrant", disabled: true
# Uncomment to increase RAM to 1G.
#config.vm.provider :virtualbox do |vb|
# vb.customize ["modifyvm", :id, "--memory", "1024"]
#end
# Increase RAM to 1G.
config.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--memory", "1024"]
end
config.vm.provider :libvirt do |libvirt|
libvirt.memory = 1024
end
......@@ -23,7 +22,7 @@ Vagrant.configure(2) do |config|
(1..NUM_HOSTS).each do |i|
config.vm.define "host#{i}" do |m|
m.vm.hostname = "host#{i}"
m.vm.network "private_network", ip: "10.236.82.#{9+i}"
m.vm.network "private_network", ip: "10.236.82.#{9+i}", libvirt__dhcp_enabled: false
end
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment