1. Download the KVM
image from the Home Assistant website.
2. Extract the qcow2
from the xz
archive. (I did this on my local machine)
3. Move the qcow2
image to /root
on your Proxmox host. (I scp
'd the image to my Proxmox host)
1. In Proxmox, select ‘Create VM’
2. In the ‘General’ tab, set the name of the VM, select ‘Start at boot' and check the ‘Advanced’ box.
3. In the ‘OS’ tab, select ‘Do not use any media’
4. In the ‘System’ tab, set ‘BIOS’ to ‘OVMF (UEFI)', ‘Storage’ to wherever it is that your VM storage is, and ‘Machine’ to ‘q35’.
5. In the ‘Hard Disk’ tab, do nothing, click ‘Next'.
6. In the ‘CPU’ tab, set how many CPU cores you'd like to use. I recommend at least 4 cores.
7. In the ‘Memory’ tab, set the allocated memory to at least 2GB (2048 MiB). (Set ballooning as you desire)
8. In the ‘Network’ tab, set your network interface to meet the requirements of your setup. (I set a VLAN here)
9. In the ‘Confirm’ tab, make sure ‘Start after created’ is NOT selected.
10. Navigate to the new VM's ‘Hardware' menu.
11. Remove the ‘Hard Disk' that was automatically created by selecting the disk, selecting ‘Detach’ , ‘Yes’, select ‘Unused Disk 0’ , 'Remove' , 'Yes'.
There should now be no Hard Disks in the VM. (There should still be an ‘EFI Disk')
1. From your Proxmox host's command line, logged in as root, change ownership of the HA image to root, if it isn't already.
chown root:root hassos_ova-5.13.qcow2
2. Import/attach the image to the new VM.
104
is the VM ID (change this respectively)
VM_Storage
is the storage medium where my VMs are kept (change this respectively)
qm importdisk 104 /root/hassos_ova-5.13.qcow2 VM_Storage --format qcow2
3. Back in the Proxmox GUI, in the new VM's Hardware menu, a new ‘Unused Disk 0’ should now be present. Double-click it.
4. The pre-populated fields should be correct. Select ‘Add'. The new Hard Disk should be 32GB in size.
5. Select the ‘Options' menu on the new VM.
6. Double-click ‘Boot Order’. A window should open with the devices that the VM could potentially boot from. The new Hard Disk will likely be at the bottom and have the ‘Enabled’ box deselected.
7. Select the ‘Enabled’ box on the new drive and drag/reposition it to be the first priority. Select ‘OK’.
8. Start the VM and navigate to the ‘Console’ menu to make sure it boots correctly.
1. From the VM's console menu, login to HA with the username ‘root
’. (You should not have to enter a password)
2. At the ha >
prompt, use the login
command
login
3. Show the ‘HassOS default’ interface using the nmcli tool
nmcli connection show
.....
Name UUID Type Device
HassOS default xxxxxxxxxx ethernet enp6s18
4. Edit the HassOS default
connection.
nmcli con edit "HassOS default"
5. Now, at the nmcli>
prompt, set your network config parameters. (After setting the IP address, it will ask to “set ‘ipv4.method’ to ‘manual’? [yes]:”. Answer, ‘yes’.)
set ipv4.address 10.78.0.16/24
set ipv4.dns 10.1.6.1
set ipv4.gateway 10.78.0.1
6. After setting your network parameters, save and quit.
save
quit
7. You should be able to view the new default connection from the Linux command line.
cat /etc/NetworkManager/system_connections/default
8. Reload the network connections (restart the VM if the following cmd doesn't work)
nmcli con reload
ip address | grep ens6s18
9. Using a web browser, navigate to http://10.78.0.16:8123
(Replace 10.78.0.16 with the IP address you used in your setup).
Built on top of Ubuntu 20.04 LTS
1. Install Docker
snap install docker
2. Create a new container. (Replace ‘/home/ross/homeassistant
' with your own desired installation path)
docker run --init -d \
--name homeassistant \
--restart=unless-stopped \
-v /etc/localtime:/etc/localtime:ro \
-v /home/ross/homeassistant:/config \
--network=host \
homeassistant/home-assistant:stable
3. Using a web browser, navigate to http://10.78.0.16:8123
(Replace 10.78.0.16 with the IP address you used in your setup).