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:
parent
b25f9f41e6
commit
a0f238eebf
42
vagrant/Vagrantfile
vendored
42
vagrant/Vagrantfile
vendored
@ -27,6 +27,20 @@ Vagrant.configure(2) do |config|
|
|||||||
vb.memory = vagrant_config['devstack_controller']['memory']
|
vb.memory = vagrant_config['devstack_controller']['memory']
|
||||||
vb.cpus = vagrant_config['devstack_controller']['cpus']
|
vb.cpus = vagrant_config['devstack_controller']['cpus']
|
||||||
end
|
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
|
end
|
||||||
|
|
||||||
# Bring up the Devstack compute nodes on Virtualbox
|
# 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.memory = vagrant_config['devstack_compute1']['memory']
|
||||||
vb.cpus = vagrant_config['devstack_compute1']['cpus']
|
vb.cpus = vagrant_config['devstack_compute1']['cpus']
|
||||||
end
|
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
|
end
|
||||||
|
|
||||||
config.vm.define "devstack_compute2" do |devstack_compute2|
|
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.memory = vagrant_config['devstack_compute2']['memory']
|
||||||
vb.cpus = vagrant_config['devstack_compute2']['cpus']
|
vb.cpus = vagrant_config['devstack_compute2']['cpus']
|
||||||
end
|
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
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user