Skip to content

image: boot the qcow2 in image.vm - #383

Merged
martinpitt merged 1 commit into
amutable:mainfrom
martinpitt:vm-boot-qcow2
Nov 4, 2026
Merged

martinpitt merged 1 commit into
amutable:mainfrom
martinpitt:vm-boot-qcow2

Conversation

@martinpitt

Copy link
Copy Markdown
Member

Commit e0bd4df removed the huge sparse holes from raw disks, and moved them to virtual_size. But that broke image.vm(): that still booted the raw disk, which has no more room to grow into.

Switch it over to booting the qcow, which has always been the intention: qcow is for VMs, raw for real iron.

This again makes the grow option unnecessary in most cases. But keep it as it's still a nice and cheap way to test-boot a guest that needs more room than virtual_size.


Tested with bin/tine buck run //examples/image:boot-demo-vm.fedora which has virtual_size = 2G. Before:

vda 253:0 0 706.1M 0 disk

now:

vda 253:0 0 2G 0 disk

Also verified that qemu runs the qcow instead of the raw.

Commit e0bd4df removed the huge sparse holes from raw disks, and moved
them to `virtual_size`. But that broke `image.vm()`: that still booted
the raw disk, which has no more room to grow into.

Switch it over to booting the qcow, which has always been the intention:
qcow is for VMs, raw for real iron.

This again makes the `grow` option unnecessary in most cases. But keep
it as it's still a nice and cheap way to test-boot a guest that needs
more room than `virtual_size`.

Signed-off-by: Martin Pitt <martin@amutable.com>
@martinpitt
martinpitt enabled auto-merge (rebase) November 4, 2026 08:51
@martinpitt
martinpitt disabled auto-merge November 4, 2026 09:15
@martinpitt
martinpitt merged commit 8ab14da into amutable:main Nov 4, 2026
8 of 9 checks passed
@martinpitt
martinpitt deleted the vm-boot-qcow2 branch November 4, 2026 09:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants