diff --git a/dev/Vagrantfile b/dev/Vagrantfile index 7ed0c604ac..55efb9eedb 100644 --- a/dev/Vagrantfile +++ b/dev/Vagrantfile @@ -21,7 +21,7 @@ Vagrant.configure("2") do |config| # Every Vagrant development environment requires a box. You can search for # boxes at https://atlas.hashicorp.com/search. - config.vm.box = "ubuntu/xenial64" + config.vm.box = $vm_image # Disable automatic box update checking. If you disable this, then # boxes will only be checked for updates when the user runs @@ -42,7 +42,7 @@ Vagrant.configure("2") do |config| # backing providers for Vagrant. These expose provider-specific options. config.vm.provider "virtualbox" do |vb| # Display the VirtualBox GUI when booting the machine - vb.gui = true + vb.gui = false # Customize the amount of memory on the VM: vb.memory = $ram @@ -51,10 +51,10 @@ Vagrant.configure("2") do |config| vb.cpus = $vcpu_cores # Set the size of the VM's root disk: - unless File.exist?('.vagrant/machines/default/virtualbox/openstack-helm-storage.vdi') - vb.customize ['createhd', '--filename', '.vagrant/machines/default/virtualbox/openstack-helm-storage', '--size', $docker_disk] + unless File.exist?('.vagrant/machines/default/openstack-helm-storage.vdi') + vb.customize ['createhd', '--filename', '.vagrant/machines/default/openstack-helm-storage', '--size', $docker_disk] end - vb.customize ['storageattach', :id, '--storagectl', 'SCSI', '--port', 2, '--device', 0, '--type', 'hdd', '--medium', '.vagrant/machines/default/virtualbox/openstack-helm-storage.vdi'] + vb.customize ['storageattach', :id, '--storagectl', 'SCSI', '--port', 2, '--device', 0, '--type', 'hdd', '--medium', '.vagrant/machines/default/openstack-helm-storage.vdi'] end diff --git a/dev/config.rb b/dev/config.rb index 3547aca7b8..6311f1a0ab 100644 --- a/dev/config.rb +++ b/dev/config.rb @@ -1,4 +1,5 @@ # VM Specs +$vm_image = "ubuntu/xenial64" $docker_disk = 20480 $vcpu_cores = 4 $ram = 8192