Hi,
Yesterday I wrote a bash hook script to automate workarounds that circumvent problems I got with backups, making it possible to backup VMs that share the same PCIe device and allow to shutdown a PBS without making the webUI unusable.
For that I had to group VMs that share a PCIe device. Right now I just hardcoded the VMIDs in a bash array. But this means I will have to edit the hook script every time I add/remove a VM.
I now had the idea that I could make use of the new tagging feature to group my VMs via the webUI by assigning them the same tag.
But I wasn't able to find out how to work with tags from CLI.
Isn't that supported yet?
What I would need is something like a
And something like a
If those CLI commands doesn't already exist, would it be possible to do something like that using the API by calling pvesh?
Yesterday I wrote a bash hook script to automate workarounds that circumvent problems I got with backups, making it possible to backup VMs that share the same PCIe device and allow to shutdown a PBS without making the webUI unusable.
For that I had to group VMs that share a PCIe device. Right now I just hardcoded the VMIDs in a bash array. But this means I will have to edit the hook script every time I add/remove a VM.
I now had the idea that I could make use of the new tagging feature to group my VMs via the webUI by assigning them the same tag.
But I wasn't able to find out how to work with tags from CLI.
Isn't that supported yet?
What I would need is something like a
qm getVmidsByTag "mytag"
which would output a list of all VMIDs that are tagged with "mytag".And something like a
qm getTags 100
which would output a list of all tags that the VM with VMID 100 is using.If those CLI commands doesn't already exist, would it be possible to do something like that using the API by calling pvesh?
Last edited: