Proxmox Vhost IP Address Configuration

Some key cmds that I had to use to get the networking operational on the proxmox server:


root@proxmax:/etc/network# vzctl set 103 --ipadd 192.168.3.88 --save

This will poke a new IP address into the config for the container.
The "/etc/network/interfaces" files that results will look like this:

root@XXX4 /etc/network# less interfaces
# This configuration file is auto-generated.
#
# WARNING: Do not edit this file, your changes will be lost.
# Please create/edit /etc/network/interfaces.head and
# /etc/network/interfaces.tail instead, their contents will be
# inserted at the beginning and at the end of this file, respectively.
#
# NOTE: it is NOT guaranteed that the contents of /etc/network/interfaces.tail
# will be at the very end of this file.
#

# Auto generated lo interface
auto lo
iface lo inet loopback

# Auto generated venet0 interface
auto venet0
iface venet0 inet manual
up ifconfig venet0 up
up ifconfig venet0 127.0.0.2
up route add default dev venet0
down route del default dev venet0
down ifconfig venet0 down

iface venet0 inet6 manual
up route -A inet6 add default dev venet0
down route -A inet6 del default dev venet0

auto venet0:0
iface venet0:0 inet static
address 192.168.3.88
netmask 255.255.255.255

And from the Proxmox Controller:

root@proxmax:/etc/network# vzlist
CTID NPROC STATUS IP_ADDR HOSTNAME
100 18 running - XXX3.msjlaw.us
101 19 running - XXX4.msjlaw.us
root@proxmax:/etc/network#
root@proxmax:/etc/network# vzctl set 101 --ipadd 192.168.3.88 --save
Adding IP address(es): 192.168.3.88
CT configuration saved to /etc/pve/openvz/101.conf

root@proxmax:/etc/network# vzlist
CTID NPROC STATUS IP_ADDR HOSTNAME
100 18 running - XXX3.msjlaw.us
101 18 running 192.168.3.88 XXX4.msjlaw.us
root@proxmax:/etc/network#
root@proxmax:/etc/network# ping 192.168.3.88
PING 192.168.3.88 (192.168.3.88) 56(84) bytes of data.
64 bytes from 192.168.3.88: icmp_req=1 ttl=64 time=0.047 ms
64 bytes from 192.168.3.88: icmp_req=2 ttl=64 time=0.015 ms
64 bytes from 192.168.3.88: icmp_req=3 ttl=64 time=0.014 ms
64 bytes from 192.168.3.88: icmp_req=4 ttl=64 time=0.022 ms
64 bytes from 192.168.3.88: icmp_req=5 ttl=64 time=0.027 ms
^C