link:
https://www.home-assistant.io/installation/linux https://github.com/home-assistant/operating-system/releases/download/16.0/haos_ova-16.0.qcow2.xz Видос: https://www.youtube.com/watch?v=zLC8GuOkHl0&ab_channel=ArmenakAvetisyan Поддерживаемые устройства: https://www.home-assistant.io/integrations/zha/#compatible-hardware%C3%90%C2%A3%C3%91%C2%81%C3%91%C2%82%C3%90%C2%B0%C3%90%C2%BD%C3%90%C2%BE%C3%90%C2%B2%C3%90%C2%BA%C3%90%C2%B0 Образы под arm на гитхаб: https://github.com/home-assistant/operating-system/releases образ под arm64: https://github.com/home-assistant/operating-system/releases/download/16.1/haos_generic-aarch64-16.1.qcow2.xz
Пред настройка kvm:
0. Ставим пакеты: apt install cockpit-networkmanager cockpit-machines cockpit-storaged cockpit-ws cockpit-packagekit cockpit-podman apt install qemu-kvm libvirt-daemon-system ovmf virtinst apt install openvswitch-switch #Под arm64 apt-get install qemu-utils qemu-efi-aarch64 qemu-system-arm qemu-efi-aarch64 qemu-system-arm qemu-user-static osinfo-db apt install virt-manager libvirt0 qemu-system libvirt-daemon libvirt-daemon-system libvirt-daemon-system-systemd libvirt-clients libvirt-daemon-config-network qemu-efi-arm qemu-efi-aarch64 usermod -aG kvm user_name usermod -aG libvirt user_name 2. Создаем бридж ovs: ovs-vsctl show ovs-vsctl add-br ovsbr0 ovs-vsctl add-port ovsbr0 end1 где ovsbr0 - бридж и end1 - сетевая карта 3. Отключаем NetworkManage и настраиваем networking systemctl disable NetworkManager systemctl enable networking.service vim /etc/network/interfaces --------------------------- source /etc/network/interfaces.d/* auto lo iface lo inet loopback auto end1 iface end1 inet manual auto ovsbr0 iface ovsbr0 inet dhcp --------------------------- Создаем сеть: vim ovsbr0.xml ------------------------------------------- <network> <name>default</name> <forward mode='bridge'/> <bridge name='ovsbr0'/> <virtualport type='openvswitch'/> </network> ------------------------------------------- virsh net-destroy default irsh net-undefine default virsh net-create --file /root/ovsbr0.xml virsh net-autostart default virsh net-start default
wget:
wget https://github.com/home-assistant/operating-system/releases/download/16.0/haos_ova-16.0.qcow2.xz unxz haos_ova-16.0.qcow2.xz
install virt-manage:
1. Create a new virtual machine in virt-manager. 2. Select Import existing disk image, provide the path to the QCOW2 image above. 3. Choose Generic Default for the operating system. 4. Check the box for Customize configuration before install. 5.Under Network Selection, select your bridge. Under customization select Overview > Firmware > UEFI x86_64: …. Make sure to select a non-secureboot version of OVMF (does not contain the word secure, secboot, etc.), e.g., /usr/share/edk2/ovmf/OVMF_CODE.fd. 7. Click Add Hardware (bottom left), and select Channel. 8. Select device type: unix. 9. Select name: org.qemu.guest_agent.0. 10 Finally, select Begin Installation (upper left corner).
install virt-install:
virt-install --name haos \ --description "Home Assistant OS" \ --os-variant=generic \ --ram=4096 \ --vcpus=2 \ --disk,bus=scsi \ --controller type=scsi,model=virtio-scsi \ --import \ --graphics none \ --boot uefi
install virt arm:
cd /var/lib/libvirt/images
wget https://github.com/home-assistant/operating-system/releases/download/16.1/haos_generic-aarch64-16.1.qcow2.xzvirt-install --name haos \
--description "Home Assistant OS" \
--os-variant=generic \
--osinfo generic \
--ram=2048 --vcpus=2 \
--disk haos_generic-aarch64-16.1.qcow2,bus=scsi \
--controller type=scsi,model=virtio-scsi \
--import --graphics none \
--boot uefi