WEIGEL FORUM
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Login

    Proxmox || change hostname on node with existing VMs

    Linux
    1
    1
    6
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • DerMeldosD
      DerMeldos
      last edited by DerMeldos

      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/hosts
      
      nano /etc/hostname
      
      nano /etc/postfix/main.cf
      

      Reboot 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/lcx
      
      rm -r old_hostname
      
      cd /var/lib/rrdcached/db/pve2-node/
      
      cp -r old_hostname new_hostname
      
      rm -r old_hostname
      

      CREDIT: https://base64.co.za/rename-proxmox-node-with-existing-vms/

      1 Reply Last reply Reply Quote 0
      • First post
        Last post
      Powered by NodeBB | Contributors