diff --git a/vagrant/Vagrantfile b/vagrant/Vagrantfile index abcd9d72f7..8ee6f9611f 100644 --- a/vagrant/Vagrantfile +++ b/vagrant/Vagrantfile @@ -82,6 +82,12 @@ Vagrant.configure(2) do |config| admin.vm.synced_folder ".", "/home/vagrant/sync", disabled: true admin.vm.provider PROVIDER do |vm| vm.memory = MULTINODE ? 1024 : 4096 + if PROVIDER == 'libvirt' + # This only works with libvirt provider. + # We should be able to do something similar for virtualbox + # http://askubuntu.com/questions/317338/how-can-i-increase-disk-size-on-a-vagrant-vm + vm.machine_virtual_size = 40 + end end admin.hostmanager.aliases = "operator" end diff --git a/vagrant/bootstrap.sh b/vagrant/bootstrap.sh index cd413527f8..81d0aa3af3 100644 --- a/vagrant/bootstrap.sh +++ b/vagrant/bootstrap.sh @@ -61,6 +61,24 @@ EOF usermod -aG docker vagrant } +function resize_partition { + fdisk /dev/vda <