Actually install HA on Pi 5

Submitted by Falken on

can't use linuxserver's homeassistant image as this is HA Core, no addons. Ditto for HA own Docker instructions, and "supervised" is a Bash script of doom that doesn't work and doesn't say why not, when a simple Docker compose file would do

 

Guess we're learning lxc. But https://www.home-assistant.io/installation/linux#download-the-appropriate-image is wrong, you want haos_generic-aarch64-13.2.qcow2 in /var/lib/libvirt/images

and the first boot is “expected” to fail and you have to go in and manually disable secure boot (see Installing HA OS 12.2 in a virtualized KVM (virtual manager) using rasperry PI 5 and Rasperry pi OS not working - #9 by vmariniferreira)

 

restart on reboot virsh autostart haos

real IPs not some crazy NAT http://blog.leifmadsen.com/blog/2016/12/01/create-network-bridge-with-nmcli-for-libvirt/

virsh edit haos and set <source network='host-bridge'/>
 

more room ?

stop haos

root@pi5:~# qemu-img resize /var/lib/libvirt/images/haos_generic-aarch64-13.2.qcow2 +5G 
Image resized. 
root@pi5:~# qemu-img info /var/lib/libvirt/images/haos_generic-aarch64-13.2.qcow2 
image: /var/lib/libvirt/images/haos_generic-aarch64-13.2.qcow2 
file format: qcow2 
virtual size: 11 GiB (11811160064 bytes) 
disk size: 5.44 GiB 
cluster_size: 65536 
Format specific information: 
   compat: 1.1 
   compression type: zlib 
   lazy refcounts: false 
   refcount bits: 16 
   corrupt: false 
   extended l2: false

start haos

it'll resize itself to make more room
 

--
 https://python-kasa.readthedocs.io/en/latest/cli.html#kasa-help works to provission. no stupid app. set a username and password after joining wifi, give same one to HACS > Tapo

---

forward ports https://wiki.libvirt.org/Networking.html#forwarding-incoming-connections - 8123 and 1883 for MQTT

virsh console https://ostechnix.com/how-to-enable-virsh-console-access-for-kvm-guests/ - root no password

shutdown virsh destroy haos

   and REMOVE virsh undefine haos --nvram