Skip to content

Conversation

@hsiangkao
Copy link

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.

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 <hsiangkao@linux.alibaba.com>
@hsiangkao
Copy link
Author

@hsiangkao LGTM, but please rebase on current upstream.

Done.

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