Re: [Vserver] Problem starting vserver vcontext: chroot(): Permission denied

From: Herbert Poetzl <herbert_at_13thfloor.at>
Date: Wed 23 Nov 2005 - 21:02:10 GMT
Message-ID: <20051123210209.GB18212@MAIL.13thfloor.at>

On Wed, Nov 23, 2005 at 03:59:21PM +0100, Manfred Heubach wrote:
> I upgraded util-vserver to 0.30.208. Things don't work better :-(

current is 0.30.209, but it will not change much

> chxid cannot change the files (Invalid argument).

> I think because the filesystem is not mounted with the tagxid option.

yes, that's correct

> This shouldn't be necessary.

why do you think so? xid tagging only works with fielsystems
which are mounted with tagxid, similar as filesystems do
only use option XY when given at mount time ...

> Still needing help :-)

more comments below:

> Manfred
>
>
>
> ---snip---
> james:/etc/vservers# vserver-info
> Versions:
> Kernel: 2.6.8-vserver-686
> VS-API: 0x00010025
> util-vserver: 0.30.208; Oct 28 2005, 22:01:05
>
> Features:
> CC: gcc, gcc (GCC) 4.0.2 (Debian 4.0.2-2)
> CXX: g++, g++ (GCC) 4.0.2 (Debian 4.0.2-2)
> CPPFLAGS: ''
> CFLAGS: '-Wall -g -O2 -std=c99 -Wall -pedantic -W
> -funit-at-a-time'
> CXXFLAGS: '-g -O2 -ansi -Wall -pedantic -W
> -fmessage-length=0 -funit-at-a-time'
> build/host: i486-pc-linux-gnu/i486-pc-linux-gnu
> Use dietlibc: yes
> Build C++ programs: yes
> Build C99 programs: yes
> Available APIs: compat,v11,v13,fscompat,net,oldproc,olduts
> ext2fs Source: e2fsprogs
> syscall(2) invocation: alternative
> vserver(2) syscall#: 273/alternative
>
> Paths:
> prefix: /usr
> sysconf-Directory: /etc
> cfg-Directory: /etc/vservers
> initrd-Directory: $(sysconfdir)/init.d
> pkgstate-Directory: /var/run/vservers
> Kernelheaders: /usr/include
> vserver-Rootdir: /var/lib/vservers
>
>
> Assumed 'SYSINFO' as no other option given; try '--help' for more
> information.
> ---snip---
>
> Andreas John schrieb:
> > Hi Manfred!
> >
> > Just some hints:
> >
> > 1.) You wrote:
> > /lib/modules/2.6.10-1-686-smp/build/include
> > ^ ^ ^
> > and: Kernel: 2.6.8-vserver-686
> > ^ ^ ^ ^
> > Huh?
> >
> > 2.) The util-vserver is quite old and known to be buggy. .209 is the
> > current. Debian sid ships .208 thats why I am using sid as host. Maybe
> > you can apt-get source util-vserver and dpkg-buildpackage on sarge?
> >
> > 3.) There was a nagios thread recently ... maybe you need Capabilty
> > RAW_NET or remove 127.0.0.1 in nagios confs (But I dont think thats the
> > problem here .. )
> >
> > 4.) Did you change the xid/context? Maybe the servers root has the wrong
> > one now -> chxid ?
> >
> > rgds,
> > Andreas
> >
> > Manfred Heubach wrote:
> >
> >> Hi there,
> >>
> >> I've got a strange problem. I have upgraded my root server today and
> >> changed all vservers to the legacy method.

why would you change them to the legacy config??

> >> All are running fine except two. When I try to start them, I get a
> >> "vcontext: chroot(): Permission denied" message (see below).
> >>
> >> The config directory of these vservers are exactly the same as the
> >> other vservers' config directories.

check the directory permissions and modes, most
likely the broken debian tools did change your
vserver guest dir or the one above that to 000
(which is crap)

best,
Herbert

> >> I have no idea why exactly these vservers aren't running. Maybe it's
> >> something within them?
> >>
> >> Some information about the system is below (vserver-info). It's Debian
> >> Sarge.
> >>
> >> The working vservers have been installed some years ago. The vservers
> >> which are not working are about 5 months old. So they have beend
> >> installed with a newer version of vserver-debiantools.
> >>
> >> Anybody any ideas?
> >>
> >> Regards
> >> Manfred
> >>
> >> ---snip---
> >>
> >> james:/var/lib/vservers/nagios# vserver nagios start
> >> vcontext: chroot(): Permission denied
> >>
> >> An error occured while executing the vserver startup sequence; when
> >> there are no other messages, it is very likely that the init-script
> >> (/etc/init.d/rc 3) failed.
> >>
> >> Common causes are:
> >> * /etc/rc.d/rc on Fedora Core 1 and RH9 fails always; the 'apt-rpm' build
> >> method knows how to deal with this, but on existing installations,
> >> appending 'true' to this file will help.
> >>
> >>
> >> Failed to start vserver 'nagios'
> >> ---snip---
> >>
> >> james:/var/run# vserver-info
> >> Versions:
> >> Kernel: 2.6.8-vserver-686
> >> VS-API: 0x00010025
> >> util-vserver: 0.30.204; May 24 2005, 22:22:03
> >>
> >> Features:
> >> CC: gcc, gcc (GCC) 3.3.5 (Debian 1:3.3.5-5)
> >> CXX: g++, g++ (GCC) 3.3.5 (Debian 1:3.3.5-5)
> >> CPPFLAGS: ''
> >> CFLAGS: '-Wall -g -O2 -std=c99 -Wall -pedantic -W'
> >> CXXFLAGS: '-g -O2 -ansi -Wall -pedantic -W
> >> -fmessage-length=0'
> >> build/host: i386-pc-linux-gnu/i386-pc-linux-gnu
> >> Use dietlibc: yes
> >> Build C++ programs: yes
> >> Build C99 programs: yes
> >> Available APIs: compat,v11,v13,fscompat,net,oldproc,olduts
> >> ext2fs Source: e2fsprogs
> >> syscall(2) invocation: fast
> >> vserver(2) syscall#: 273/glibc
> >>
> >> Paths:
> >> prefix: /usr
> >> sysconf-Directory: /etc
> >> cfg-Directory: /etc/vservers
> >> initrd-Directory: $(sysconfdir)/init.d
> >> pkgstate-Directory: /var/run/vservers
> >> Kernelheaders: /lib/modules/2.6.10-1-686-smp/build/include
> >> vserver-Rootdir: /var/lib/vservers
> >>
> >>
> >> Assumed 'SYSINFO' as no other option given; try '--help' for more
> >> information.
> >> _______________________________________________
> >> 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 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
Received on Wed Nov 23 21:02:41 2005

[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Wed 23 Nov 2005 - 21:02:47 GMT by hypermail 2.1.8