Booting a DragonFly kernel directly from qemu

Antonio Huete Jimenez tuxillo at quantumachine.net
Sun Apr 13 10:43:22 PDT 2025


Yeah, I've been wondering myself if that would work too. I think it's 
related to the base address of the kernel or something along those lines.

If you ever make it work, let me know because I'm also interested, thanks!

On 4/13/25 18:38, Autumn Jolitz wrote:
> 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