Rename host on proxmox 5

Valerio Pachera

Active Member
Aug 19, 2016
131
6
38
42
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:

upload_2017-7-12_15-44-17.png

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

shutdown all guests on the node you wish to rename
Code:
systemctl stop pve*
nano /etc/hostname
nano /etc/hosts
hostname <new_host_name>
hostname --ip-address
reboot
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

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!