Guide to Installing Proxmox and Home Assistant for a Powerful Smart Home Setup
A Comprehensive Guide to Installing Proxmox and Home Assistant for a Powerful Smart Home Setup
Step 1: Install Proxmox
The first step is to install Proxmox on your physical host. Proxmox can be installed on a variety of hardware, including servers, desktops, and laptops. To install Proxmox, you will need to follow these steps:
- Download the latest Proxmox ISO from the Proxmox website.
- Burn the ISO to a DVD or USB drive.
- Boot your physical host from the DVD or USB drive.
- Follow the prompts to install Proxmox. During the installation process, you will need to configure network settings and create a user account.
Step 2: Configure Proxmox
Once Proxmox is installed, you will need to configure it to prepare for the installation of Home Assistant. Here are the steps to follow:
- Log in to the Proxmox web interface using the user account you created during the installation process.
- Navigate to the "Datacenter" node and click on "Storage." Create a new ZFS pool, and then create a new ZFS dataset.
- Navigate to the "Nodes" node and click on the hostname of your physical host. Click on "System" and then "Network." Configure the network settings for your host.
- Navigate to the "Nodes" node again and click on the hostname of your physical host. Click on "Options" and then "Subscription." Here, you can enter your Proxmox subscription key if you have one.
Step 3: Install Home Assistant
There are two options for installing Home Assistant on Proxmox. The first option is to manually install Home Assistant in a Debian virtual machine, which was covered in the original post. The second option is to use a script to automate the process of creating a Home Assistant virtual machine.
Home Assistant OS VM
To install Home Assistant on Proxmox, you can use a script to automate the process of creating a Home Assistant OS virtual machine. This script automates the creation of a virtual machine using the official KVM (qcow2) disk image provided by the Home Assistant Team. The script handles all aspects of the installation, including finding, downloading, and extracting the image, defining user-defined settings, importing and attaching the disk, setting the boot order, and starting the VM. The script also supports various storage types and does not involve any hidden installations.
bash -c "$(wget -qLO - https://github.com/tteck/Proxmox/raw/main/vm/haos-vm.sh)"
Manually:
To create a new Proxmox Home Assistant OS VM using this script, follow these steps:
- Log in to the Proxmox web interface using the user account you created during the installation process.
- Navigate to the "Nodes" node and click on the hostname of your physical host. Click on "Shell" to open a shell window.
- Run the following command to run the script:
bash -c "$(wget -qLO - https://github.com/tteck/Proxmox/raw/main/vm/haos-vm-v5.sh)"
If you want to learn more about the script for automating the creation of a Home Assistant OS virtual machine on Proxmox, you can visit its website at https://tteck.github.io/Proxmox/. The website provides detailed information about the script, including its features, usage instructions, and customization options.
By default, this script will create a Home Assistant OS VM with the following settings:
- 4GB RAM
- 32GB storage
- 2 vCPUs
- Stable image
You can customize the settings by modifying the script before running it.
- After the script completes, click on the VM in the Proxmox web interface, and then click on the "Summary" tab to find the IP address of the VM.
- To access the Home Assistant web interface, open a web browser and enter the following address:
http://IP_ADDRESS:8123
, whereIP_ADDRESS
is the IP address of the Home Assistant OS VM.
Congratulations, you have successfully installed Home Assistant on Proxmox using a Home Assistant OS virtual machine!
We hope this guide has been helpful in walking you through the installation process and that you now feel comfortable working with Proxmox and Home Assistant. By using these powerful tools, you can create a truly connected and intelligent home that will simplify your life and help you to be more productive and efficient.