Re: [vserver] vserver configuation options

From: Corey Wright <undefined_at_pobox.com>
Date: Fri 11 Jun 2010 - 08:56:29 BST
Message-Id: <20100611025629.07adf750.undefined@pobox.com>

On Thu, 10 Jun 2010 18:51:27 -0700
Nirmal Guhan <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)

:-)

> 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 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
Received on Fri Jun 11 08:58:00 2010
[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Fri 11 Jun 2010 - 08:58:04 BST by hypermail 2.1.8