Rename host on proxmox 5

Valerio Pachera

Active Member
Aug 19, 2016
Hi, I need to rename a proxmox 5 isntallation.
I found this documentation on the wiki but it seems outdate and it say "This must be done on a empty node".
My node isn't empty.
Could you please provide the right procedure to rename a host?

Right now I end up like this:


Thank you.
I tested this procedure and it seems to work:

shutdown all guests on the node you wish to rename
systemctl stop pve*
nano /etc/hostname
nano /etc/hosts
hostname <new_host_name>
hostname --ip-address
mv /etc/pve/nodes/<old_host_name>/lxc/* /etc/pve/nodes/<new_host_name>/lxc
mv /etc/pve/nodes/<old_host_name>/qemu-server/* /etc/pve/nodes/<new_host_name>/qemu-server
rm -r /etc/pve/nodes/<old_host_name>
refresh web page
  • Like
Reactions: Sensiva


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!