Proxmox VE is an open-source server virtualization environment. This integration allows you to poll various data and controls from your instance.
After configuring this integration, the following information is available:
- Binary sensor entities with the status of node and selected virtual machines/containers.
- Sensor entities of the selected node and virtual machines/containers. Some sensors are created disabled by default, you can enable them by accessing the entity's configuration.
- Entities button to control selected virtual machines/containers (see about Proxmox user permissions below). By default, the entities buttons to control virtual machines/containers are created disabled.
If you use HACS:
-
Click on HACS in the Home Assistant menu
-
Click on the 3 dots in the top right corner.
-
Select "Custom repositories"
-
Add the URL to the repository.
-
Select the Integration category.
-
Click the "ADD" button.
-
Click on HACS in the Home Assistant menu
-
Click on
Integrations
-
Click the
EXPLORE & DOWNLOAD REPOSITORIES
button -
Search for
Proxmox VE
-
Click the
DOWNLOAD
button -
Restart Home Assistant
- Copy
proxmoxve
folder from latest release tocustom_components
folder. in your config folder. - Restart Home Assistant
Adding Proxmox VE to your Home Assistant instance can be done via the user interface, by using this My button:
If the above My button doesn’t work, you can also perform the following steps manually:
- Browse to your Home Assistant instance.
- In the sidebar click on Settings.
- From the configuration menu select: Devices & Services.
- In the bottom right, click on the Add Integration button.
- From the list, search and select “Proxmox VE”.
- Follow the instruction on screen to complete the set up.
To be able to retrieve the status of VMs and containers, the user used to connect must minimally have the VM.Audit
privilege. To be able to controls the VMs and containers, the user used to connect must have the PVEVMAdmin
role. Below is a guide to how to configure a new user with the minimum required permissions.
Before creating the user, we need to create a group for the user. Privileges can be either applied to Groups or Roles.
- Click
Datacenter
- Open
Permissions
and clickGroups
- Click the
Create
button above all the existing groups - Name the new group (e.g.,
HomeAssistant
) - Click
Create
- Click
Datacenter
- Click
Permissions
- Open
Add
and clickGroup Permission
- Select "/" for the path
- Select your Home Assistant group (
HomeAssistant
) - Select the Auditor role (
PVEAuditor
) - Make sure
Propagate
is checked
- Click
Datacenter
- Click
Permissions
- Open
Add
and clickGroup Permission
- Select "/" for the path
- Select your Home Assistant group (
HomeAssistant
) - Select the VM Admin role (
PVEVMAdmin
) - Make sure
Propagate
is checked
Creating a dedicated user for Home Assistant, limited to only to the access just created is the most secure method. These instructions use the pve
realm for the user. This allows a connection, but ensures that the user is not authenticated for SSH connections.
- Click
Datacenter
- Open
Permissions
and clickUsers
- Click
Add
- Enter a username (e.g.,
homeassistant
) - Set the realm to "Proxmox VE authentication server"
- Enter a secure password (it can be complex as you will only need to copy/paste it into your Home Assistant configuration)
- Select the group just created earlier (
HomeAssistant
) to grant access to Proxmox - Ensure
Enabled
is checked andExpire
is set to "never" - Click
Add
In your Home Assistant configuration, use homeassistant@pve
for the username and your chosen password for the password.