util-vserver:Cheatsheet

From Linux-VServer

Revision as of 11:11, 3 November 2008 by 82.246.252.16 (Talk)

Jump to: navigation, search

This is a cheatsheet for util-vserver. Some of these recipes have been arrived at by users, using trial and error, so they may not always be the "official" solutions.

Where to find the latest util-vserver ?

Look here:
http://people.linux-vserver.org/~dhozac/t/uv-testing/

How to add an IP address to a guest ?

  1. create the address on the host:
    ifconfig eth0:10 172.16.0.145/12
    or
    ip addr add dev eth0 172.16.0.145/12
    or even
    ip addr add dev dummy0 172.16.0.145/12
  2. add the adress:
    naddress --nid guestname --add --ip 172.16.0.145 --bcast 172.31.255.255
    • Depending on what you use the vserver for, you may not want the broadcast thing at all; you can also use a /32 mask for the IP in this case.
  3. add the ip to the config directory to make it stick if you restart
  4. enter the guest and verify services that need to listen on the ip, restart if necessary (for me it was not).
Personal tools