1 <?xml version="1.0" encoding="UTF-8"?>
2 <database xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3 xsi:noNamespaceSchemaLocation="file:filesystem-database.xsd">
5 <!-- Global configuration -->
6 <collection name=".default" use="optional">
7 <collection name="init" type="fixed">
9 <description>Default mtab file</description>
13 <link name="vdirbase">
14 <default>/vservers</default>
17 <collection name="apps">
18 <collection name="vunify">
21 The file where output will be logged to when 'vshelper' is invoked from the
22 kernel. This should point somewhere e.g. into /var/log.
27 <collection name="pkgmgmt">
29 <default>/vservers/.pkg</default>
31 <data name="apt.conf">
33 The default apt.conf which is going to be used. It is overridden by
34 distribution specific configuration file.
39 <collection name="debootstrap">
40 <scalar name="mirror">
42 The Debian mirror to use with the 'debootstrap' program
47 When the 'debootstrap' package is not installed; fetch it from this uri and
48 install it at a temporary place.
53 <collection name="vprocunhide">
56 A list of files which will be made visibly by vprocunhide. Wildcards are
57 allowed and anything ending in '/' will be processed recursively. When this file exists,
58 it overrides the defaults in SYSDEFAULTDIR/vprocunhide-files. The entries there must be
59 absolute filenames inclusive the leading '/proc'.
64 <collection name="init">
67 A symlink to the TTY device where input/output will be redirected from/to
68 at startup via initscript.
73 <collection name="vunify">
76 Static list of excluded files.
82 <collection name=".distributions" use="optional">
83 <collection name="dist" type="symbolic">
88 <data name="apt.conf">
90 The default apt.conf which is going to be used. It overrides the apt.conf
91 from CONFDIR/.defaults/apps/pkgmgmt.
94 <program name="initpre">
96 Script which will be executed before packages will be installed.
99 <parameter name="confdir">
101 The configuration directory of the vserver which is going to be set up.
104 <parameter name="vserver">
106 The pathname of the vserver binary.
111 <program name="initpost">
113 Script which will be executed after packages are installed.
116 <parameter name="confdir">
118 The configuration directory of the vserver which is going to be set up.
121 <parameter name="vserver">
123 The pathname of the vserver binary.
129 <collection name="pkgs">
131 Contains files with packages.
135 File which contains the name of packages. On top of file the special
136 keywords '--reinstall' and '--can-fail' are possible.
141 <collection name="pubkeys">
143 Directory with GPG pubkeys which are used to sign the packages of this
148 <collection name="apt">
150 Default content of the /etc/apt/ directory.
154 <collection name="rpm">
156 Default content of the /etc/rpm directory.
162 Directory which overrides /usr/lib/rpm.
165 <link name="execdir">
167 Directory with all executables and libraries which are required for this
175 <!-- Vserver configuration -->
176 <collection name="vserver-name" type="symbolic">
178 The configuration directory for the vserver vserver-name.
181 <list name="bcapabilities">
183 [experimental; name is subject of possible change] Contains the system capabilities.
186 <list name="ccapabilities">
188 [experimental; name is subject of possible change] Contains the context capabilities.
191 <hash name="schedule">
193 [experimental; name is subject of possible change] Contains the scheduler parameters,
197 <key name="fill-rate">
201 <key name="interval">
209 <key name="tokens-min">
213 <key name="tokens-max">
217 <key name="cpu-mask">
223 <scalar name="hostname">
225 Contains the hostname of the vserver. Same as uts/nodename.
230 Contains the name of the vserver. When not given, the basename of the directory
231 will be assumed as this name.
234 <scalar name="domainname">
236 The domainname of the vserver. Same as uts/domainname.
241 The nice-level on which the vserver will be started.
244 <list name="capabilities">
246 Contains per line a capability. This file is used for the 2.4
247 kernel only; for 2.6 use 'bcapabilities'.
250 <scalar name="shell">
252 Contains the pathname of the shell which will be used by the "vserver ... enter"
258 Contains per line a flag.
261 <element name="fakeinit">
263 The new process will believe it is process number 1. Useful to run a real
264 /sbin/init in a vserver.
267 <element name="lock">
269 The new process is trapped and can't use chcontext anymore.
272 <element name="sched">
274 The new process and its children will share a common
277 <element name="nproc">
279 Limit the number of process in the vserver according to
280 ulimit setting. Normally, ulimit is a per user thing.
281 With this flag, it becomes a per vserver thing.
284 <element name="private">
286 No one can join this security context once created.
289 <element name="ulimit">
291 Apply the current ulimit to the whole context
296 <scalar name="context">
298 Contains the context which shall be used for the vserver.
303 The fstab file for the vserver. Entries in this file will be mounted within the
304 network context of the vserver; this means that mount will be called as 'chbind <options>
305 mount ...'. Use the 'fstab.local' file when you do not want this behavior, but in most cases
306 the 'fstab' file should be used.
309 <data name="fstab.local">
311 The fstab file for the vserver. In opposite to the normal 'fstab' file, the
312 mounting happens in the local network context. Currently there is no way to mix entries of
313 both files; 'fstab' will be always processed before 'fstab.local'.
317 <collection name="apps">
318 <collection name="init">
321 The initial-mtab which will be used for the vserver.
325 <scalar name="style">
327 Contains the init-style.
330 <enumeration value="sysv"/>
331 <enumeration value="plain"/>
332 <enumeration value="minit"/>
333 <enumeration value="gento"/>
337 <scalar name="runlevel">
338 <description>The start runlevel.</description>
341 <scalar name="runlevel.start">
342 <description>The start runlevel.</description>
345 <scalar name="runlevel.stop">
346 <description>The stop runlevel.</description>
349 <scalar name="killseq">
351 Contains the 'signal [wait signal]*' sequence which is used to stop the
356 <list name="cmd.start">
358 The command which is used to start the vserver. Each option must be on a
363 <list name="cmd.start-sync">
365 The command which is used to wait on the vserver after it has been
366 started. Each option must be on a separate line. This file will be ignored when the
367 'sync' does not exist and the '--sync' option was not used.
371 <list name="cmd.stop">
373 The command which is used to stop the vserver. Each option must be on a
378 <list name="cmd.stop-sync">
380 The command which is used to wait on the vserver after it has been
381 stopped. Each option must be on a separate line. This file will be ignored when the
382 'sync' does not exist and the '--sync' option was not used.
386 <list name="cmd.prepare">
388 The command which is used to setup the init-system (e.g. to set the runlevel
389 in the utmp-file). Each option must be on a separate line.
393 <boolean name="sync">
395 If this file is not present, all 'cmd.*-sync files will be ignored.
401 A symlink to the TTY device where input/output will be redirected from/to
402 at startup via initscript.
408 This file is used to mark group of vservers which shall be started/stopped
409 together by the initscript. Content is a simple string like 'default'.
413 <list name="depends">
415 This file is used to configure vservers which must be running before the
416 current vserver can be started. At shutdown, the current vserver will be stopped before
417 its dependencies. Content of this file are vserver ids (one name per line).
422 <collection name="vshelper">
423 <scalar name="sync-timeout">
425 The timeout in seconds which is used when synchronising vserver startup/shutdown
426 with the vshelper. When no set, 30 seconds will be assumed.
428 <default>30</default>
431 <scalar name="action">
433 The action which is going to be executed when a vshelper event occurs. The
434 default value is 'restart', but there can be defined own methods by placing scripts into
435 the 'vshelper-methods' directories. These scripts are fed with the same arguments as the
438 <default>restart</default>
441 <program name="event" type="symbolic">
443 When existing. these scripts will be executed *instead* of the default
444 handler defined in 'action'. Their name must match the event which caused the execution
445 of 'vshelper'; e.g. 'restart' or 'poweroff'. See the vs_reboot() function in the kernel
449 <parameter name="xid">
450 <description>The xid of the context calling the vshelper</description>
452 <parameter name="event">
453 <description>The reboot-event</description>
458 <boolean name="disabled">
460 When existing, the vshelper functionality will be disabled for this
465 <boolean name="warning-disabled">
467 When existing, sanity checks for the vshelper functionality will be
474 <collection name="vshelper-methods">
475 <program name="handler" type="symbolic">
482 <collection name="vunify">
484 This directory contains configuration data required for vserver
488 <list name="exclude">
490 Static list of excluded files. This list supports an rsync syntax: when a
491 file is prefixed by '+', it is a candidate for unification; when there is no prefix or a
492 '-' it will be excluded. Shell-wildcards are allowed for the filenames.
496 <link name="refserver.X" type="symbolic">
498 These are symlinks to the configuration directory
499 (e.g. CONFDIR/vservers/<id>) of a refserver. There may be multiple such symlinks
500 but they must be prefixed by 'refserver.' and will be processed in alphanumerical
507 <collection name="scripts">
509 A directory for scripts. By default, when one of these scripts will be executed,
510 the execution of defaultscripts (within .../.defaults/scripts) will be skipped. To execute
511 them nevertheless, the $DONT_SKIP_DEFAULTS environment variable must be set by one of the
512 in-shellcontext scripts (the non-executable ones).
515 <program name="prepre-start">
517 The scriptlet which will be executed before the network-interfaces are enabled
518 and the directories are mounted."
521 <parameter name="vserver-dir">
522 <description>The configuration directory of the current vserver.</description>
524 <parameter name="vserver-name">
525 <description>The name of the current vserver.</description>
527 <parameter name="action">
528 <description>The fixed value of the current action (e.g. 'prepre-start', 'post-stop'...).</description>
532 <collection name="prepre-start.d">
534 Repository of prepre-start like scripts
536 <program name="script" type="symbolic">
537 <description>See prepre-start.</description>
539 <parameter name="vserver-dir">
540 <description>The configuration directory of the current vserver.</description>
542 <parameter name="vserver-name">
543 <description>The name of the current vserver.</description>
545 <parameter name="action">
546 <description>The fixed value of the current action (e.g. 'prepre-start', 'post-stop'...).</description>
552 <program name="pre-start">
554 The scriptlet which will be executed after network-interfaces were enabled and
555 the directories mounted, but before the vserver itself has been started.
558 <parameter name="vserver-dir">
559 <description>The configuration directory of the current vserver.</description>
561 <parameter name="vserver-name">
562 <description>The name of the current vserver.</description>
564 <parameter name="action">
565 <description>The fixed value of the current action (e.g. 'prepre-start', 'post-stop'...).</description>
569 <collection name="pre-start.d">
571 Repository of pre-start like scripts
573 <program name="script" type="symbolic">
574 <description>See pre-start.</description>
576 <parameter name="vserver-dir">
577 <description>The configuration directory of the current vserver.</description>
579 <parameter name="vserver-name">
580 <description>The name of the current vserver.</description>
582 <parameter name="action">
583 <description>The fixed value of the current action (e.g. 'prepre-start', 'post-stop'...).</description>
590 <program name="post-start">
592 The scriptlet which will be executed after the vserver has been started.
595 <parameter name="vserver-dir">
596 <description>The configuration directory of the current vserver.</description>
598 <parameter name="vserver-name">
599 <description>The name of the current vserver.</description>
601 <parameter name="action">
602 <description>The fixed value of the current action (e.g. 'prepre-start', 'post-stop'...).</description>
606 <collection name="post-start.d">
608 Repository of post-start like scripts
610 <program name="script" type="symbolic">
611 <description>See post-start.</description>
613 <parameter name="vserver-dir">
614 <description>The configuration directory of the current vserver.</description>
616 <parameter name="vserver-name">
617 <description>The name of the current vserver.</description>
619 <parameter name="action">
620 <description>The fixed value of the current action (e.g. 'prepre-start', 'post-stop'...).</description>
627 <program name="pre-stop">
629 The scriptlet which will be executed before the vserver will be stopped.
632 <parameter name="vserver-dir">
633 <description>The configuration directory of the current vserver.</description>
635 <parameter name="vserver-name">
636 <description>The name of the current vserver.</description>
638 <parameter name="action">
639 <description>The fixed value of the current action (e.g. 'prepre-start', 'post-stop'...).</description>
643 <collection name="pre-stop.d">
645 Repository of pre-stop like scripts
647 <program name="script" type="symbolic">
648 <description>See pre-stop.</description>
650 <parameter name="vserver-dir">
651 <description>The configuration directory of the current vserver.</description>
653 <parameter name="vserver-name">
654 <description>The name of the current vserver.</description>
656 <parameter name="action">
657 <description>The fixed value of the current action (e.g. 'prepre-start', 'post-stop'...).</description>
663 <program name="post-stop">
665 The scriptlet which will be executed after the vserver has been stopped, but
666 before the directories will be umounted and the the interfaces
670 <parameter name="vserver-dir">
671 <description>The configuration directory of the current vserver.</description>
673 <parameter name="vserver-name">
674 <description>The name of the current vserver.</description>
676 <parameter name="action">
677 <description>The fixed value of the current action (e.g. 'prepre-start', 'post-stop'...).</description>
681 <collection name="post-stop.d">
683 Repository of post-stop like scripts
685 <program name="script" type="symbolic">
686 <description>See post-stop.</description>
688 <parameter name="vserver-dir">
689 <description>The configuration directory of the current vserver.</description>
691 <parameter name="vserver-name">
692 <description>The name of the current vserver.</description>
694 <parameter name="action">
695 <description>The fixed value of the current action (e.g. 'prepre-start', 'post-stop'...).</description>
701 <program name="postpost-stop">
703 The scriptlet which will be executed after the vserver has been stopped
707 <parameter name="vserver-dir">
708 <description>The configuration directory of the current vserver.</description>
710 <parameter name="vserver-name">
711 <description>The name of the current vserver.</description>
713 <parameter name="action">
714 <description>The fixed value of the current action (e.g. 'prepre-start', 'post-stop'...).</description>
718 <collection name="postpost-stop.d">
720 Repository of postpost-stop like scripts
722 <program name="script" type="symbolic">
723 <description>See postpost-stop.</description>
725 <parameter name="vserver-dir">
726 <description>The configuration directory of the current vserver.</description>
728 <parameter name="vserver-name">
729 <description>The name of the current vserver.</description>
731 <parameter name="action">
732 <description>The fixed value of the current action (e.g. 'prepre-start', 'post-stop'...).</description>
739 <collection name="interfaces">
740 <scalar name="bcast">
741 <description>The default broadcast address.</description>
744 <description>The default network device.</description>
746 <scalar name="prefix">
747 <description>The default network prefix.</description>
750 <description>The default network mask.</description>
752 <scalar name="scope">
753 <description>The default scope of the network interfaces.</description>
756 <collection name="iface" type="symbolic">
758 'iface' is an arbitrary name for the interface; the value itself is not important
759 but may be interesting regarding interface-creation and usage with 'chbind'. Both happens in
760 alphabetical order and numbers like '00' are good names for these directories.
763 <boolean name="disabled">
764 <description>When this file exists, this interface will be ignored.</description>
768 <description>The ip which will be assigned to this interface.</description>
770 <scalar name="bcast">
771 <description>The broadcast address.</description>
774 <description>The network device.</description>
776 <scalar name="prefix">
777 <description>The network prefix.</description>
780 <description>The network mask.</description>
782 <scalar name="scope">
783 <description>The scope of the network interface.</description>
787 When this file exists, the interface will be named with the text in this file.
790 <boolean name="nodev">
792 When this file exists, the interface will be assumed to exist already. A
793 former name for this flag was 'only_ip' which is deprecated now.
799 <collection name="ulimits">
801 A directory with ulimits. Possible resources are cpu, data, fsize, locks,
802 memlock, nofile, nproc, rss and/or stack.
804 <scalar name="resource" type="symbolic">
806 A file which contains the hard- and soft-limit of the given resource in the
807 first line. The special keyword 'inf' is recognized.
810 <scalar name="resource.hard" type="symbolic">
812 A file which contains the hard- of the given resource in the first line. The
813 special keyword 'inf' is recognized.
816 <scalar name="resource.soft" type="symbolic">
818 A file which contains the soft- of the given resource in the first line. The
819 special keyword 'inf' is recognized.
824 <collection name="rlimits">
826 A directory with ulimits. Possible resources are cpu, data, fsize, locks,
827 memlock, nofile, nproc, rss and/or stack.
829 <scalar name="resource" type="symbolic">
831 A file which contains the hard- and soft-limit of the given resource in the
832 first line. The special keyword 'inf' is recognized.
835 <scalar name="resource.hard" type="symbolic">
837 A file which contains the hard- of the given resource in the first line. The
838 special keyword 'inf' is recognized.
841 <scalar name="resource.soft" type="symbolic">
843 A file which contains the soft- of the given resource in the first line. The
844 special keyword 'inf' is recognized.
849 <collection name="uts">
850 <scalar name="context">
852 The context-name of the vserver. This file is listed for completeness only;
853 the 'context' name is used and set internally by the util-vserver tools and can *not* be
857 <scalar name="sysname">
858 <description>The sysname of the vserver</description>
860 <scalar name="nodename">
861 <description>The node-/hostname of the vserver</description>
863 <scalar name="release">
864 <description>The OS-release of the vserver</description>
866 <scalar name="version">
867 <description>The OS-version of the vserver</description>
869 <scalar name="machine">
870 <description>The machine-type of the vserver</description>
872 <scalar name="domainname">
873 <description>The NIS domainname of the vserver</description>