1

I debootstrap an Ubuntu Xenial system as:

debootstrap --variant=minbase --include=linux-image-generic,linux-headers-generic,systemd,systemd-sysv,dbus --components=main,restricted,universe,multiverse xenial ubuntu_dir http://mirror.enzu.com/ubuntu

I extract the kernel as:

cd ubuntu_dir && cp boot/vmlinu* ../xenial.kernel

I create the initrd as:

cd ubuntu_dir && find . -print0 | cpio --quiet --null -ov --format=newc | gzip -9 > ../xenial.initrd

I boot the system in qemu as (it boots over PXE):

qemu-system-x86_64 -enable-kvm -kernel xenial.kernel -initrd xenial.initrd -m 4096M -device e1000,netdev=net0 -netdev user,id=net0,hostfwd=tcp::5555-:22

The kernel panics saying:

kernel panic-not syncing: VFS: unable to mount root fs on unknown block(0,0)

enter image description here

I need to boot this kernel+initrd pair over PXE. What am I doing wrong?

1 Answer 1

0

I have described a fully automated working Ubuntu 18.04 host Ubuntu 18.04 guest debootstrap QEMU setup at: Is there any prebuilt QEMU Ubuntu image(32bit) online?

I wonder how long until this link only answer is deleted and I'm forced to copy the answer here and maintain both forks >:-)

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .