Renaming host, nodes ?

unleeshop

Member
Jul 21, 2009
38
0
6
Minor problem: I may have mismanaged renaming a new PV server.
To upgrade an existing PV host to PV 5.2 I had our network folks assign a new physical computer a temporary name in our campus DNS, then ran a clean PVE 5 install on it. I copied over my VM snapshot files, unpacked and ran one, everything seems fine. Next, shut down the old physical machine, and have the network folks assign its name and IP number to my new box. But it wouldn't boot up using the old server's name: I didn't catch at first that the temporary name/IP the new server had pulled with DHCP when I first set it up would get hard-coded into /etc/hosts, /etc/hostname, and /etc/network/interfaces. Corrected those files, now my "new" server looks like the "old" server on the network, NFS mounts to it work, hooray we've succeeded in upgrading.

Almost.... when I run the PVE web console on the new box, I do see the name of my host as one of the nodes. But there is also a node listed with the previous temporary server name. And, the VM I had loaded up when I was testing the server with its temporary name, does not appear on my list of available VMs under the permanent server's node name. (See screenshot. VM is 203. Permanent server name is ee-psi.)pve.jpg

So, my questions: 1) proper way to remove the temporary node and 2) proper way to get my VM on the permanent node.

I can see in /etc/pve/nodes directories named for the temporary server name and the permanent server name. The config file for my VM is in the qemu-server subdirectory of the temporary node. I attempt to simply copy it over to the qemu-server directory of the permanent node. It won't do so.

My Suggested Solutions: I could just reload my VM from the backup snapshots like I did when I first brought it over to the server. I just want to be sure that won't confuse/break something, or that it won't result in using twice as much space because of the "ghost" node. And, I guess I could manually erase the temporary node's directories in /etc/pve/nodes . Again, I don't want to break something. Yeah, I could do another clean PVE install, but I've got things like NFS working and all my snapshots copied (this system is a backup server for another host), would like to avoid that.
 
Last edited:
You can move the vmid.conf to the folder of the new node and then remove the old folder.
https://pve.proxmox.com/wiki/Renaming_a_PVE_node

Thanks, good to know I'm on right track. What was throwing me was that I would try to COPY the vmid.conf file to the new node, but the command would not work. No error message, just wouldn't "go". But when I did a "move" it moved happily enough. Don't care why, it's all working now. Thanks again.
 
Last edited:

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!