Skip to content
This repository was archived by the owner on Aug 7, 2025. It is now read-only.

Commit 55b2aa2

Browse files
accommodate upstream libvirt boxes changes in a forward and backward way (#330)
per AntonioMeireles/ClearLinux-packer#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 <antonio.meireles@reformi.st>
1 parent aad050f commit 55b2aa2

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

clr-k8s-examples/Vagrantfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ Vagrant.configure("2") do |config|
7676
lv.loader = $loader
7777
lv.cpus = $cpus
7878
lv.memory = $memory
79+
lv.machine_virtual_size = 40
7980
(1..$disks).each do |d|
8081
lv.storage :file, :device => "hd#{$driveletters[d]}", :path => "disk-#{$disk_prefix}-#{vm_name}-#{d}.disk", :size => $disk_size, :type => "raw"
8182
end

0 commit comments

Comments
 (0)