]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
docs: bhyve: add arm64 guest example
authorRoman Bogorodskiy <bogorodskiy@gmail.com>
Sun, 8 Mar 2026 05:38:08 +0000 (06:38 +0100)
committerRoman Bogorodskiy <bogorodskiy@gmail.com>
Mon, 9 Mar 2026 18:24:07 +0000 (19:24 +0100)
Signed-off-by: Roman Bogorodskiy <bogorodskiy@gmail.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
docs/drvbhyve.rst

index 769e8da07b90fcc3641ae8b891a43ce2b178316d..e9eceb874077ca8cf620c833f9b59c46186b68a5 100644 (file)
@@ -197,6 +197,42 @@ This is an example to boot into Fedora 25 installation:
 Please refer to the `Using UEFI bootrom, VNC, and USB tablet`_ section for a
 more detailed explanation.
 
+Example config (FreeBSD/arm64 guest)
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+:since:`Since 12.0.0`, it is possible to run arm64 guests on arm64 hosts.
+
+::
+
+  <domain type='bhyve'>
+    <name>freebsd-15.0R</name>
+    <memory unit='G'>2</memory>
+    <vcpu>2</vcpu>
+    <os>
+      <type>hvm</type>
+      <loader readonly="yes" type="pflash">/usr/local/share/u-boot/u-boot-bhyve-arm64/u-boot.bin</loader>
+    </os>
+    <on_poweroff>destroy</on_poweroff>
+    <on_reboot>restart</on_reboot>
+    <on_crash>destroy</on_crash>
+    <devices>
+      <disk type='file' device='disk'>
+        <driver name='file' type='raw'/>
+        <source file='/home/novel/FreeBSD-15.0-RELEASE-arm64-aarch64-ufs.raw'/>
+        <target dev='vda' bus='virtio'/>
+      </disk>
+      <interface type='network'>
+        <source network='default'/>
+        <model type='virtio'/>
+      </interface>
+      <serial type="nmdm">
+        <source master="/dev/nmdmFreeBSDA" slave="/dev/nmdmFreeBSDB"/>
+      </serial>
+    </devices>
+  </domain>
+
+This example uses the bhyve u-boot loader which can be installed
+from the ``u-boot-bhyve-arm64`` package or the ``sysutils/u-boot-bhyve-arm64`` port.
+
 Guest usage / management
 ------------------------