Bachelor Tech
  • Home
  • Tutorials
  • Portfolio
  • About Jan
  • Contact Jan
LinuxProxmox

How to Rename a Proxmox Node

by Jan Bachelor May 4, 2025
31 views
32

In case you run Proxmox and realize that you would like to change the hostname, for example when about to join two nodes together into a cluster, you can proceed in the following way:

  • Run ‘hostnamectl’ to see what you have set at the moment.
  • Rename it in the following files:
/etc/hostname
/etc/hosts
/etc/postfix/main.cf
  • Then rename it in active by running ‘hostnamectl set-hostname your-node-name’
  • Verify that it is set correctly by running ‘hostnamectl’
  • Restart these proxmox-related services:
systemctl restart pvedaemon
systemctl restart pvestatd
systemctl restart pveproxy
  • In case you open your node’s web interface at this point, you will notice that the old node is still there with its VMs in an unknown state. You will need to move files from one pve to another. Let’s say we renamed it from ‘node1’ to ‘proxmox1’. You would need to run the following:
# Modify these lines to your own hostnames! 
# From node1 to proxmox1:
mv /etc/pve/nodes/node1/lxc /etc/pve/nodes/proxmox1/lxc
mv /etc/pve/nodes/node1/qemu-server /etc/pve/nodes/proxmox1/qemu-server

The above will move information about all the containers and VMs onto the new node name. It is recommended to do a reboot of the node afterwards.

0 comments 0 FacebookWhatsappEmail
Jan Bachelor

previous post
How to mount an NFS share on an Android box
next post
How to join two Proxmox nodes into a cluster (PVE 8.x)

You may also like

How to join two Proxmox nodes into a cluster (PVE 8.x)

May 4, 2025

How to mount an NFS share on an Android box

February 3, 2024

Leave a Comment Cancel Reply

Save my name, email, and website in this browser for the next time I comment.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Course Steps

Recent Comments

  • Jan Bachelor on Dynamic DNS Set Up with DuckDNS on OPNSenseHi Jake, that's awesome, congratulations on getting…
  • Jake on Dynamic DNS Set Up with DuckDNS on OPNSensefollowed guide above to the T and all is working. i…
  • Fastbrain on Dynamic DNS Set Up with DuckDNS on OPNSenseThanks for the guide. For some reason, after follow…

Other courses

Install iRedMail Mail Server As Proxmox VM With...

October 31, 2024

Remote Bucket Storage for Proxmox VM Backups

August 16, 2024

Concur Alternative: Import Employees’ Credit Card Expenses to...

January 19, 2024

Create an automated Gravity workflow that will allow...

January 19, 2024

Dynamically Populate Gravity Forms from Google Sheets (GSheets...

March 16, 2021
Bachelor Tech
  • Home
  • Tutorials
  • Portfolio
  • About Jan
  • Contact Jan

Recent Posts

  • How to join two Proxmox nodes into a cluster (PVE 8.x)

  • How to Rename a Proxmox Node

  • How to mount an NFS share on an Android box

Facebook Twitter Instagram Pinterest Linkedin Youtube

All Rights Reserved. The theme was customized from Soledad, see PenciDesign