RVP wrote in <2ead0bc6-6b79-cd83-faa7-96888aaf5...@sdf.org>: ... |Great! I think enabling UEFI in the VM should also work. I base this \ |on what |I see with Qemu. Running Qemu with UEFI (on Ubuntu 24.04.1 LTS, here) \ |always |gives me a console: | |``` |kvm -enable-kvm -machine ubuntu-q35,accel=kvm -device intel-iommu -m 4g \ | -cpu host -smp cpus=4,cores=2,threads=2 -bios /usr/share/ovmf/OVMF.fd \ | -drive file=netbsd.qcow2,if=none,id=hd0 -device virtio-blk-pci,drive=hd0\ | \ | -object rng-random,filename=/dev/urandom,id=viornd0 -device virtio-rng-p\ | ci,rng=viornd0 \ | -netdev user,id=net0,hostfwd=tcp::5555-:22 -device virtio-net-pci,netdev\ | =net0 \ | -device virtio-gpu \ | "$@" |``` | |(you can change `virtio-gpu' to `virtio-vga') | |but, if I drop the `-bios /usr/share/ovmf/OVMF.fd' part, ie. boot in \ |BIOS mode, |then I get the same panic.
To mention that i dropped the OVMF port i had for CRUX Linux (thanks again to the "NetBSD port" where this was derived from) because Qemu "now" ships EDK by default. I thus changed my VM script (alignment badly adjusted from tabs) to do @ vmefi=non-empty and we use -bios $QEMU_EFI/edk2-$vmsys-code.fd $QEMU_EFI/$vmsys.fd ... QEMU_EFI=/usr/share/qemu #QEMU_EFI=/usr/share/qemu-efi-bin ... if [ -n "$vmefi" ]; then vmefi="${QEMU_EFI}"/edk2-$vmsys-code.fd xvmefi= case "$vmsys" in x86_64|i386) xvmefi="${QEMU_EFI}"/edk2-i386-vars.fd vmefi="${QEMU_EFI}"/edk2-$vmsys.fd ;; arm) xvmefi="${QEMU_EFI}"/edk2-arm-vars.fd vmefi="${QEMU_EFI}"/edk2-$vmsys.fd ;; aarch64) :;; *) echo >&2 '$vmefi: unsupported $vmsys='$vmsys syno ;; esac if [ ! -f "$vmefi" ]; then if [ -f "$xvmefi" ] && [ -f "${QEMU_EFI}"/edk2-$vmsys-code.fd ]; then cat "$xvmefi" "${QEMU_EFI}"/edk2-$vmsys-code.fd > $vmefi chmod 0644 $vmefi else echo >&2 '$vmefi: missing firmware files!' fi fi #vmefi="${QEMU_EFI}"/$vmsys.fd if [ ! -f "$vmefi" ]; then echo >&2 '$vmefi: no such edk2-ovmf firmware: '$vmefi syno fi vmefi='-bios '$vmefi fi fwiw.. --steffen | |Der Kragenbaer, The moon bear, |der holt sich munter he cheerfully and one by one |einen nach dem anderen runter wa.ks himself off |(By Robert Gernhardt) | |In Fall and Winter, feel "The Dropbear Bard"s pint(er). | |The banded bear |without a care, |Banged on himself for e'er and e'er | |Farewell, dear collar bear