Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to boot FreeBSD image under Qemu

Tags:

qemu

freebsd

I have a FreeBSD image that contains /boot/loader* and /boot/kernel and more. It boots fine under an EC2 instance but I would like to boot it with Qemu. I have tried various methods, but they have not worked. See below.

qemu-system-x86_64 -kernel kernel -nographic -append 'console=ttyS0' disk.img
qemu-system-x86_64 -kernel loader -nographic -append disk.img
like image 216
Steven P Avatar asked Apr 04 '18 16:04

Steven P


1 Answers

The FreeBSD wiki has some recipes how to run FreeBSD inside Qemu

https://wiki.freebsd.org/QemuRecipes

like image 54
arved Avatar answered Jan 04 '23 00:01

arved