Create URL to a specific VM

Feb 18, 2019
9
0
21
44
Hi!

Is there another way, except https://fulitvh.ad1.proemion.com:8006/#v1:0:=qemu%2F106:4::::::, to point to a VM?
Something like https://promox:8006/vmName would be so much easier in some cases. Or at least it would not be required to query the API to find out the ID.

Thanks in advance!
 
But VM names are not unique, so https://proxmox:8006/duplicate could point to multiple VMs.

Example with 3 VMs with the same name but different IP.

Code:
root@mynode:~# pvesh get nodes/mynode/qemu --output-format=json-pretty | grep -E "name|vmid" | grep -A1 duplicate
      "name" : "duplicate",
      "vmid" : "131"
--
      "name" : "duplicate",
      "vmid" : "129"
--
      "name" : "duplicate",
      "vmid" : "128"

While when you want to create a second VM with existing ID, you get an error
Code:
root@mynode:~# qm create 128
unable to create VM 128 - VM 128 already exists on node 'mynode'
 
Last edited: