Cant acces to webGUI after trying to change the node/hostname name

Datex

New Member
Sep 22, 2024
3
0
1
Hey guys. Im having an issue that after i tried to change the node/hostname name i can no longer acces the webGUI. I did it using this tutorial video. after the system reboot i found out foulder /etc/pve/nodes didnt exist, it was just deleted. luckily i still had backup of the original /etc/pve/nodes/<old-node-name>. So i created dir /etc/pve/nodes than copy the backup to /etc/pve/nodes than i renamed it to the new node name. In the end it looked like this /etc/pve/nodes/<new-node-name> with the original files. but even with the old node dir i couldnt acces the web gui. I would really appreciate for every suggestion i get.
 
I've tested this here. Simply rename the node under /etc/hostname and /etc/hosts. After a reboot you have 2 nodes under /etc/pve/nodes/. The oldnamed and the newnamed. Now move all the files from old to new. Example: change nodename/hostname pve to pve1: (the directory can't be moved)

Code:
cd /etc/pve/nodes/pve1
mv  ../pve/* .

mv: cannot move '../pve/qemu-server' to './qemu-server': Directory not empty
LXC and qemu-server cannot be moved, therefore only the contents:

Code:
mv ../pve/qemu-server/* qemu-server/.
After you moved everything, you can delete the old node with:

Code:
rm -rf /etc/pve/nodes/pve
 

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!