Booting a DragonFly kernel directly from qemu

Mario Marietto marietto2008 at gmail.com
Sun Apr 13 10:19:50 PDT 2025


I think that it is interesting to try to boot the DragonFly kernel with the
qemu microvm in FreeBSD....

On Sun, Apr 13, 2025 at 7:03 PM Autumn Jolitz <autumn.jolitz at gmail.com>
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



-- 
Mario.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.dragonflybsd.org/pipermail/users/attachments/20250413/ea97d038/attachment.htm>


More information about the Users mailing list