[SOLVED] Change the name of a VM?

cdsJerry

Renowned Member
Sep 12, 2011
218
8
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!
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!