PVE 3 - Changing IP

apmuthu

Renowned Member
Feb 26, 2009
871
12
83
Chennai - India & Singapore
github.com
When installing Proxmox VE 3.0 I used one IP address for the vmbr0.

Later I set the IP and DNS (Server View -> [Node] -> Network & DNS) it should have in the new network before shutting it down and moving it to the new network.

This changed entries in /etc/network/interfaces and /etc/resolv.conf but the entry in the /etc/hosts file had to be manually set for the new network.

The following link was useful:
https://coderwall.com/p/qceqoa

Although stated as fixed in the Dev List, the file /etc/default/pveproxy is still absent in the normal install.

Can anyone please post it's default contents?

https://IP:8006 or http://localhost:85 will access the PVE3 Web Interface and these ports are hardcoded in Lines 139-144 in /usr/share/perl5/PVE/API2Client.pm :

Code:
    if (!$self->{port}) {
    $self->{port} = $self->{host} eq 'localhost' ? 85 : 8006;
    }
    if (!$self->{protocol}) {
    $self->{protocol} = $self->{host} eq 'localhost' ? 'http' : 'https';
    }

Hence it might be okay to change Line 19-22 of /usr/bin/pvebanner:
Code:
Welcome to the Proxmox Virtual Environment. Please use your web browser to 
configure this server - connect to:

  https://${localip}:8006/
to be
Code:
Welcome to the Proxmox Virtual Environment. Please use your web browser to 
configure this server - connect to:

  https://${localip}:8006/
or
  http://localhost:85/

Unfortunately, http://localhost:85/ does not work - any way to enable it? Possibly used for Ajax and other internal jQuery calls only.
 
Last edited: