rename node

/etc/hostname
/etc/hostname
'127.0.0.1 localhost.localdomain localhost
192.168.1.2 prox1.mydomain.nu prox1

# The following lines are desirable for IPv6 capable hosts

::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

Going to move my server this weekend and that mean that I have to shutdown everything.
So I can see after that if the node have change name.
 
node.jpg
I did startup my proxmox server but how do I move my VM to the new node?

/UPDATE
Did find that I have to move my conf file to the new node and I do that now
 
Last edited:
Hi, same issue for me.
Changed the /etc/hosts and /etc/hostname files and rebooted PVE.
New hostname is applied OK but all my VMs are greyed-out (under the previous hostname).
What setting(s) did you alter in the conf file to fix that? Thanks
 
Last edited:
Hmm sorry but I dont remember more then I have write in the update
I did just move my conf files to the new node
I did it from shell.
 
Here's what I've done to resolve my issue:

# hostname intel-pve
# vi /etc/hosts (reflect your new hostname e.g. intel-pve)
# vi /etc/hostname (reflect your new hostname e.g. intel-pve)
# cp -p /var/lib/rrdcached/db/pve2-node/proxmox /var/lib/rrdcached/db/pve2-node/intel-pve
# cp -p /var/lib/rrdcached/db/pve2-storage/proxmox/* /var/lib/rrdcached/db/pve2-storage/intel-pve
# service pve-cluster stop && pmxcfs --local
# mv /etc/pve/nodes/proxmox/qemu-server/* /etc/pve/nodes/intel-pve/qemu-server
# rm -Rf /etc/pve/nodes/proxmox
# rm -Rf /var/lib/rrdcached/db/pve2-node/proxmox
# rm -Rf /var/lib/rrdcached/db/pve2-storage/proxmox
# reboot
 
Here's what I've done to resolve my issue:

# hostname intel-pve
# vi /etc/hosts (reflect your new hostname e.g. intel-pve)
# vi /etc/hostname (reflect your new hostname e.g. intel-pve)
# cp -p /var/lib/rrdcached/db/pve2-node/proxmox /var/lib/rrdcached/db/pve2-node/intel-pve
# cp -p /var/lib/rrdcached/db/pve2-storage/proxmox/* /var/lib/rrdcached/db/pve2-storage/intel-pve
# service pve-cluster stop && pmxcfs --local
# mv /etc/pve/nodes/proxmox/qemu-server/* /etc/pve/nodes/intel-pve/qemu-server
# rm -Rf /etc/pve/nodes/proxmox
# rm -Rf /var/lib/rrdcached/db/pve2-node/proxmox
# rm -Rf /var/lib/rrdcached/db/pve2-storage/proxmox
# reboot


Thank you very much! Your answer helped a lot.
Why hasn't this information been added to the official proxmox documentation yet? There is not a word about this on the page https://pve.proxmox.com/wiki/Renaming_a_PVE_node
 
I think I just screwed up. I tried to change the hostname/node name. First did the wiki steps...doesn't allow me to load the web interface. Then I tried the steps above, still doesn't work.

Now I just want to go back to the original. I still have access to SSH and the physical terminal.

Is there a way to recovery the web interface?
 
Here's what I've done to resolve my issue:

# hostname intel-pve
# vi /etc/hosts (reflect your new hostname e.g. intel-pve)
# vi /etc/hostname (reflect your new hostname e.g. intel-pve)
# cp -p /var/lib/rrdcached/db/pve2-node/proxmox /var/lib/rrdcached/db/pve2-node/intel-pve
# cp -p /var/lib/rrdcached/db/pve2-storage/proxmox/* /var/lib/rrdcached/db/pve2-storage/intel-pve
# service pve-cluster stop && pmxcfs --local
# mv /etc/pve/nodes/proxmox/qemu-server/* /etc/pve/nodes/intel-pve/qemu-server
# rm -Rf /etc/pve/nodes/proxmox
# rm -Rf /var/lib/rrdcached/db/pve2-node/proxmox
# rm -Rf /var/lib/rrdcached/db/pve2-storage/proxmox
# reboot
I just want to say my thanks to you too!
The official Wiki completely fails to mention that renaming the Node with active VMs will break your setup... This should honestly be added and I hope the Admins here can bring that change in somewhere. @Moayad
 
Here's what I've done to resolve my issue:

# hostname intel-pve
# vi /etc/hosts (reflect your new hostname e.g. intel-pve)
# vi /etc/hostname (reflect your new hostname e.g. intel-pve)
# cp -p /var/lib/rrdcached/db/pve2-node/proxmox /var/lib/rrdcached/db/pve2-node/intel-pve
# cp -p /var/lib/rrdcached/db/pve2-storage/proxmox/* /var/lib/rrdcached/db/pve2-storage/intel-pve
# service pve-cluster stop && pmxcfs --local
# mv /etc/pve/nodes/proxmox/qemu-server/* /etc/pve/nodes/intel-pve/qemu-server
# rm -Rf /etc/pve/nodes/proxmox
# rm -Rf /var/lib/rrdcached/db/pve2-node/proxmox
# rm -Rf /var/lib/rrdcached/db/pve2-storage/proxmox
# reboot
Thank you! I had to also modify content of
/etc/pve/storage.cfg

Code:
dir: local
        path /var/lib/vz
        content iso,vztmpl,backup
        shared 0

lvmthin: local-lvm
        thinpool data
        vgname pve
        content rootdir,images

dir: hdd-01
        path /mnt/pve/hdd-01
        content snippets,backup,rootdir,images
        prune-backups keep-all=1
        shared 1

dir: nvme-01
        path /mnt/pve/nvme-01
        content images,vztmpl,rootdir,iso
        is_mountpoint 1
        nodes intel-pve
        shared 1
 
  • Like
Reactions: luda83

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!