Re: [vserver] kernel ctx-12 and vserver 0.18

About this list Date view Thread view Subject view Author view Attachment view

From: Herbert Poetzl (herbert_at_emcc.at)
Date: Thu Jul 11 2002 - 04:59:11 EDT


On Thu, Jul 11, 2002 at 11:41:22AM +0300, Jukka Laaksola wrote:
> Herbert Poetzl wrote:
> > On Thu, Jul 11, 2002 at 10:37:01AM +0300, Jukka Laaksola wrote:
> >
> >>Jacques Gelinas wrote:
> >>
> >>>Anyone knows of other package needing special handling on the loopback ?
> >>
> >>I'm not sure if this is a real loopback problem or what.
> >>Portmap only in vservers works fine for me. But I need to run portmap
> >>also in the main server for NFS-server. This is need special tricking.
> >>If I start portmap normally in the main server then portmap in a vserver
> >> can't bind the udp address. Now I use in main server "chbind --ip
> >>127.0.0.1 /etc/init.d/portmap start". Then I need to use rinetd for
> >>forwarding nfs-servers IP's (192.168.0.3) tcp port 111 to localhost port
> >>111. I haven't found a solution for forwarding udp port also.
> >
> >
> > have you tried running portmap in two different
> > virtual hosts?
> >
> > if this works, a simple chbind --ip <master-ip>
> > should do the trick ...
> > (like the v_sshd, v_httpd, etc ... scripts)
>
> Yes I have portmap working well in two different virtual hosts and even
> portmap with that chbind --ip 127.0.0.1 in the main server too at the
> same time.
>
> chbind --ip <master-ip> starts portmap well, but NFS-server or any other
> RPC-programs can't connect it.
>
> --------/var/log/messages-------
> Jul 11 11:26:02 kopteri2 nfs: Starting NFS services: succeeded
> Jul 11 11:26:02 kopteri2 rpc.rquotad: Cannot register service: RPC:
> Unable to receive; errno = Connection refused
> Jul 11 11:26:02 kopteri2 rpc.rquotad: rpc.rquotad: unable to register
> (RQUOTAPROG, RQUOTAVERS, udp).
> Jul 11 11:26:02 kopteri2 nfs: rpc.rquotad startup failed
> Jul 11 11:26:02 kopteri2 rpc.mountd: unable to register (mountd, 1, udp).
> Jul 11 11:26:02 kopteri2 rpc.mountd: Cannot register service: RPC:
> Unable to receive; errno = Connection refused
> Jul 11 11:26:02 kopteri2 nfs: rpc.mountd startup failed
> Jul 11 11:27:42 kopteri2 kernel: portmap: server localhost not
> responding, timed out
> Jul 11 11:29:22 kopteri2 kernel: portmap: server localhost not
> responding, timed out
> Jul 11 11:31:02 kopteri2 kernel: portmap: server localhost not
> responding, timed out
> Jul 11 11:31:02 kopteri2 rpc.nfsd: nfssvc: Input/output error
> Jul 11 11:31:02 kopteri2 nfs: rpc.nfsd startup failed
> --------/var/log/messages-------
>
> I have tried also put "<master-ip> localhost" in main server's /etc/hosts.
> but that doesn't help either.
> I think vserver system handles localhost and 127.0.0.1 different in the
> main server and virtual hosts....

hmm maybe you could use ip(chains,tables) port forwarding
to direct the requests to one of the virtual servers ...
(it's just an idea, I do not know if this works ...)

best,
Herbert


About this list Date view Thread view Subject view Author view Attachment view

This archive was generated by hypermail 2.1.4 : Mon Aug 19 2002 - 12:01:01 EDT