Vagrant: Add support for parallels and libvirt

This change adds support for using both parallels and libvirt as the Vagrant
hypervisor backend.

Note this change is untested, but should in theory work. Those running
Vagrant with parallels or libvirt are welcome to try this out.

Change-Id: I23511fec12238a8e3bcccea4874101d9e66c7612
Signed-off-by: Kyle Mestery <mestery@mestery.com>
This commit is contained in:
Kyle Mestery 2016-05-22 20:19:53 -05:00
parent b25f9f41e6
commit a0f238eebf
1 changed files with 42 additions and 0 deletions

42
vagrant/Vagrantfile vendored
View File

@ -27,6 +27,20 @@ Vagrant.configure(2) do |config|
vb.memory = vagrant_config['devstack_controller']['memory']
vb.cpus = vagrant_config['devstack_controller']['cpus']
end
config.vm.provider 'parallels' do |vb, override|
vb.memory = vagrant_config['devstack_controller']['memory']
vb.cpus = vagrant_config['devstack_controller']['cpus']
vb.customize ['set', :id, '--nested-virt', 'on']
override.vm.box = ENV.fetch('VAGRANT_OVN_VM_BOX', 'boxcutter/ubuntu1404')
end
config.vm.provider 'libvirt' do |vb, override|
vb.memory = vagrant_config['devstack_controller']['memory']
vb.cpus = vagrant_config['devstack_controller']['cpus']
vb.nested = true
vb.graphics_type = 'spice'
vb.video_type = 'qxl'
override.vm.box = ENV.fetch('VAGRANT_OVN_VM_BOX', 'boxcutter/ubuntu1404')
end
end
# Bring up the Devstack compute nodes on Virtualbox
@ -39,6 +53,20 @@ Vagrant.configure(2) do |config|
vb.memory = vagrant_config['devstack_compute1']['memory']
vb.cpus = vagrant_config['devstack_compute1']['cpus']
end
config.vm.provider 'parallels' do |vb, override|
vb.memory = vagrant_config['devstack_compute1']['memory']
vb.cpus = vagrant_config['devstack_compute1']['cpus']
vb.customize ['set', :id, '--nested-virt', 'on']
override.vm.box = ENV.fetch('VAGRANT_OVN_VM_BOX', 'boxcutter/ubuntu1404')
end
config.vm.provider 'libvirt' do |vb, override|
vb.memory = vagrant_config['devstack_compute1']['memory']
vb.cpus = vagrant_config['devstack_compute1']['cpus']
vb.nested = true
vb.graphics_type = 'spice'
vb.video_type = 'qxl'
override.vm.box = ENV.fetch('VAGRANT_OVN_VM_BOX', 'boxcutter/ubuntu1404')
end
end
config.vm.define "devstack_compute2" do |devstack_compute2|
@ -50,5 +78,19 @@ Vagrant.configure(2) do |config|
vb.memory = vagrant_config['devstack_compute2']['memory']
vb.cpus = vagrant_config['devstack_compute2']['cpus']
end
config.vm.provider 'parallels' do |vb, override|
vb.memory = vagrant_config['devstack_compute2']['memory']
vb.cpus = vagrant_config['devstack_compute2']['cpus']
vb.customize ['set', :id, '--nested-virt', 'on']
override.vm.box = ENV.fetch('VAGRANT_OVN_VM_BOX', 'boxcutter/ubuntu1404')
end
config.vm.provider 'libvirt' do |vb, override|
vb.memory = vagrant_config['devstack_compute2']['memory']
vb.cpus = vagrant_config['devstack_compute2']['cpus']
vb.nested = true
vb.graphics_type = 'spice'
vb.video_type = 'qxl'
override.vm.box = ENV.fetch('VAGRANT_OVN_VM_BOX', 'boxcutter/ubuntu1404')
end
end
end