Commit 49a0e1c
committed
guestfs: add configurable VM image size with custom image resize support
Base images were using hardcoded 20G size while custom images remained
at their original download size, causing disk space issues.
This adds LIBVIRT_IMAGE_SIZE config option (default: 20G) that:
- Replaces hardcoded "20G" in base image creation
- Adds automatic resizing for custom images using qemu-img resize
Both image types now consistently use the same configurable size,
resolving "No space left on device" errors in custom image VMs.
Generated-by: Claude AI
Signed-off-by: Daniel Gomez <[email protected]>1 parent 89b0f7c commit 49a0e1c
File tree
3 files changed
+23
-2
lines changed- kconfigs
- playbooks/roles/base_image/tasks
3 files changed
+23
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
458 | 458 | | |
459 | 459 | | |
460 | 460 | | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
461 | 471 | | |
462 | 472 | | |
463 | 473 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
| 66 | + | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
44 | 45 | | |
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
48 | 59 | | |
49 | 60 | | |
50 | 61 | | |
| |||
0 commit comments