[SOLVED] Change the name of a VM?

cdsJerry

Active Member
Sep 12, 2011
185
8
38
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?
 

zillion72

New Member
Oct 5, 2022
2
0
1
How can I do this for many VM's (I need to rename 300 of them). Is there any file that contains these names?
 

bbgeek17

Renowned Member
Nov 20, 2020
1,118
215
68
Blockbridge
www.blockbridge.com
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:

zillion72

New Member
Oct 5, 2022
2
0
1
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 your own in 60 seconds.

Buy now!