[Vserver] multiple interfaces and subnets/limit resource question(rlimits)

From: J.Paechnatz <jpaechnatz_at_bfe-systemhaus.de>
Date: Thu 02 Feb 2006 - 15:08:40 GMT
Message-ID: <43E22078.2070104@bfe-systemhaus.de>

hi there...

my vserver host has some interfaces connected to some subnets.

my vserver guest reside on a specific interface with an ip address of
the hosts subnet.

example:

host server
two interfaces:

eth7 192.168.80.15 (set via half-static dhcp, behaviour with pure static
address is the same)
eth7:vt1 192.168.80.8

eth8 192.168.8.122
eth8:dg1 192.168.8.121

I used the name setting for the vserver's to make it more transparent
(vt1 for vtest and dg1 for dguard)

the routing on the host works as expected.
route -n shows the following:

Kernel IP Routentabelle
Ziel Router Genmask Flags Metric Ref Use
Iface
192.168.80.0 0.0.0.0 255.255.255.0 U 0 0 0 eth7
192.168.8.0 0.0.0.0 255.255.255.0 U 0 0 0 eth8
0.0.0.0 192.168.8.1 0.0.0.0 UG 0 0 0 eth8

the vservers:

vtest: interface eth7:vt1
route -n

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use
Iface
192.168.80.0 0.0.0.0 255.255.255.0 U 0 0 0 eth7
192.168.8.0 0.0.0.0 255.255.255.0 U 0 0 0 *
0.0.0.0 0.0.0.0 0.0.0.0 UG 0 0 0 *

could only reach own subnet. route does not allow changes!?

dguard: interface eth8:dg1

Kernel IP Routentabelle
Ziel Router Genmask Flags Metric Ref Use
Iface
192.168.80.0 0.0.0.0 255.255.255.0 U 0 0 0 *
192.168.8.0 0.0.0.0 255.255.255.0 U 0 0 0 eth8
0.0.0.0 192.168.8.1 0.0.0.0 UG 0 0 0 eth8

could not reach .80.0 subnet. rout does not allow changes too!?

I read some information about "wrong" behaviour with multiple subnets.
as you could the machine has a lot interfaces, only two are setup in the
moment, but the others will follow soon.
any ideas how to setup routing/interfaces of the vservers correctly?

I played with the rlimits, rss/as are working fine. but how could I
limit cpu usage, for example 25% of the hosts cpu capacity? the cpu
directive is for cpu time in seconds....how much is realistic!? and how
it's measured?

thanks!

cu joh.
_______________________________________________
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver
Received on Thu Feb 2 15:10:24 2006

[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Thu 02 Feb 2006 - 15:10:43 GMT by hypermail 2.1.8