
```bash
wget https://github.com/home-assistant/operating-system/releases/download/13.1/haos_ova-13.1.qcow2.xz
unxz ./haos_ova-13.1.qcow2.xz
```

![image1](https://jimyag.com/posts/pvehomeassistant-pve-installation-homeassistant-home-assistant/files/image1.png)
![image2](https://jimyag.com/posts/pvehomeassistant-pve-installation-homeassistant-home-assistant/files/image2.png)
![image3](https://jimyag.com/posts/pvehomeassistant-pve-installation-homeassistant-home-assistant/files/image3.png)
![image4](https://jimyag.com/posts/pvehomeassistant-pve-installation-homeassistant-home-assistant/files/image4.png)
![alt text](https://jimyag.com/posts/pvehomeassistant-pve-installation-homeassistant-home-assistant/files/image5.png)
![alt text](https://jimyag.com/posts/pvehomeassistant-pve-installation-homeassistant-home-assistant/files/image6.png)
![alt text](https://jimyag.com/posts/pvehomeassistant-pve-installation-homeassistant-home-assistant/files/image7.png)

导入磁盘

```shell
qm importdisk 105 ./haos_ova-13.1.qcow2 disk1
importing disk './haos_ova-13.1.qcow2' to VM 105 ...
Formatting '/mnt/disk1/pve/images/105/vm-105-disk-0.raw', fmt=raw size=34359738368 preallocation=off
...
Successfully imported disk as 'unused0:disk1:105/vm-105-disk-0.raw'
```

![alt text](https://jimyag.com/posts/pvehomeassistant-pve-installation-homeassistant-home-assistant/files/image8.png)
![alt text](https://jimyag.com/posts/pvehomeassistant-pve-installation-homeassistant-home-assistant/files/image9.png)
![alt text](https://jimyag.com/posts/pvehomeassistant-pve-installation-homeassistant-home-assistant/files/image10.png)
![alt text](https://jimyag.com/posts/pvehomeassistant-pve-installation-homeassistant-home-assistant/files/image11.png)
![alt text](https://jimyag.com/posts/pvehomeassistant-pve-installation-homeassistant-home-assistant/files/image12.png)
![alt text](https://jimyag.com/posts/pvehomeassistant-pve-installation-homeassistant-home-assistant/files/image13.png)
修改代理地址

```shell
login 
nmcli dev status  # 会看到一个网卡 Supervisor enp6s18
```

![alt text](https://jimyag.com/posts/pvehomeassistant-pve-installation-homeassistant-home-assistant/files/image14.png)
![alt text](https://jimyag.com/posts/pvehomeassistant-pve-installation-homeassistant-home-assistant/files/image15.png)

nmcli con edit “Superviso enp6s18”
set ipv4.addresses 192.168.2.105/24
第一次修改 ip 地址会提示是否改为“手动”设置，输入 y 确认就行
输入：set ipv4.dns 192.168.2.100  设置 DNS，DNS 地址就指向旁路由的 ip 地址
输入：set ipv4.gateway 192.168.2.100  设置网关，网关地址也是指向旁路由的 ip 地址
输入 print ipv4

![alt text](https://jimyag.com/posts/pvehomeassistant-pve-installation-homeassistant-home-assistant/files/image16.png)
输入：save 提示保存成功
输入：quit 退出编辑
输入：nmcli con reload
输入：reboot 重启主机
如果要重置某些网络配置可以直接输入 set ipv4.dns 表示重置 dns，后面什么都不要加，直接回车。
![alt text](https://jimyag.com/posts/pvehomeassistant-pve-installation-homeassistant-home-assistant/files/image17.png)

## 参考

- <https://forum.proxmox.com/threads/guide-install-home-assistant-os-in-a-vm.143251/>
- <https://blog.csdn.net/sunky7/article/details/137434408>
- <https://www.bilibili.com/read/cv17123823/> 代理
- <https://www.hacs.xyz/docs/use/configuration/basic/#to-set-up-the-hacs-integration>

