a7256e15ed
Because current devstack don't support ubuntu 14.04. Change default vagrant box from trusty64 to xenial64. See: https://docs.openstack.org/developer/devstack/#install-linux Change-Id: Id49167e6d60babcc6145c0f4cbd5b15231d12c88
23 lines
531 B
Ruby
23 lines
531 B
Ruby
# defaults
|
|
VM_MEMORY = ENV['VM_MEMORY'] || "8192"
|
|
VM_CPUS = ENV['VM_CPUS'] || "1"
|
|
|
|
def configure_providers(vm)
|
|
|
|
vm.provider "virtualbox" do |vb, config|
|
|
config.vm.box = "ubuntu/xenial64"
|
|
vb.gui = true
|
|
vb.memory = VM_MEMORY
|
|
vb.cpus = VM_CPUS
|
|
end
|
|
|
|
vm.provider "libvirt" do |lb, config|
|
|
config.vm.box = "celebdor/xenial64"
|
|
config.vm.synced_folder './', '/vagrant', type: 'rsync'
|
|
lb.nested = true
|
|
lb.memory = VM_MEMORY
|
|
lb.cpus = VM_CPUS
|
|
lb.suspend_mode = 'managedsave'
|
|
end
|
|
end
|