Proxmox || change hostname on node with existing VMs
-
Please note that I have only tried this on a single Proxmox node, and NOT a node joined to a cluster.
Change to the new hostname in the following 3 files:
nano /etc/hostsnano /etc/hostnamenano /etc/postfix/main.cfReboot Proxmox.
Next, copy the VMs and configuration to the new hostname folder:
cd /etc/pve/nodes/cp -r old_hostname/qemu-server new_hostname/qemu-server cp -r old_hostname/lcx new_hostname/lcxrm -r old_hostnamecd /var/lib/rrdcached/db/pve2-node/cp -r old_hostname new_hostnamerm -r old_hostnameCREDIT: https://base64.co.za/rename-proxmox-node-with-existing-vms/