Booting a DragonFly kernel directly from qemu
Autumn Jolitz
autumn.jolitz at gmail.com
Sun Apr 13 09:38:10 PDT 2025
Hi,
I ran across a dev article on porting FreeBSD to the qemu microvm (https://adventurist.me/posts/00320).
It got me wondering if DragonFly is capable of a similar feat, so I tried to see if I could directly boot into a Dragonfly kernel using something like:
1. Build a kernel
sudo -H make -C /usr/src -j 16 -s nativekernel KERNCONF=X86_64_GENERIC TARGET=amd64
2. Create a raw image
qemu-img create tmp.raw 30M
3. Boot directly from a kernel (?) [this part hangs at the “Booting from ROM…” SeaBIOS message) :(
qemu-system-x86_64 -M pc-i440fx-3.1 -cpu max -m 512m -smp 4 -kernel /usr/obj/usr/src/sys/X86_64_GENERIC/kernel.debug -nographic -drive id=test,file=tmp.raw,format=raw,if=none -device virtio-blk-pci,drive=test
Autumn
More information about the Users
mailing list