How to change IP address and hostname of PVE machine after installation ?

fintnovo

Renowned Member
Jan 4, 2014
23
0
66
Good day to everyone !

I've installed Proxmox VE 3.1 in my LAN. Server has 4 NICs (eth0,1,2,3). During installation I've used temporary IP addresses (192.168.100.221) for the first NIC and temporary hostname proxmox1. Now I want to change IP address and hostname to transfer server to other LAN.

But after changing IP address (new address 192.168.0.1) in /etc/network/interfaces and hostname (new hostname srv01) in /etc/hostname and correcting /etc/hosts, web-interface didn't answer.

Is any correct way to change IP and hostname on installed standalone PVE ?

Thanks in advance for answer ).
 
Good day to everyone !

I've installed Proxmox VE 3.1 in my LAN. Server has 4 NICs (eth0,1,2,3). During installation I've used temporary IP addresses (192.168.100.221) for the first NIC and temporary hostname proxmox1. Now I want to change IP address and hostname to transfer server to other LAN.

But after changing IP address (new address 192.168.0.1) in /etc/network/interfaces and hostname (new hostname srv01) in /etc/hostname and correcting /etc/hosts, web-interface didn't answer.

Is any correct way to change IP and hostname on installed standalone PVE ?

Thanks in advance for answer ).

Hi,
the official way is an new installation.
Perhaps you can change it by hand (never tried).
Take a look at /etc/pve - there are directories and links named the hostname
Code:
local -> nodes/proxmox1
openvz -> nodes/proxmox1/openvz
qemu-server -> nodes/proxmox1/qemu-server
....
also defined in cluster.conf

Udo
 
the official way is an new installation.
I agree with udo.

I've tried changing the hostname and IP addresses post install and found that you can get it working by modifying a few config files but I would occasionally encounter issues where it was looking for the original hostname or IP. When possible, a clean install is the best option.