This took me several hours to figure out so just dropping my notes here to hopefully help someone else.
This was how I did:
- Assumptions: ZFS as filesystem on both FreeBSD host and Proxmox host
- Followed this guide for how to create HAOS vm: Installing Home Assistant OS using Proxmox 8
- From FreeBSD bhyve host:
zfs send zroot/ROOT/default/homeassi/dsk1.vhd | ssh [email protected] 'zfs receive rpool/data/homeassistant-dsk1.vhd'
- Convert and import disk image:
qemu-img convert -f raw -O qcow2 /dev/zvol/rpool/data/homeassistant-dsk1.vhd /rpool/data/homeassistant-dsk1.qcow2
# Replace <id> with id of vm created via script
qm disk import <id> /rpool/data/homeassistant-dsk1.qcow2 local-zfs
- Remove the harddrive that got created when creating HAOS vm via script – then add&attach the imported harddrive image.