Skip to content

Conversation

@hsiangkao
Copy link
Contributor

Also see: containerd/nerdbox#30

Currently, it's mainly used for EROFS to merge hundreds of sub-blobs (container image layers) into one block device to avoid having too many block devices (and it would even be impossible for virtio-mmio since legacy IRQs is much limited in libkrun).

Why VMDK is useful? Since it seems to be the only standard and simple way to support one-single block device that consists of a collection of multiple file parts among popular virtualization products such as QEMU and VirtualBox.

Update the krun_add_disk2 API to specify the VMDK format:

  • KRUN_DISK_FORMAT_VMDK

@slp
Copy link
Collaborator

slp commented Dec 5, 2025

@hsiangkao LGTM, but please rebase on current upstream.

@hsiangkao
Copy link
Contributor Author

@hsiangkao LGTM, but please rebase on current upstream.

Done.

@slp
Copy link
Collaborator

slp commented Dec 5, 2025

@hsiangkao please commit the changes to Cargo.lock (resulting from the update of imago) too. That's the reason why CI is failing.

Currently, it's mainly used for EROFS to merge hundreds of sub-blobs
(container image layers) into one block device to avoid having too
many block devices (and it would even be impossible for virtio-mmio
since legacy IRQs is much limited in libkrun).

Why VMDK is useful?  Since it seems to be the only standard and simple
way to support one-single block device that consists of a collection of
multiple file parts among popular virtualization products such as QEMU
and VirtualBox.

Update the `krun_add_disk2` API to specify the VMDK format:
 - KRUN_DISK_FORMAT_VMDK

Signed-off-by: Gao Xiang <[email protected]>
@hsiangkao
Copy link
Contributor Author

@hsiangkao please commit the changes to Cargo.lock (resulting from the update of imago) too. That's the reason why CI is failing.

Ah sorry, done.

Copy link
Collaborator

@slp slp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hsiangkao Thanks, let's get it merged.

Thanks for your help, too @XanClic !

@slp slp merged commit 3d74d23 into containers:main Dec 5, 2025
9 checks passed
@hsiangkao
Copy link
Contributor Author

@hsiangkao Thanks, let's get it merged.

Thanks for your help, too @XanClic !

Many thanks for considering this feature too!

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.

4 participants