We currently migrate to MediaWiki from our old installation, but not all content has been migrated yet. Take a look at the Wiki Team page for instructions how to help or browse through our new wiki at wiki.linux-vserver.org to find the information already migrated.
create following under /sbin/vinit (add the ip's you want)
#!/bin/sh exec /sbin/chbind --ip 10.20.20.10/16 --bcast 10.20.255.255 -- /sbin/init $@
chmod +x /sbin/vinit
and then add init=/sbin/vinit to the kernel boot options (append= with Lilo)
Note: now the loopback interface on 127.0.0.1 is inaccessible from the root server. A workaround is to use the outside interfaces address in /etc/hosts instead 127.0.0.1 so:
10.20.20.10 localhost
instead
127.0.0.1 localhost
You might alter the firewall rules to allow traffic which orginates locally too.
echo linux_32bit > /etc/vservers/$NAME/personality
echo i686 > /etc/vservers/$NAME/uts/machine
I had a vserver running perfectly on one host and no access on the network on another.
bonbons on IRC proposed me to put the same mask on the interface in the vserver and the host.
To see your current mask from the host:
root@thehost:/etc/vservers# ip addr list 1: lo: <LOOPBACK,UP> mtu 16436 qdisc noqueue link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop qlen 1000 link/ether 00:0e:0c:32:e8:92 brd ff:ff:ff:ff:ff:ff 3: eth1: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 1000 link/ether 00:0c:f1:ad:0f:d8 brd ff:ff:ff:ff:ff:ff inet 130.225.64.85/24 brd 130.225.255.255 scope global eth1 inet 130.225.64.84/32 scope global eth1 inet6 fe80::20c:f1ff:fead:fd8/64 scope link valid_lft forever preferred_lft forever 4: eth2: <BROADCAST,MULTICAST> mtu 1500 qdisc noop qlen 1000 link/ether 00:0c:f1:ad:0f:d9 brd ff:ff:ff:ff:ff:ff 5: sit0: <NOARP> mtu 1480 qdisc noop link/sit 0.0.0.0 brd 0.0.0.0
So you can see the mask before changing on eth1: 130.225.64.85/24 and 130.225.64.84/32
To change the mask I created the file: /etc/vservers/my-vserver/interfaces/0/prefix and put 24 in it.
Restart the vserver, enjoy...