change host setting - then cannot get to the web gui

cedrictang

New Member
Sep 9, 2024
12
1
3
Hello please help!.

proxmox version 8.x.x

I was hoping to change the hostname and I went the the gui and change the 2nd line in the system->host setting.

127.0.0.1 localhost.localdomain localhost
192.168.18.27 pve01.xxx.yyy pve01

I change the 2nd line and change the pve01 to another name. But when I reboot I cannot get to the gui.
I can ping the machine and I can log in locally.

Can anyone help me to get the gui back? PLEASE!

Thank you!
 
Did you change the hostname like:
Code:
hostnamectl set-hostname "new_hostname"

Or by editing the file : /etc/hostname with the new hostname ?
 
Did you change the hostname like:
Code:
hostnamectl set-hostname "new_hostname"

Or by editing the file : /etc/hostname with the new hostname ?
no i didn't do that. (i wished i google that before).

i edited something in the GUI under the node name then System, then Hosts. And now I cannot get to the gui on port 8006, which means I cannot administer the host. I am not very good with linux and the cli.

What can I do to change it back so that at least I can get back to the web gui.

Cheers!Image 30-08-2025 at 16.33.jpg
 
Last edited:
You need to run the command I suggested from the CLI (or edit the file manually). After that, restart your server or just restart the pveproxy service:
Code:
hostnamectl set-hostname "new_hostname"
systemctl restart pveproxy
As root or with sudo.
 
Thank you for your reply! I could get back to the webui but everything is not in the right place. And I am getting various proxy error.
Originally the hostname was proxmox1, I wanted to change it to pt-proxmox1.

Image 30-08-2025 at 16.59.jpg



Image 30-08-2025 at 16.57.jpg
 
ok I managed to get back to my original starting point. won't risk renaming in case this blows up again.
Thank you for your help!