Subject: Re: [vserver] How to run all guests concurrently (SOLVED)
From: Stephen Liu <satimis@yahoo.com>
Date: Sun, 31 Aug 2008 21:20:11 +0800 (CST)


--- PÁSZTOR György <pasztor@linux.gyakg.u-szeged.hu> wrote:

 - snip -  

> If I need all guests are up
> whenever
> > the PC is turned on.  What number shall I assign to all guests on
> the
> > context  TIA
> In that case you have to fill the
> /etc/vservers/<vsname>/apps/init/mark
> file.
> If that mark is the same as in your /etc/default/util-vserver (I
> suppose your
> host runs debian linux), than the util-vserver script in /etc/init.d
> will
> bring that vserver up during the boot process.
> 
> Cheers,


Hi gyu,


Host - Debian Etch


$ grep MARK /etc/default/util-vserver
# Any vserver which has $MARK in
/etc/vservers/<vserver-id>/apps/init/mark
MARK=default
# have $MARK set or not, this is set to true by default because if you
# If AUTO=true, then the vservers with $MARK set will be started on
boot
# vservers with $MARK are shutdown the 'cleaner' way, and any unmarked


$ cat /etc/vservers/vserver1/apps/init/mark
$ cat /etc/vservers/vserver2/apps/init/mark
both w/o printout.  Nothing has been set on the file.


Edited both of them entering;
default


Changed the number on "context" of VServer2 to 43.  Rebooted PC.


$ sudo vserver-stat
CTX   PROC    VSZ    RSS  userTIME   sysTIME    UPTIME NAME
0      101  15.9+ 290.1M   0m10s79   0m05s10   1m44s82 root server
42       5 393.3M   5.6M   0m00s10   0m00s20   1m23s10 vserver1
43       2  52.8M   2.1M   0m00s00   0m00s00   1m23s21 vserver2


Both guests up.  Thanks


B.R.
Stephen L

Send instant messages to your online friends http://uk.messenger.yahoo.com