I’m looking into installing an instance of HAOS inside a virtual machine created using LXD on my raspberry pi 4. So far I have managed to run a HAOS LXD VM on a normal machine with no problems. For this setup I used a qcow2 image I found here: Linux - Home Assistant (home-assistant.io)
I found issues trying to do the same, but on my RPI4. Due to different architecture (x86_64 vs aarch64) I used an image I found here: Raspberry Pi - Home Assistant (home-assistant.io).
Now LXD VM works with qcow2 images so I converted the downloaded Raspberry Pi image using this:
qemu-img convert -f raw -O qcow2 <raw-image.img> <converted-image.qcow2>
Didn’t have any luck though to launch a working VM with the converted image. I think this is because this image is not compatible with UEFI ( not compatible with LXD VMs ).
I would like to hear some more info about this, any thoughts or workarounds. In the mean time I will be trying to install HA supervised in a container.