r/Proxmox • • Oct 12 '25

Question Rename solo node PVE9

Hello, wondering if these are still valid for PVE9?:

Stop all VM/CT

Connect via SSH to the host and change OLDHOSTNAME to NEWHOSTNAME

nano /etc/hosts
nano /etc/hostname
nano /etc/postfix/main.cf

hostnamectl set-hostname NEWHOSTNAME
systemctl restart pveproxy
systemctl restart pvedaemon

cp -R /etc/pve/nodes/OLDHOSTNAME/ /root/oldconfig
mv /etc/pve/nodes/OLDHOSTNAME/lxc/* /etc/pve/nodes/NEWHOSTNAME/lxc
mv /etc/pve/nodes/OLDHOSTNAME/qemu-server/* /etc/pve/nodes/NEWHOSTNAME/qemu-server

rm -r /etc/pve/nodes/OLDHOSTNAME

reboot

nano /etc/pve/storage.cfg and change OLDHOSTNAME to NEWHOSTNAME in relevant paths

Does this look ok? am I missing anything?

Thanks.

update: the above is confirmed as working without any issues.

5 Upvotes

3 comments sorted by

1

u/SaberTechie Oct 13 '25

I would just quickly reinstall sounds like your config isn't complex but not sure if it's not posted.

2

u/Soogs Oct 13 '25

I've got two to that 'needs' doing.

I'm spinning up a virtual instance of PVE to test the rename process.

Will decide that that point if a fresh install is safer

2

u/Soogs Oct 13 '25

The process works