For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to page URLs.
Skip to content

Proxmox Inventory and Templates

A Proxmox asset is a virtual machine or container hosted on a Proxmox hypervisor. It uses the same inventory model as standard OCS assets.

As with standard OCS asset inventories, Proxmox assets are composed of two main elements: the base inventory and the template inventory.

Assets

There are two ways to view Proxmox assets:

View all assets

1

Navigate to Inventory → General → Proxmox Inventory.

You will see all Proxmox assets.

2

Select a hypervisor to see only the corresponding assets.

Proxmox inventory dashboard view
Proxmox inventory dashboard view

View assets corresponding to an hypervisor

1

Navigate to Configuration → Inventory → Proxmox Hypervisors.

2

Click the View assets button (display icon) on the hypervisor you want.

You'll see the assets that correspond to this hypervisor.

3

Select All or another hypervisor from the list.

Base inventory

The base inventory provides a default set of core information about an asset. This inventory is always available and includes the following fields by default:

  • Name: name of the container/VM in Proxmox.

  • Description

  • Serial Number: generated from the hypervisor's name in the app, the last part of the UUID, and the ID on the Proxmox server.

  • OS Name

  • OS Version: cannot currently be retrieved.

  • UUID

  • IP Address

  • MAC Address

  • Domain: cannot currently be retrieved.

  • Agent Version: Proxmox API x.x.x

Template inventory

To extend the base inventory, OCS uses a template system. Templates add extra fields and define which method should be used to retrieve the corresponding data.

More details are available on the Inventory and Templates page.

Preloaded Templates

By default, OCS includes six preloaded templates. This extension adds two more, also available under Configuration → Inventory → Templates:

  • Proxmox QEMU VM

  • Proxmox LXC Container

Template fields and their retrieval methods for Proxmox QEMU VM
Template fields and their retrieval methods for Proxmox QEMU VM

Template assignment

Using Rules (automatic)

Templates are assigned to assets based on their Proxmox resource type. OCS uses the Rule Engine to determine and apply the correct template the first time an asset reports its inventory.

Out of the box, this OCS extension provides two predefined rules, evaluated against the Proxmox resource type field, used to assign templates automatically:

Field evaluated
Value(s) expected
Template

Proxmox ressource type

qemu

Proxmox QEMU VM

Proxmox ressource type

lxc

Proxmox LXC Container

Note on automatic assignment:

  • Rules are evaluated with each incoming inventory.

  • If no rule matches, the asset will only report using base inventory.

  • Template assignment can also be switched to manual selection per device. More details are available on the Managing Rules page.

Manual Template assignment

In addition to automatic assignment, templates can be manually assigned to an asset from its detail page, like any standard OCS asset.

To manually assign a template:

  1. Navigate to the asset's detail page.

  2. On the right side, click the Options icon.

  3. Select Assign inventory template from the drop-down menu.

  4. Choose the desired template for the asset from the list.

A manually assigned template is never overridden by rules.

To switch back to automatic assignment:

  1. Open the asset's detail page.

  2. Click the Options icon at the top right.

  3. In the drop-down menu, select Reset inventory template.

The template will be reset, and a new one will be automatically assigned during the next inventory if a rule matches.

Last updated