I've got a fresh Proxmox 8.1.3 server. It is not part of a cluster and no vms or containers are set up or running. Only system updates performed. I'd like to change the hostname without having to reinstall the whole os from scratch. This documented method does not work: https://pve.proxmox.com/wiki/Renaming_a_PVE_node. It results in a web interface error
Out of curiosity, I asked ChatGPT... Steps listed were:
This resulted in the web interface breaking completely where the web interface would not load at all whereas the previous method found in the proxmox.com wiki resulted in the web interface loading and allowing login, but with the connection error. So I ssh into the server and run
What's even odder is that the /etc/pve directory was completely empty. ChatGPT suggested I look for the /etc/pve/local/pve-ssl.key and even use
Now, even weirder is that when I reverted the hostname with
the /etc/pve files returned. Whaaaaaat?
I'm scratching me head. I gotta believe a hostname can be changed. It's not completely out of the realm of normal in a enterprise or homelab environment that a hostname would need to be changed short of a complete take down and reinstall of a server and it's services.
Thanks for any advise you might have
t.dema
Connection failed (Error 500: failed to get address info for: pve1: No address associated with hostname)
Out of curiosity, I asked ChatGPT... Steps listed were:
Code:
hostnamectl set-hostname newhostname
systemctl restart systemd-hostnamed
hostnamectl # to verify
nano /etc/hosts # modify existing host with new host
reboot
This resulted in the web interface breaking completely where the web interface would not load at all whereas the previous method found in the proxmox.com wiki resulted in the web interface loading and allowing login, but with the connection error. So I ssh into the server and run
Code:
systemctl status pveproxy
mynewhosthame pveproxy[1480]: /etc/pve/local/pve-ssl.key: failed to load local private key (key_file or key) at /usr/share/perl5/PVE/APIServer/AnyEvent.pm line 2009.
What's even odder is that the /etc/pve directory was completely empty. ChatGPT suggested I look for the /etc/pve/local/pve-ssl.key and even use
pvecm updatecerts
to update the ssl certs. Of course, the files seem to have vanished.Now, even weirder is that when I reverted the hostname with
Code:
hostnamectl set-hostname theoldhostname
systemctl restart systemd-hostnamed
reboot
the /etc/pve files returned. Whaaaaaat?
I'm scratching me head. I gotta believe a hostname can be changed. It's not completely out of the realm of normal in a enterprise or homelab environment that a hostname would need to be changed short of a complete take down and reinstall of a server and it's services.
Thanks for any advise you might have
t.dema
Last edited: