Re: [Vserver] problem with proc

2005-02-18 Thread Andreas Vogt

Hi all,

Herbert Poetzl wrote:


 could it be that you have a mixed environment?

 i.e. 64bit kernel and 32bit userspace?

 if so, for now the util-vserver tools need to be
 compiled as 64bit userspace too, if using 64bit
 kernels, otherwise something like that will happen


OK, I did that. So vprocunhide and vserver-stat works so far.

But now: I used to start my vservers using fakeinit.
Starting it now, vserver stops immediately, as
vserver runs /etc/rc.d/rc , and there the frist line is a comaprison of
variables PREVLEVEL and RUNLEVEL, which both are empty. So it stops.

Using vserver 1.27 and util-vserver 0.29.4 I could start these vservers
without probs (and I liked the idea of transfering the whole vserver on
other machines without lot of screwing the system too much).

So what files will be really necessary in /etc/vservers/servername/ to get
the behaviour as in older versions with servername.conf using fakeinit?

Thanks
Anders


-- 




-- 

___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] problem with proc

2005-02-18 Thread Jean Christophe
Andreas Vogt a écrit :
Hi,
I' trying to get a vserver environment on SUSE 9.2, Athlon AMD 64, kernel
2.6.10-vs1.9.4 with util-vserver-0.30.203 rel:1mdk, installed as i586.rpm.
Kernelcompilation finished without probs.
Whe asking
vserver-stat
i get
#: /usr/lib/util-vserver # vserver-stat
WARNING: can not access /proc/uptime. Usually, this is caused by
 procfs-security. Please read the FAQ for more details
 http://www.linux-vserver.org/index.php?page=Linux-Vserver+FAQ
open(/proc/uptime): No such file or directory
So I read the FAQ and tried
vprocunhide
an got
/proc/net/snmp6: Invalid argument
/proc/net/igmp6: Invalid argument
/proc/net/snmp: Invalid argument
/proc/net/route: Invalid argument
/proc/net/igmp: Invalid argument
/proc/net/arp: Invalid argument
/proc/net/dev: Invalid argument
/proc/net/rpc/nfs: Invalid argument
...
and much more like this.
capability is loaded as module.
/proc is mounted and I can get all information on it (as root on host).
How can I check it in context xid 1?
What can I do next to solve the problem?
Thx
Anders

Have you something like vproc or vprocunhide ?
Try it
Jean Christophe
___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] problem with proc

2005-02-18 Thread Herbert Poetzl
On Fri, Feb 18, 2005 at 04:19:22PM +0100, Andreas Vogt wrote:
 
 Hi all,
 
 Herbert Poetzl wrote:
 
 
  could it be that you have a mixed environment?
 
  i.e. 64bit kernel and 32bit userspace?
 
  if so, for now the util-vserver tools need to be
  compiled as 64bit userspace too, if using 64bit
  kernels, otherwise something like that will happen
 
 
 OK, I did that. So vprocunhide and vserver-stat works so far.
 
 But now: I used to start my vservers using fakeinit.
 Starting it now, vserver stops immediately, as
 vserver runs /etc/rc.d/rc , and there the frist line is a comaprison of
 variables PREVLEVEL and RUNLEVEL, which both are empty. So it stops.

hmm, somewhat expected, btw, you can configure
both values in the new config, but what you probably
want is to start an init, right?

 Using vserver 1.27 and util-vserver 0.29.4 I could start these vservers
 without probs (and I liked the idea of transfering the whole vserver on
 other machines without lot of screwing the system too much).

I'm pretty confident that starting these vservers
with their old (legacy) config will work out of the
box on a recent 1.9.x kernel ...

when you create a new style config, of course, you
have to adjust to the changes ...

 So what files will be really necessary in /etc/vservers/servername/ to get
 the behaviour as in older versions with servername.conf using fakeinit?

most likely you want the plain initstyle instead of
the sysv init style when you are starting an init

HTH,
Herbert

 Thanks
 Anders
 
 
 -- 
 
 
 
 
 -- 
 
 ___
 Vserver mailing list
 Vserver@list.linux-vserver.org
 http://list.linux-vserver.org/mailman/listinfo/vserver
___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


[Vserver] problem with proc

2005-02-17 Thread Andreas Vogt

Hi,
I' trying to get a vserver environment on SUSE 9.2, Athlon AMD 64, kernel
2.6.10-vs1.9.4 with util-vserver-0.30.203 rel:1mdk, installed as i586.rpm.

Kernelcompilation finished without probs.

Whe asking
vserver-stat
i get
#: /usr/lib/util-vserver # vserver-stat
WARNING: can not access /proc/uptime. Usually, this is caused by
 procfs-security. Please read the FAQ for more details
 http://www.linux-vserver.org/index.php?page=Linux-Vserver+FAQ
open(/proc/uptime): No such file or directory


So I read the FAQ and tried
vprocunhide
an got

/proc/net/snmp6: Invalid argument
/proc/net/igmp6: Invalid argument
/proc/net/snmp: Invalid argument
/proc/net/route: Invalid argument
/proc/net/igmp: Invalid argument
/proc/net/arp: Invalid argument
/proc/net/dev: Invalid argument
/proc/net/rpc/nfs: Invalid argument
...
and much more like this.

capability is loaded as module.

/proc is mounted and I can get all information on it (as root on host).

How can I check it in context xid 1?

What can I do next to solve the problem?

Thx
Anders


-- 

___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] problem with proc

2005-02-17 Thread Herbert Poetzl
On Thu, Feb 17, 2005 at 04:45:06PM +0100, Andreas Vogt wrote:
 
 Hi,
 I' trying to get a vserver environment on SUSE 9.2, Athlon AMD 64, kernel
 2.6.10-vs1.9.4 with util-vserver-0.30.203 rel:1mdk, installed as i586.rpm.
 
 Kernelcompilation finished without probs.
 
 Whe asking
 vserver-stat
 i get
 #: /usr/lib/util-vserver # vserver-stat
 WARNING: can not access /proc/uptime. Usually, this is caused by
  procfs-security. Please read the FAQ for more details
  http://www.linux-vserver.org/index.php?page=Linux-Vserver+FAQ
 open(/proc/uptime): No such file or directory
 
 
 So I read the FAQ and tried
 vprocunhide
 an got
 
 /proc/net/snmp6: Invalid argument
 /proc/net/igmp6: Invalid argument
 /proc/net/snmp: Invalid argument
 /proc/net/route: Invalid argument
 /proc/net/igmp: Invalid argument
 /proc/net/arp: Invalid argument
 /proc/net/dev: Invalid argument
 /proc/net/rpc/nfs: Invalid argument
 ...
 and much more like this.

could it be that you have a mixed environment?

i.e. 64bit kernel and 32bit userspace?

if so, for now the util-vserver tools need to be
compiled as 64bit userspace too, if using 64bit
kernels, otherwise something like that will happen

(this will be fixed in the future)

HTH,
Herbert

 capability is loaded as module.
 
 /proc is mounted and I can get all information on it (as root on host).
 
 How can I check it in context xid 1?
 
 What can I do next to solve the problem?
 
 Thx
 Anders
 
 
 -- 
 
 ___
 Vserver mailing list
 Vserver@list.linux-vserver.org
 http://list.linux-vserver.org/mailman/listinfo/vserver
___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver