Subject: Re: [vserver] Problem adding IP address to guest
From: "Daniel Hokka Zakrisson" <daniel@hozac.com>
Date: Mon, 11 Aug 2008 14:35:51 +0200 (CEST)

Jeff Williams wrote:
> Hi,
>
> I followed these instructions to add an IP address to a running vserver:
>
> ----------------------------------------------------------------
> This is done from the host server:
>
>     * add the ip on the host, for example
>
> ip addr add 194.169.123.23/24 dev eth0
>
>     * add the ip to the guest's network context (a guests NID is the
>       same as the XID {context ID})
>
> naddress --add --nid <nid> --ip 194.169.123.23/24
>
> ----------------------------------------------------------------
>
> So step one:
>
> # ip addr add 203.24.54.5/32 dev eth0
>
> And then step two:
>
> # vserver-stat
> CTX   PROC    VSZ    RSS  userTIME   sysTIME    UPTIME NAME
> 0       76 402.9M 100.3M   2d17h47   1d13h29 179d18h32 root server

This means you're either using old utils, or an old kernel... Either way, I suggest
you
upgrade.

> 49157   53  15.9+   2.2G  23m24s78  10m40s36 179d17h49 charon
> 49158   12 211.1M  20.5M  39m48s30   1h18m14 179d17h49 nereid
> 49159  149 421.9M   2.2G   1d19h53   1d04h22 179d17h49 ceres
> 49160   12 278.8M   172M   9d11h32   3d15h29 179d03h09 dactyl
> 49165    8  19.5M   5.9M   0m44s69   0m27s59  34d23h48 oberon
> 49167    5   1.1G  22.9M   0m06s36   0m08s81  26d04h04 rhea

You are using dynamic context ids, which are deprecated for a reason, this being one
of
them. Set static context ids and everything will be fine...

-- 
Daniel Hokka Zakrisson