NOTE: The QCOW2 File used in this guide is in beta as of May 10, 2020. Hence, some parts under HA may not work as expected, due to bugs and other issues.
As you would have read on the recent Blog Post on Home-Assistant.io (https://www.home-assistant.io/blog/2020/05/09/deprecating-home-assistant-supervised-on-generic-linux/), the generic installation of Home Assistant Supervised on generic Linux is being depreciated.
Although this is not something that will have an immediate impact on existing users, as this method is no longer supported, as downstream issues and bugs would not be resolved.
There are many methods of installing Home Assistant Supervised, which can be found here (https://www.home-assistant.io/hassio/installation/). However, for the purposes of this guide, we would be demonstrating the method to get a QCOW2 image installed and running on Proxmox.
In order to get Home Assistant up and running, the following items are needed:
Shell access to Proxmox
Access to the filesystem in Proxmox to upload the QCOW2 file
Home Assistant QCOW2 file which can be found at https://www.home-assistant.io/hassio/installation/
Getting Proxmox ready and Installing Home Assistant
- Create a New VM on Proxmox: We start by creating a new VM in Proxmox, with the following settings. Also, please note the VM ID of the machine here, since we would require this in the later steps.
Download QCOW2 Image from Home Assistant: Using the link above, download the QCOW2 image from above, and extract the same on your desktop. Post extraction, you will be left with a file similar to “hassos_ova-4.6.qcow2”
Upload file to Proxmox: Using your preferred method, transfer the extracted file to “/root” in Proxmox
Importing QCOW2 to Proxmox VM: Login to Proxmox using your favourite shell client (or the web shell client) and run the following command-
qm importdisk 101 /root/hassos_ova-4.6.qcow2 local --format qcow2
“101” is the ID of the VM created in the earlier steps and
“/root/hassos_ova-4.6.qcow2” is the file location and name of the extracted QCOW2 file on the Proxmox host
Upon running the command, you should see a similar success message:
After running the command, we can remove the QCOW2 file using
- Edit the VM in Proxmox: Navigate to VM->Hardware in the Proxmox GUI to the selected VM which we previously configured. We need to make some changes here.
This text will be hiddena. Remove the Hard Disk we created earlier: Select the Disk and click on “Detach” from the options available in the top row
The following pop-up should appear. Click on “Yes”
Then, select the same disk and click on the “Remove” button from the top row. Confirm the same, by clicking on “Yes” in the subsequent popup window.
b. You should have one more “Unused Disk” here. Select the same and click on the “Add” button, which should bring up a popup. Click on “Add” here.
c. Select the newly added disk, and click on “Resize”
In the popup, enter the ADDITIONAL space that you would like to allocate to the disk. I have added 24G more, to the existing 6G, for a total of 30G. Once you are ready, click on “Resize Disk”
- After completion of these steps, you can start the VM, and you should be able to navigate to the IP address allocated to the VM. You can find this by either visiting the admin panel of your router, or alternatively if your router supports mDNS, you can visit “http://homeassistant.local:8123”
Notes: This is my first guide, so please excuse the terrible formatting and any other mistakes that may be present.