Hi,
our documentation needs to improve here. I will update the
chapter right after this mail.
> QEMU first spits out a warning about "the image format not being
> specified and probing guessed raw" and informs me that as a result of
> this write operations would be restricted.
yes and this is an issue. You built a kis image, meaning kernel + initrd
+ a filesystem image. The option "-hda ..." expects a disk image containing
a partition table and if you don't provide further information how this
device should be connected to the VM it will not appear in the way
you expect it.
So change your "-hda ..." option to:
-drive file=/tmp/builddir/tumbleweedkis.*-1.99.1,if=virtio,driver=raw
> It then successfully boots the kernel and the initrd but completely
> fails to switch into the root fs with "Kernel panic - not syncing: VFS:
> Unable to mount root fs".
correct because the device with the UUID mentioned in the .append file
did not appear. This will change if you attach the filesystem image
as suggested above.
You should also add "rw" to the append line because a raw filesystem
image is still not a disk and linux will see this device as unclean
and will mount it read-only. Thus my full command line looked like this:
qemu-kvm \
-cpu Broadwell-v2 \
-m 4096 \
-netdev user,id=user0 \
-device virtio-net-pci,netdev=user0 \
-serial stdio \
-kernel kiwi-test-image-disk.x86_64-1.42.1-6.7.4-1-default.kernel \
-initrd kiwi-test-image-disk.x86_64-1.42.1.initrd \
-append "$(cat *.append) rw" \
-drive file=kiwi-test-image-disk.x86_64-1.42.1,if=virtio,driver=raw
and that booted up and worked for me
Hope this helps.
I will update the docs
Cheers,
Marcus
--
Public Key available via:
https://keybase.io/marcus_schaefer/key.asc
keybase search marcus_schaefer
-------------------------------------------------------
Marcus Schäfer Brunnenweg 18
Tel:
+49 7562 905437 D-88260 Argenbühl
Germany
-------------------------------------------------------