iximiuz / docker-to-linux

Make bootable Linux disk image (ab)using Docker
https://iximiuz.com/en/posts/from-docker-container-to-bootable-linux-disk-image/
659 stars 92 forks source link

Added qcow2 convertion, refactored build in per-distribution targets #21

Closed HenriTEL closed 3 years ago

HenriTEL commented 3 years ago

When I tried to run the built debian.img using qemu 3.1.0 I encounter the error Initialization of device ide-hd failed: Block node is read-only. Converting it to qcow2 solved the problem.

This MR includes:

iximiuz commented 3 years ago

Hi Henri! Thanks for the PR! I took a quick look and seems really great!

ljleb commented 3 years ago

I just want to point out, that the read-only error may be related to /etc/fstab not being configured at all. Although, this may also be because of how qemu loads the image. Someone with more experience could probably tell what's going on.

HenriTEL commented 3 years ago

@lebel-louisjacob The boot process does not even begin in my case, qemu just does not want to start using the image.

iximiuz commented 3 years ago

@HenriTEL, merged 😉