Gentoo Forums
Gentoo Forums
Quick Search: in
vserver network problems [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
samuel.penn
Tux's lil' helper
Tux's lil' helper


Joined: 14 Dec 2003
Posts: 112
Location: UK

PostPosted: Sat Jul 02, 2005 9:00 pm    Post subject: vserver network problems [SOLVED] Reply with quote

I'm just installed vserver, and I think I've got a virtual server running. However, I can't connect to it over the network. A network interface exists for it, but connecting to it instead connects to the host server.

Why do I think it's running?

I can do:

Code:

thor root # vserver gentoo start
thor root # vserver gentoo status
Vserver 'gentoo' is running at context '1030'
Number of processes:  1
Uptime:               00:00
thor root # vserver gentoo enter
gentoo / # ps -ef
UID        PID  PPID  C STIME TTY          TIME CMD
root         1     0  0 21:44 ?        00:00:00 init [3]
root      2774  8884  0 21:44 pts/0    00:00:00 /bin/bash -login
root      2794  2774  0 21:45 pts/0    00:00:00 ps -ef
gentoo / # ifconfig -a
eth0      Link encap:Ethernet  HWaddr 00:01:02:F4:13:88
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:233360 errors:0 dropped:0 overruns:0 frame:0
          TX packets:588352 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:143262371 (136.6 Mb)  TX bytes:684651745 (652.9 Mb)
          Interrupt:3 Base address:0xdc00

eth0:gent Link encap:Ethernet  HWaddr 00:01:02:F4:13:88
          inet addr:192.168.161.30  Bcast:192.168.161.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:233360 errors:0 dropped:0 overruns:0 frame:0
          TX packets:588352 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:143262371 (136.6 Mb)  TX bytes:684651745 (652.9 Mb)
          Interrupt:3 Base address:0xdc00


I'd expect to see syslog-ng running in the ps list, but it isn't. If I try to start it manually, I get lots of errors:

Code:

gentoo / # /etc/init.d/syslog-ng start
 * ERROR:  system is missing /sbin/depmod !
 * ERROR:  Problem starting needed services.
 *         "checkfs" was not started.
 * ERROR:  Problem starting needed services.
 *         "localmount" was not started.
 * ERROR:  Problem starting needed services.
 *         "clock" was not started.
 * ERROR:  Problem starting needed services.
 *         "syslog-ng" was not started.


depmod seems to be provided by modutils and module-init-tools, neither of which are installed. Should they be? Is this the real problem, or just a symptom of something else that has gone wrong?

The virtual server should have ipaddress 192.168.161.30, just as above, and that network is brought up and down correctly when I start and stop the vserver. However, if I try to connect to it, I get connected to the main host rather than the virtual host.

Finally, when I shutdown the vserver, I get an error:

Code:

gentoo / # logout
thor root # vserver gentoo stop
vkill: vc_ctx_kill(): No such process
Vserver '/etc/vservers/gentoo' still running unexpectedly; please investigate it manually...
thor root #


I can't find any log files for the virtual host, so I don't even know how to check for error messages and the like. In the above examples, 'gentoo' is the virtual host and 'thor' is the main server (a single processor x86 box).

FWIW, I followed the instructions at http://www.gentoo.org/doc/en/vserver-howto.xml in order to install things.

Any help greatly appreciated...
Back to top
View user's profile Send private message
samuel.penn
Tux's lil' helper
Tux's lil' helper


Joined: 14 Dec 2003
Posts: 112
Location: UK

PostPosted: Sun Jul 03, 2005 12:15 pm    Post subject: Gentoo install docs are 'wrong' Reply with quote

Apparently the Gentoo installation docs have changed since the Gentoo vserver HOWTO was written. Section 6e, "Upgrading Baselayout", should be ignored for the vserver guest install. Following these instructions breaks the world since the vserver baselayout is already part of the stage tarball.

Figured that out after an IRC chat with Hollow.
Back to top
View user's profile Send private message
mdshort
Apprentice
Apprentice


Joined: 06 Dec 2004
Posts: 155

PostPosted: Thu Sep 08, 2005 12:09 pm    Post subject: Reply with quote

Use "ps aux" to view all processes instead.
_________________
"With every rise, there is a fall."
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum