[SOLVED] Change the name of a VM?

cdsJerry

Renowned Member
Sep 12, 2011
222
9
83
How can I change the name of a VM, not the number, but the name that's beside it ie VM104 (Name) to VM104 (NewName). I know I could clone it and then delete the original but that seems like it's the hard way. What's the easy way?
 
How can I do this for many VM's (I need to rename 300 of them). Is there any file that contains these names?
 
The files are located here: /etc/pve/qemu-server/ , ie
Code:
grep name: /etc/pve/qemu-server/100.conf
name: vm100

You can certainly manually edit them by one. Or find a way to automate it via CLI or API, ie:
for i in {100..400};do qm set $i --name mynewname$i;done


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
 
Last edited:
The files are located here: /etc/pve/qemu-server/ , ie
Code:
grep name: /etc/pve/qemu-server/100.conf
name: vm100

You can certainly manually edit them by one. Or find a way to automate it via CLI or API, ie:
for i in {100-400};do qm set $i --name mynewname$i;done


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
THANK YOU VERY MUCH! I did not know where the actual configuration file was stored. This is much help!