Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
qemurecipes [2020/05/08 16:58] – Add missing -nographic, tweak memory size. EdwardTomaszNapieralaqemurecipes [2020/12/11 14:24] (current) – Add riscv qemu invocation MitchellHorne
Line 1: Line 1:
 +====== QemuRecipes ======
 +
 This page contains recipes for using qemu to run %%FreeBSD%% inside virtual machines (especially non-native virtual machines) on a %%FreeBSD%% host.  The goal is to have a at least one "blessed" qemu recipe for each architecture %%FreeBSD%% supports.  For more details on running qemu in general including network configuration, see the [[qemu|qemu]] page. This page contains recipes for using qemu to run %%FreeBSD%% inside virtual machines (especially non-native virtual machines) on a %%FreeBSD%% host.  The goal is to have a at least one "blessed" qemu recipe for each architecture %%FreeBSD%% supports.  For more details on running qemu in general including network configuration, see the [[qemu|qemu]] page.
  
Line 22: Line 24:
  
 ====== aarch64 ====== ====== aarch64 ======
 +
 +See also: [[arm64/QEMU]]
  
 %%FreeBSD%%/aarch64 (aka ARM64) image can be booted in two ways: using U-Boot, or with UEFI image.  For instructions on how to boot with UEFI, see [[arm64/QEMU]]. %%FreeBSD%%/aarch64 (aka ARM64) image can be booted in two ways: using U-Boot, or with UEFI image.  For instructions on how to boot with UEFI, see [[arm64/QEMU]].
Line 168: Line 172:
 <code> <code>
 qemu-system-ppc64 -drive file=/path/to/disk.img,format=raw qemu-system-ppc64 -drive file=/path/to/disk.img,format=raw
 +</code>
 +
 +====== riscv ======
 +
 +See also: [[riscv/QEMU]] and [[riscv]]
 +
 +Booting %%FreeBSD%%/riscv64 requires installing two ports: sysutils/opensbi and sysutils/u-boot-qemu-riscv64.
 +
 +===== Booting Disk Image =====
 +
 +<code>
 +qemu-system-riscv64 -M virt -m 512m -nographic -bios /usr/local/share/opensbi/lp64/generic/firmware/fw_jump.elf -kernel /usr/local/share/u-boot/u-boot-qemu-riscv64/u-boot.bin -drive file=/path/to/disk.img,format=raw,id=hd0 -device virtio-blk-device,drive=hd0
 </code> </code>
  
  • qemurecipes.1588957102.txt.gz
  • Last modified: 2020/05/08 16:58
  • by EdwardTomaszNapierala