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
Navigate to Inventory → General → Proxmox Inventory.
You will see all Proxmox assets.
Select a hypervisor to see only the corresponding assets.

View assets corresponding to an hypervisor
Navigate to Configuration → Inventory → Proxmox Hypervisors.
Click the View assets button (display icon) on the hypervisor you want.
You'll see the assets that correspond to this hypervisor.
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.
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 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:
Proxmox ressource type
qemu
Proxmox QEMU VM
Proxmox ressource type
lxc
Proxmox LXC Container
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:
Navigate to the asset's detail page.
On the right side, click the Options icon.
Select Assign inventory template from the drop-down menu.
Choose the desired template for the asset from the list.
To switch back to automatic assignment:
Open the asset's detail page.
Click the Options icon at the top right.
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

