grml-debootstrap icon indicating copy to clipboard operation
grml-debootstrap copied to clipboard

Implement option vmtype to select between raw or qcow2

Open paulmenzel opened this issue 4 years ago • 1 comments

paulmenzel avatar Jun 14 '21 19:06 paulmenzel

I'm not yet convinced that we should support this from within grml-debootstrap, tbh. :)

You write:

It looks like though, installing the system into that file using NBD is twice as slow.

So what's the actual reason, to not install it into raw format as-is, and then convert to the format as needed?

I only came up with this, because on the “build machine” you do not always have 100 GB of free space for the raw image.

Also all the qemu-nbd actions around /dev/nbd0 seem to ask for trouble AFAICS, what about e.g. if the device is used elsewhere already? :-/ (Not commenting on other code changes themselves yet)

Yes, I have to figure out – the same with kpartx – how to get the correct device.

paulmenzel avatar Jun 15 '21 10:06 paulmenzel