Re: [vserver] vserver configuation options

From: Nirmal Guhan <vavatutu_at_gmail.com>
Date: Mon 14 Jun 2010 - 16:46:31 BST
Message-ID: <AANLkTin4X1toIE6hGljJpvDH79r1Wq8x-fVWfPxD44rb@mail.gmail.com>

Hi,

I believe this is a util-server + cgroup problem. As mentioned, util-server
is looking for /dev/cgroup/newdeb/tasks whereas cgroup creates
/dev/cgroup/<pid>/tasks.
util-server : 0.30.216-pre2883
2.6.32.13-vs2.3.0.36.29.4 i686

--Nirmal

On Sun, Jun 13, 2010 at 11:31 PM, Nikolay Kichukov <hijacker@oldum.net>wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi,
>
> I doubt you are not able to start a guest because of the cgroup controller.
> You should be seeking the problem somewhere
> else. Please post your util-vserver version + kernel and vserver patch for
> the time being.
>
> Thanks,
> - -Nik
>
> Nirmal Guhan wrote:
> > Any help on this? Please help.
> >
> > Thanks,
> > --Nirmal
> >
> > On Fri, Jun 11, 2010 at 11:55 AM, Nirmal Guhan <vavatutu@gmail.com
> > <mailto:vavatutu@gmail.com>> wrote:
> >
> >
> > On Fri, Jun 11, 2010 at 12:56 AM, Corey Wright <undefined@pobox.com
> > <mailto:undefined@pobox.com>> wrote:
> >
> > On Thu, 10 Jun 2010 18:51:27 -0700
> > Nirmal Guhan <vavatutu@gmail.com <mailto:vavatutu@gmail.com>>
> wrote:
> >
> > > Hi,
> > >
> > > Am just looking at
> > > http://www.nongnu.org/util-vserver/doc/conf/configuration.html
> > to see how
> > > I can modify the cpu and/or memory related parameters. Running
> > into an
> > > error with post-start :
> > >
> > > #vserver newdeb start
> > > Starting enhanced syslogd: rsyslogd.
> > > /usr/local/etc/vservers/newdeb/scripts/post-start: line 1:
> > !/bin/bash: No
> > > such file or directory
> > >
> > > An error occured after executing the vserver startup sequence.
> > This
> > > means that some processes may exist in the created context and
> the
> > > manual execution of
> > >
> > > /usr/local/sbin/vserver '/usr/local/etc/vservers/newdeb' stop
> > >
> > > is recommended to fix this.
> > >
> > > # cat post-start
> > > !/bin/bash
> >
> > #!/bin/bash
> >
> > http://en.wikipedia.org/wiki/Shebang_(Unix)<http://en.wikipedia.org/wiki/Shebang_%28Unix%29>
> > <http://en.wikipedia.org/wiki/Shebang_%28Unix%29>
> >
> > :-)
> >
> >
> > Oh! My bad. Nice catch.
> >
> >
> > > echo "In post start"
> > >
> > > #ls /vservers/newdeb/bin/ | grep bash
> > > bash
> > >
> > > Not sure what I am missing!!
> > >
> > > Also, I configured cgroup in /etc/fstab and after restart am
> > not able to
> > > find /dev/cgroup directory at all.
> > >
> > > none /cgroup cgroup
> > defaults 0
> > > 0 (I need this for lxc)
> > > none /dev/cgroup cgroup
> > defaults
> > > 0 0
> > >
> > > # ls -l /dev/cgroup
> > > ls: cannot access /dev/cgroup: No such file or directory
> >
> > mkdir /dev/cgroup
> >
> > or if your /dev is managed by udev, then you probably want to
> > tell udev to
> > create that directory every start-up. see
> > http://linux-vserver.org/util-vserver:Cgroups for how to do it
> > at least
> > under debian lenny (ie "mkdir /lib/udev/devices/cgroup").
> >
> >
> > I had earlier created /dev/cgroup but as it disappeared after
> > reboot. Now I don't see that issue but after the udev suggestion in
> > the above wiki (I use fedora 12 that uses udev).
> >
> > I still can't get it to work :-(
> >
> > [root@1-fedora ~]# vserver newdeb start
> > /usr/local/lib/util-vserver/vserver.functions: line 1506:
> > /dev/cgroup/newdeb/tasks: No such file or directory
> >
> >
> > Failed to start vserver 'newdeb'
> >
> > [root@1-fedora ~]# mount | grep cgroup
> > none on /cgroup type cgroup (rw)
> > vserver on /dev/cgroup type cgroup (rw)
> >
> > I do see files under /dev/cgroup.
> >
> > [root@guhan-fedora dev]# ls -l
> /usr/local/etc/vservers/.defaults/cgroup
> > total 0
> > [root@guhan-fedora dev]# ls -l /lib/udev/devices/cgroup
> > total 0
> >
> > One interesting thing I found is : while /dev/cgroup/newdeb/tasks
> > does not exist, I can see that /dev/cgroup/<pid>/tasks exists where
> > pid "seems" to be the pid of "vserver newdeb start" command.
> >
> > --Nirmal
> >
> >
> >
> >
> > > I can find /cgroup though but looks like vserver would need
> > /dev/cgroup
> > > (atleast I don't find my guest at /cgroup when it is running).
> > >
> > > Please help.
> > >
> > > Thanks,
> > > Nirmal
> > >
> >
> > corey
> > --
> > undefined@pobox.com <mailto:undefined@pobox.com>
> >
> >
> >
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.10 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iQEcBAEBAgAGBQJMFcy3AAoJEDFLYVOGGjgX7wwIANMfVOsRYieow68+NHi0c7F2
> 50eG9WeF09AEI+jdvkTByBleaWZgW2RI45yNbgADwH3dCYy8oFeMGGUHok8vul2Q
> mRU2QUZsP2dgx01wj/1oQrm4MXbde/B14LxrJktQZAVgU+cKfVIknYtNogPTffk2
> BH3eKSWZxOyAt5Z8mAICR5Fel4hbneC8bz1WXA6ElJKIjHPVm1x2D8bKRg7W1e6g
> Yfce6iUDmVx9/AMHULbMgihq6UipBsituqmcN17fFtYd402UFzwBAN5NZzP1eBu+
> 4JHhXU1hEDeIR/XddCLjcO95jPY1pXhgUdzYpNJh8HEtQbvskl3W3VtaKOsreQA=
> =J6y2
> -----END PGP SIGNATURE-----
>
Received on Mon Jun 14 16:47:22 2010

[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Mon 14 Jun 2010 - 16:47:26 BST by hypermail 2.1.8