Proxmox VE
5 minute read
Each handler connects to one Proxmox VE cluster or standalone node, which becomes a CMP environment. CMP builds a server by cloning a Proxmox VE VM template onto a node in the cluster, then sets its CPUs, memory, and network connections.
Before you begin
You need:
- The
resourcehandler::proxmox_vefeature flag enabled. See Enable a feature-flagged resource handler. - Network access from CMP to the Proxmox VE API on at least one node in the cluster. The API listens on HTTPS port
8006by default. - A Proxmox VE user or API token whose role lets it clone templates and manage VMs, storage, pools, and networks in the cluster.
- Every node in the cluster online. CMP can’t list templates or networks while a node is offline.
Add a Proxmox VE resource handler
-
Go to Admin > Resource Handlers, select Add, then select Proxmox VE under Private Cloud.
-
Complete the connection fields in the table below, then select Continue. CMP checks the connection at this point.
-
Enter a Name, and complete any of the optional settings, such as VM Names to Ignore and VM Tags to Include.
-
Under Import Clusters, select the cluster to create its environment. If you skip this, import it later: on the handler’s Clusters tab, select Import Clusters, select the cluster, then select Import selected locations.
-
Select Done.
| Field | Description |
|---|---|
| Protocol | https (the default) or http. |
| Host | The host name or IP address of any node in the cluster, for example, pve01.example.com or 192.0.2.10. |
| Port | The Proxmox VE API port. Defaults to 8006. |
| User or API token id | A user with its realm, for example, svc-cloudbolt@pve, or an API token ID, for example, svc-cloudbolt@pve!cloudbolt. |
| Password or API token secret | The user’s password, or the API token’s secret. If the password vault feature is enabled, this field offers Locally Stored or Vault Managed. Select Vault Managed to read the secret from a configured vault provider. See Use password vaults. |
| SSL Verification | Whether CMP verifies the Proxmox VE server’s SSL certificate. Selected by default. |
Import templates
An environment can’t provision until a template is imported and linked to it.
- On the handler, open the Templates tab and select Import Templates.
- Select templates, then select Import selected Templates.
- In the OS Build Environments column, select the edit icon for a template, choose the environments that may use it, then select Save changes.
If a template is missing from the list, check that it has an SMBIOS UUID, under the template’s Options > SMBIOS settings (type1). Proxmox VE sets one when it creates a VM.
To give servers static IP addresses, the template needs a cloud-init drive. CMP passes the IP settings, DNS servers, DNS domain, and the order’s username and password to cloud-init.
Import networks
An order can use only the networks you import and enable on its environment.
- On the handler, open the Networks tab and select Import Networks. The list shows the Linux bridges on each node and the cluster’s SDN VNets.
- Select networks, then select Import selected networks.
- Open the environment. On its Networks tab, choose which networks each NIC can use.
Order a server
The order form includes these Proxmox VE fields:
| Field | Description |
|---|---|
| Proxmox VE Node | The node the VM is created on. Defaults to Automatic (most free memory), which picks the online node with the most free memory that has the chosen storage and networks. |
| Clone Mode | Full clone (the default) copies the template’s disks. Linked clone shares them, and needs storage that supports linked clones. A linked clone must be on the template’s node unless the template’s disks are on shared storage. |
| Disk Storage | Shown for a full clone. Where the clone’s disks are created. Lists the storage on the selected node, or the storage every node has when the node is Automatic. Leave it empty to use the template’s storage. |
| Disk Format | Shown for a full clone. raw or qcow2. qcow2 is offered only on file-based storage, such as directory, NFS, CIFS, GlusterFS, or CephFS storage. Leave it empty to keep the template’s format. |
| Resource Pool | The Proxmox VE resource pool the new VM joins. Leave it empty for none. |
CMP deletes the new VM if any step after the clone fails.
If the template has the QEMU guest agent option enabled, the agent must be installed and running in the guest. CMP waits for the agent for up to the VM Customization Timeout (vm_customization_timeout), or 10 minutes if that isn’t set. Provisioning fails if the agent doesn’t respond in time.
Manage servers
To bring existing Proxmox VE VMs into CMP, open the handler’s Servers tab and select Sync VMs from followed by the handler’s name.
From CMP, you can:
- Power servers on and off, and reboot them.
- Change CPUs and memory. CMP adds memory to a running VM without a restart only when the VM has memory hotplug and NUMA enabled.
- Add, expand, and delete disks. A new disk goes on the same storage and bus as the boot disk.
- Add and remove network adapters, and change the network an adapter connects to.
- Create, revert to, and delete snapshots.
- Add and remove tags. CMP stores each tag as
key+value. Keys and values can contain only letters, digits,_,-, and.. - Run scripts on servers. This uses the QEMU guest agent, which must be installed and running in the guest. Scripts can be up to 60 KB.
- Delete servers. CMP stops the VM, then deletes it with its disks.
Related
- Resource handlers: the technologies CMP connects to, and how to enable a disabled one.
- Environments: what CMP creates for the cluster you import.
