> For the complete documentation index, see [llms.txt](https://docs.octoxlabs.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.octoxlabs.com/adapters/p/proxmox.md).

# Proxmox

Proxmox is a virtualization platform. OctoXLabs reads the QEMU virtual machines of every node, with their status, configuration and the IP addresses reported by the guest agent, and adds them to the device inventory.

## Use cases

* **List Proxmox virtual machines.** Review the VMs that Proxmox runs.

```
Adapters = proxmox
```

* **Find virtual machines that have no endpoint agent.** Replace the second adapter with your own EDR. How devices are matched depends on your device merge settings.

```
Adapters = proxmox AND NOT Adapters = crowdstrike
```

## Before you begin

### Network

| Source              | Destination                 | Port | Protocol |
| ------------------- | --------------------------- | ---- | -------- |
| OctoXLabs connector | Proxmox host (IP parameter) | 8006 | HTTPS    |

HTTPS is used when Is Secure? is on. TLS certificates are not verified.

### Required permissions

| Scope or role                                                          | Permission                | Needed for                                            |
| ---------------------------------------------------------------------- | ------------------------- | ----------------------------------------------------- |
| Privileges on `/nodes`, `/vms`, `/pool`, `/storage`, `/sdn`, `/Access` | Read                      | Listing nodes and VMs                                 |
| VM.Monitor, VM.Console, VM.Config.\* and other VM privileges           | As listed in the baseline | Reading VM status, configuration and guest agent data |

The baseline lists these privileges for the token user: VM.Backup, VM.Clone, VM.Config.CDROM, VM.Config.CPU, VM.Config.Cloudinit, VM.Config.Disk, VM.Config.HWType, VM.Config.Memory, VM.Config.Network, VM.Config.Options, VM.Console, VM.Migrate, VM.Monitor, VM.PowerMgmt, VM.Snapshot, VM.Snapshot.Rollback, /Access, /nodes, /pool, /sdn, /storage, /vms. The code only reads data, so a smaller set may be enough, but that is not verified.

## Create credentials in Proxmox

{% stepper %}
{% step %}

### Sign in

Log in to the Proxmox console.
{% endstep %}

{% step %}

### Create an API token

Go to **Datacenter**, then **Permissions**, then **API Tokens**, and generate a token.
{% endstep %}

{% step %}

### Copy the values

Copy the **Token ID** and the **Secret**. The secret is shown only once. The Token ID format is `USER@REALM!TOKENID`.
{% endstep %}

{% step %}

### Grant permissions

Give the token user the permissions listed above.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter    | Required | Type    | Default | Description                                                                        |
| ------------ | -------- | ------- | ------- | ---------------------------------------------------------------------------------- |
| IP           | Yes      | String  | None    | IP address of the Proxmox host.                                                    |
| Port         | No       | Integer | 8006    | Port number.                                                                       |
| Token ID     | Yes      | String  | None    | Token ID in `USER@REALM!TOKENID` form.                                             |
| API Secret   | Yes      | String  | None    | Secret of the token.                                                               |
| Is Secure?   | No       | Boolean | True    | Use HTTPS.                                                                         |
| Timeout      | No       | Integer | 30      | Seconds to wait for an API response.                                               |
| Thread Count | No       | Integer | 32      | Parallel threads for API requests. Allowed 1 to 32.                                |
| Sleep Time   | No       | Integer | 0       | Delay in seconds between thread batches. Increase it if you hit rate limit errors. |

## Troubleshooting

| Error message                                                  | Cause                                                                                   | Fix                                                        |
| -------------------------------------------------------------- | --------------------------------------------------------------------------------------- | ---------------------------------------------------------- |
| Status Code: `, followed by URL, Method and the response body` | Proxmox answered with a status other than 200. This is the shared REST connector error. | Check the Token ID, secret, port and the token privileges. |

## Change history

{% hint style="info" %}
Available starting from version 5.5.0.
{% endhint %}
