Installed with UTM on macOS - transition to QEMU

Since Home Assistant Core will be unsupported, I installed HAOS with UTM on an M1 Mac. This works using the aarch64 image of HAOS. However, I would prefer using QEMU. Is there a comprehensive guide to move the installation from UTM to QEMU?

The goal is to go headless.

I tried using this code but it just won’t show the web interface (while it works with UTM):

#!/bin/bash

IMAGE=~//vm/haos_disk.qcow2
MAC=DE:85:D7:7E:76:D7

qemu-system-aarch64 \
  -machine virt,accel=hvf \
  -cpu cortex-a72 \
  -smp 2 \
  -m 2048 \
  -drive file="$IMAGE",if=virtio,format=qcow2,cache=writeback \
  -netdev user,id=net0,hostfwd=tcp::8123-:8123 \
  -device virtio-net-pci,netdev=net0,mac=$MAC \
  -device virtio-rng-pci \
  -device virtio-gpu-pci \
  -device usb-ehci,id=usb1 \
  -device usb-host,vendorid=0x0403,productid=0x6001 \
  -serial mon:stdio \
  -display cocoa