From 55b2aa2d192b70ee1567b87f500f26070b6fe866 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ant=C3=B3nio=20Meireles?= Date: Wed, 19 Aug 2020 22:23:51 +0100 Subject: [PATCH] accommodate upstream libvirt boxes changes in a forward and backward way (#330) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit per https://github.com/AntonioMeireles/ClearLinux-packer/issues/24 the ClearLinux libvirt boxes default size was lowered from the previous 40G to a more manageable 5G, having the user the ability to, at box instantiation, to increase that value to whatever is adequate. In order to avoid surprises in this side the Vagrantfile was modded to have hardcoded the previous default value. This change is forward and backward compatible as it will just be ignored when using older boxes ( since the 'new' root volume size just the same as original one) and will resize the box to the expected 40G in newer ones. Signed-off-by: António Meireles --- clr-k8s-examples/Vagrantfile | 1 + 1 file changed, 1 insertion(+) diff --git a/clr-k8s-examples/Vagrantfile b/clr-k8s-examples/Vagrantfile index bdebdeb..b414e0f 100644 --- a/clr-k8s-examples/Vagrantfile +++ b/clr-k8s-examples/Vagrantfile @@ -76,6 +76,7 @@ Vagrant.configure("2") do |config| lv.loader = $loader lv.cpus = $cpus lv.memory = $memory + lv.machine_virtual_size = 40 (1..$disks).each do |d| lv.storage :file, :device => "hd#{$driveletters[d]}", :path => "disk-#{$disk_prefix}-#{vm_name}-#{d}.disk", :size => $disk_size, :type => "raw" end