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

Error using qemu with the Ubuntu build/img #12

Closed cdbattags closed 3 years ago

cdbattags commented 3 years ago

First off, just want to say what you're doing with this is absolutely amazing!

Steps to reproduce:

make ubuntu

qemu-system-x86_64 -drive file=linux.img,index=0,media=disk,format=raw -m 4096

See image for the error:

Screen Shot 2021-05-05 at 22 12 05
iximiuz commented 3 years ago

Thanks for the good words!

Ubuntu not loading is a regression after the recent distr version bump. Seems like Ubuntu folks changed the default path to vmlinuz and initrd files from just / to /boot. I adjusted the syslinux config. Thanks for reporting!

iximiuz commented 3 years ago

Resolved with https://github.com/iximiuz/docker-to-linux/commit/95b261117bcbebb88507277eefa70f5c9e2b59c3.