[Vserver] Guest OS Stops Responding After Hours Of Working

From: John Alberts <john.m.alberts_at_gmail.com>
Date: Sat 14 Jan 2006 - 00:19:01 GMT
Message-ID: <a23b6f900601131619t790227a7pf25dd6d32f738146@mail.gmail.com>

Hi all. I'm using vserver on a Gentoo machine. I originally tried to get
some help on the gentoo-vserver irc channel; however, I think we must all
have opposite schedules.

Anyway, I am using Gentoo for my host machine and also Gentoo as the guest
os. The guest os runs Apache2 and MySQL and it works well for a while (5, 6
hours). After a while I am unable to connect to the guest os. From the
host os, I can reach the guest os (ping, browse web page using links, etc),
but not from outside the host os. If I go into the guest os using vserver
myguest enter, the only fqdn i can ping is the one for the host os the is in
my hosts file. No other fqdn's work. If I ping a known working ip address,
everything starts working again! I have no idea what this means or how to
fix it. As a temporary solution, just to keep my guest os working, I put a
cron job that pings 2 different servers every half hour.
I think it's probably a routing problem, but I'm not sure what to do. My
host has 2 gigabit nics, both on the same subnet.

Here is my ifconfig -a and route from my host os: (route hangs a while and
then finally prints the output below)

-----------
ifconfig -a

eth0 Link encap:Ethernet HWaddr 00:04:23:C3:C4:FE
          inet addr:205.215.68.74 Bcast:0.0.0.0 Mask:255.255.255.0
          inet6 addr: fe80::204:23ff:fec3:c4fe/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
          RX packets:929466 errors:0 dropped:0 overruns:0 frame:0
          TX packets:981291 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:255987202 (244.1 Mb) TX bytes:1085603257 (1035.3 Mb)
          Base address:0xecc0 Memory:df9e0000-dfa00000

eth0:100 Link encap:Ethernet HWaddr 00:04:23:C3:C4:FE
          inet addr:205.215.68.100 Bcast:205.215.68.255 Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
          Base address:0xecc0 Memory:df9e0000-dfa00000

eth1 Link encap:Ethernet HWaddr 00:04:23:C3:C4:FF
          inet addr:205.215.68.75 Bcast:0.0.0.0 Mask:255.255.255.0
          inet6 addr: fe80::204:23ff:fec3:c4ff/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
          RX packets:82354 errors:0 dropped:0 overruns:0 frame:0
          TX packets:54663 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:8731671 (8.3 Mb) TX bytes:71564782 (68.2 Mb)
          Base address:0xec80 Memory:df9c0000-df9e0000

lo Link encap:Local Loopback
          inet addr:127.0.0.1 Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING MTU:16436 Metric:1
          RX packets:28411 errors:0 dropped:0 overruns:0 frame:0
          TX packets:28411 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:57095159 (54.4 Mb) TX bytes:57095159 (54.4 Mb)

sit0 Link encap:IPv6-in-IPv4
          NOARP MTU:1480 Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

route

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use
Iface
205.215.68.0 * 255.255.255.0 U 0 0 0 eth0
205.215.68.0 * 255.255.255.0 U 0 0 0 eth1
loopback * 255.0.0.0 U 0 0 0 lo
default 205.215.68.254 0.0.0.0 UG 0 0 0 eth0
default 205.215.68.254 0.0.0.0 UG 0 0 0 eth1

--------

Here is the ifconfig -a and route from inside my guest os:
----------
ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:04:23:C3:C4:FE
          UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
          RX packets:929890 errors:0 dropped:0 overruns:0 frame:0
          TX packets:981291 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:256023685 (244.1 Mb) TX bytes:1085603257 (1035.3 Mb)
          Base address:0xecc0 Memory:df9e0000-dfa00000

eth0:100 Link encap:Ethernet HWaddr 00:04:23:C3:C4:FE
          inet addr:205.215.68.100 Bcast:205.215.68.255 Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
          RX packets:929890 errors:0 dropped:0 overruns:0 frame:0
          TX packets:981291 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:256023685 (244.1 Mb) TX bytes:1085603257 (1035.3 Mb)
          Base address:0xecc0 Memory:df9e0000-dfa00000

route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use
Iface
205.215.68.0 * 255.255.255.0 U 0 0 0 eth0
205.215.68.0 * 255.255.255.0 U 0 0 0 *
loopback * 255.0.0.0 U 0 0 0 *
default 205.215.68.254 0.0.0.0 UG 0 0 0 eth0
default * 0.0.0.0 UG 0 0 0 *
--------------

Thanks in advance for any help.

John

_______________________________________________
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver
Received on Sat Jan 14 00:25:36 2006

[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Sat 14 Jan 2006 - 00:25:40 GMT by hypermail 2.1.8