/[gentoo]/xml/htdocs/proj/en/vps/vserver-howto.xml
Gentoo

Diff of /xml/htdocs/proj/en/vps/vserver-howto.xml

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.11 Revision 1.12
1<?xml version='1.0' encoding="UTF-8"?> 1<?xml version='1.0' encoding="UTF-8"?>
2<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/proj/en/vps/vserver-howto.xml,v 1.11 2009/03/03 15:16:47 hollow Exp $ --> 2<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/proj/en/vps/vserver-howto.xml,v 1.12 2009/03/03 15:44:59 hollow Exp $ -->
3<!DOCTYPE guide SYSTEM "/dtd/guide.dtd"> 3<!DOCTYPE guide SYSTEM "/dtd/guide.dtd">
4 4
5<guide link="/proj/en/vps/vserver-howto.xml"> 5<guide link="/proj/en/vps/vserver-howto.xml">
6<title>Gentoo Linux-VServer Howto</title> 6<title>Gentoo Linux-VServer Howto</title>
7 7
187</chapter> 187</chapter>
188 188
189<chapter> 189<chapter>
190<title>Guest creation</title> 190<title>Guest creation</title>
191<section> 191<section>
192<title>Download a precompiled stage3/4</title> 192<title>Download a precompiled stage3</title>
193<body> 193<body>
194 194
195<p> 195<p>
196Since many hardware related commands are not available inside a virtual server, 196Since many hardware related commands are not available inside a virtual server,
197there has been a patched version of baselayout known as baselayout-vserver. 197there has been a patched version of baselayout known as baselayout-vserver.
203</p> 203</p>
204 204
205<p> 205<p>
206As soon as baselayout-2/openrc is stable you can use a precompiled stage3 from 206As soon as baselayout-2/openrc is stable you can use a precompiled stage3 from
207one of <uri link="/main/en/mirrors.xml">our mirrors</uri>. In the meantime 207one of <uri link="/main/en/mirrors.xml">our mirrors</uri>. In the meantime
208please download a stage3 from 208please download a stage3 or gentoo-vserver stage from
209<uri link="http://bb.xnull.de/projects/gentoo/stages/">here</uri>. Since a 209<uri link="http://bb.xnull.de/projects/gentoo/stages/">here</uri>. Since a
210stage3 contains a complete root filesystem you can use the template build 210stage3 contains a complete root filesystem you can use the template build
211method of util-vserver. However, this method only works reliable since 211method of util-vserver. However, this method only works reliable since
212util-vserver-0.30.213_rc5, so make sure you have the right version installed. 212util-vserver-0.30.213_rc5, so make sure you have the right version installed.
213</p> 213</p>
244<p> 244<p>
245Therefore, many users have requested to reimplement the gentoo init style, 245Therefore, many users have requested to reimplement the gentoo init style,
246which has been abandonned since it was a very hacky implementation and more 246which has been abandonned since it was a very hacky implementation and more
247or less worked by accident due to other modifications done to baselayout back 247or less worked by accident due to other modifications done to baselayout back
248then. However, as of util-vserver-0.30.212 the gentoo init style has been 248then. However, as of util-vserver-0.30.212 the gentoo init style has been
249reimplemented in a concise manner and will get the default in the future. 249reimplemented in a concise manner and will become the default in the future.
250</p> 250</p>
251 251
252<note> 252<note>
253If there is not a good reason for using an extra init process for each guest 253If there is not a good reason for using an extra init process for each guest
254or if you don't know what to do here, you should stick with gentoo init style. 254or if you don't know what to do here, you should stick with gentoo init style.
282</p> 282</p>
283 283
284<pre caption="Test the virtual server"> 284<pre caption="Test the virtual server">
285# <i>vserver myguest start</i> 285# <i>vserver myguest start</i>
286 286
287 287 OpenRC 0.4.3 is starting up Gentoo Linux (x86_64) [VSERVER]
288Gentoo/Linux 1.13.0_alpha12; http://www.gentoo.org/
289 Copyright 1999-2007 Gentoo Foundation; Distributed under the GPLv2
290 288
291Press I to enter interactive boot mode 289Press I to enter interactive boot mode
292 290
293 * Using existing device nodes in /dev [ ok ] 291* /proc is already mounted, skipping
294 * root filesystem is mounted read-write - skipping
295 * Checking all filesystems [ ok ]
296 * Mounting local filesystems [ ok ]
297 * Activating (possible) swap [ ok ]
298 * Setting hostname to myguest [ ok ] 292* Setting hostname to myguest... [ ok ]
299 * Updating environment [ ok ] 293* Creating user login records... [ ok ]
300 * Cleaning /var/lock, /var/run [ ok ] 294* Cleaning /var/run... [ ok ]
301 * Cleaning /tmp directory [ ok ] 295* Wiping /tmp directory... [ ok ]
296* Updating /etc/mtab... [ ok ]
302 * Initializing random number generator [ ok ] 297* Initializing random number generator... [ ok ]
303 * Setting system clock using the hardware clock [VPS] [ ok ]
304 * Starting syslog-ng [ ok ] 298* Starting syslog-ng... [ ok ]
305 * Starting vixie-cron [ ok ] 299* Starting fcron... [ ok ]
300* Starting Name Service Cache Daemon... [ ok ]
306 * Starting local [ ok ] 301* Starting local... [ ok ]
307# <i>vserver-stat</i> 302# <i>vserver-stat</i>
308CTX PROC VSZ RSS userTIME sysTIME UPTIME NAME 303CTX PROC VSZ RSS userTIME sysTIME UPTIME NAME
3090 90 1.4G 153.4K 14m00s11 6m45s17 2h59m59 root server 3040 90 1.4G 153.4K 14m00s11 6m45s17 2h59m59 root server
3101252 2 3M 286 0m00s45 0m00s42 0m02s91 myguest 3051252 2 3M 286 0m00s45 0m00s42 0m02s91 myguest
311# <i>vserver myguest enter</i> 306# <i>vserver myguest enter</i>
312# <i>ps ax</i> 307# <i>ps ax</i>
313PID TTY STAT TIME COMMAND 308 PID TTY STAT TIME COMMAND
314 1 ? S 0:00 init [3] 309 1 ? Ss 0:04 init [3]
31522887 ? Ss 0:00 /usr/sbin/syslog-ng 31027637 ? Ss 0:00 /usr/sbin/syslog-ng
31620496 pts/0 S 0:00 /bin/bash -login 31127656 ? Ss 0:00 /usr/sbin/fcron -c /etc/fcron/fcron.conf
31227676 ? Ssl 0:00 /usr/sbin/nscd
31327713 ? S+ 0:00 login
31427737 pts/15 Ss 0:00 /bin/bash
31720508 pts/0 R+ 0:00 ps ax 31527832 pts/15 R+ 0:00 ps ax
318# <i>logout</i> 316# <i>logout</i>
319</pre> 317</pre>
320 318
321</body> 319</body>
322</section> 320</section>

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12

  ViewVC Help
Powered by ViewVC 1.1.20