Rename host on proxmox 5

Discussion in 'Proxmox VE: Installation and configuration' started by Valerio Pachera, Jul 12, 2017.

  1. Valerio Pachera

    Joined:
    Aug 19, 2016
    Messages:
    123
    Likes Received:
    1
    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.
     
  2. Valerio Pachera

    Joined:
    Aug 19, 2016
    Messages:
    123
    Likes Received:
    1
    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
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice