Haos rpi4 on qemu/kvm arm64?

I have a 8gb rPi4 and I want to run the full HAOS image (the haos_rpi4-64 being the best option right??) via a qemu vm.

I checked the image:

fdisk -l haos_rpi4-64-6.4.img
Disk haos_rpi4-64-6.4.img: 2 GiB, 2147483648 bytes, 4194304 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 1C20DB5F-3966-4EA1-8630-180BDCF45407

Device                  Start     End Sectors  Size Type
haos_rpi4-64-6.4.img1    2048   67583   65536   32M Microsoft reserved
haos_rpi4-64-6.4.img2   67584  116735   49152   24M Linux filesystem
haos_rpi4-64-6.4.img3  116736  641023  524288  256M Linux filesystem
haos_rpi4-64-6.4.img4  641024  690175   49152   24M Linux filesystem
haos_rpi4-64-6.4.img5  690176 1214463  524288  256M Linux filesystem
haos_rpi4-64-6.4.img6 1214464 1230847   16384    8M Linux filesystem
haos_rpi4-64-6.4.img7 1230848 1427455  196608   96M Linux filesystem
haos_rpi4-64-6.4.img8 1427456 3524607 2097152    1G Linux filesystem

Converted it:

qemu-img convert -f raw -O qcow2 haos_rpi4-64-6.4.img haos_rpi4-64-6.4.qcow2

and then after creating the VM via the VirtualMachineManager I cant get it to boot.

Has anyone done it with a arm64 host ? (not a x86 host and VM)
My host is:

Linux bigPi 5.8.0-1032-raspi #35-Ubuntu SMP PREEMPT Wed Jul 14 10:51:21 UTC 2021 aarch64 aarch64 aarch64 GNU/Linux


1 Like

Hi, did you manage to get this up and running?

I’ve been trying to do the same thing, but hit a dead end. I’m guessing due to something related to UEFI boot?

I followed this guide to setup Home Assistant OS.

I’ve never tried this, so not sure I can offer much insight.

What OS are you running on the RPi? I haven’t looked much, but have seen success running a VM on RPi4 running Fedora or OpenSUSE. Perhaps it might be worth trying to install something that’s seen working already, e.g. following one of these guides [1,2]?

hi all,
In the end I switched to an old macmini running proxmox and Im fine. Most of the booting problems are with UEFI I found and “prefetching keys” etc. Maybe this will help on ARM too.

One thing you can try is building an ARM Proxmox on your Pi4 and it will be way easier. I planning to virtualise others things too