[SOLVED] LXC/KVM unique id

Tlams

New Member
Sep 12, 2016
11
0
1
33
Hello,

I'm looking for a solution to follow the position of one instance in a large infrastructure.

Example:

I have an LXC on my "Cluster_1", in the node "Node_1", with the id "120".

For few reasons, the LXC was migrate to:
"Cluster_2", in the node "Node_3", with the id "293".

How can i determine that is the same instance ?
- Without specific agents on the guest system.

The instances can be identify by an real unique id ?

Thomas.
 
Sorry, our IDs are currently only unique on a cluster basis., as one cluster does not knows anything about another one this is not easily possible.

You could use the description (notes field in the webUI) to assign your own unique IDs, e.g.:
Code:
qm set VMID --description dns-1

This is saved as "#" prefixed comment in the VM/CT config file.
 
Thanks you for your answer.

ok, I had the same idea, it seem the best way.

Probably with something like this to match:
(python regx) /^id=\"([a-z]+)\"$/
(comment) id="azertyui"