Wojtek (#2): Thanks for sharing your Proxmox power driver, it works great! Would very much like to see it contributed or committed upstream, instead of having to patch my own installation.
---
Laurent (#8): Sure, here's how I did it on 19.04 with MAAS 2.5.0 (7442-gdf68e30a5-0ubuntu1) installed using `apt`:
1. Install the Proxmox API library; `apt install python3-proxmoxer`
2. Put the attached `proxmox.py` in `/usr/lib/python3/dist-packages/provisioningserver/drivers/power/`
3. Register the driver in `/usr/lib/python3/dist-packages/provisioningserver/drivers/power/registry.py`:
from provisioningserver.drivers.power.proxmox import ProxmoxPowerDriver
power_drivers = [
ProxmoxPowerDriver(),
...
]
4. Create/use an user in Proxmox with "VM.PowerMgmt" and "VM.Audit" privileges
5. Configure the power driver for a machine in MAAS (no automatic detection)
Wojtek (#2): Thanks for sharing your Proxmox power driver, it works great! Would very much like to see it contributed or committed upstream, instead of having to patch my own installation.
---
Laurent (#8): Sure, here's how I did it on 19.04 with MAAS 2.5.0 (7442-gdf68e30a 5-0ubuntu1) installed using `apt`:
1. Install the Proxmox API library; `apt install python3-proxmoxer` python3/ dist-packages/ provisioningser ver/drivers/ power/` python3/ dist-packages/ provisioningser ver/drivers/ power/registry. py`:
2. Put the attached `proxmox.py` in `/usr/lib/
3. Register the driver in `/usr/lib/
from provisioningser ver.drivers. power.proxmox import ProxmoxPowerDriver
power_drivers = [ rDriver( ),
ProxmoxPowe
...
]
4. Create/use an user in Proxmox with "VM.PowerMgmt" and "VM.Audit" privileges
5. Configure the power driver for a machine in MAAS (no automatic detection)