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
249 <scalar name="shell">
251 Contains the pathname of the shell which will be used by the "vserver ... enter"
257 Contains per line a flag.
260 <element name="fakeinit">
262 The new process will believe it is process number 1. Useful to run a real
263 /sbin/init in a vserver.
266 <element name="lock">
268 The new process is trapped and can't use chcontext anymore.
271 <element name="sched">
273 The new process and its children will share a common
276 <element name="nproc">
278 Limit the number of process in the vserver according to
279 ulimit setting. Normally, ulimit is a per user thing.
280 With this flag, it becomes a per vserver thing.
283 <element name="private">
285 No one can join this security context once created.
288 <element name="ulimit">
290 Apply the current ulimit to the whole context
295 <scalar name="context">
297 Contains the context which shall be used for the vserver.
302 The fstab file for the vserver. Entries in this file will be mounted within the
303 network context of the vserver; this means that mount will be called as 'chbind <options>
304 mount ...'. Use the 'fstab.local' file when you do not want this behavior, but in most cases
305 the 'fstab' file should be used.
308 <data name="fstab.local">
310 The fstab file for the vserver. In opposite to the normal 'fstab' file, the
311 mounting happens in the local network context. Currently there is no way to mix entries of
312 both files; 'fstab' will be always processed before 'fstab.local'.
316 <collection name="apps">
317 <collection name="init">
320 The initial-mtab which will be used for the vserver.
324 <scalar name="style">
326 Contains the init-style.
329 <enumeration value="sysv"/>
330 <enumeration value="plain"/>
331 <enumeration value="minit"/>
332 <enumeration value="gento"/>
336 <scalar name="runlevel">
337 <description>The start runlevel.</description>
340 <scalar name="runlevel.start">
341 <description>The start runlevel.</description>
344 <scalar name="runlevel.stop">
345 <description>The stop runlevel.</description>
348 <scalar name="killseq">
350 Contains the 'signal [wait signal]*' sequence which is used to stop the
355 <list name="cmd.start">
357 The command which is used to start the vserver. Each option must be on a
362 <list name="cmd.start-sync">
364 The command which is used to wait on the vserver after it has been
365 started. Each option must be on a separate line. This file will be ignored when the
366 'sync' does not exist and the '--sync' option was not used.
370 <list name="cmd.stop">
372 The command which is used to stop the vserver. Each option must be on a
377 <list name="cmd.stop-sync">
379 The command which is used to wait on the vserver after it has been
380 stopped. Each option must be on a separate line. This file will be ignored when the
381 'sync' does not exist and the '--sync' option was not used.
385 <list name="cmd.prepare">
387 The command which is used to setup the init-system (e.g. to set the runlevel
388 in the utmp-file). Each option must be on a separate line.
392 <boolean name="sync">
394 If this file is not present, all 'cmd.*-sync files will be ignored.
400 A symlink to the TTY device where input/output will be redirected from/to
401 at startup via initscript.
407 This file is used to mark group of vservers which shall be started/stopped
408 together by the initscript. Content is a simple string like 'default'.
412 <list name="depends">
414 This file is used to configure vservers which must be running before the
415 current vserver can be started. At shutdown, the current vserver will be stopped before
416 its dependencies. Content of this file are vserver ids (one name per line).
421 <collection name="vshelper">
422 <scalar name="sync-timeout">
424 The timeout in seconds which is used when synchronising vserver startup/shutdown
425 with the vshelper. When no set, 30 seconds will be assumed.
427 <default>30</default>
430 <scalar name="action">
432 The action which is going to be executed when a vshelper event occurs. The
433 default value is 'restart', but there can be defined own methods by placing scripts into
434 the 'vshelper-methods' directories. These scripts are fed with the same arguments as the
437 <default>restart</default>
440 <program name="event" type="symbolic">
442 When existing. these scripts will be executed *instead* of the default
443 handler defined in 'action'. Their name must match the event which caused the execution
444 of 'vshelper'; e.g. 'restart' or 'poweroff'. See the vs_reboot() function in the kernel
448 <parameter name="xid">
449 <description>The xid of the context calling the vshelper</description>
451 <parameter name="event">
452 <description>The reboot-event</description>
457 <boolean name="disabled">
459 When existing, the vshelper functionality will be disabled for this
464 <boolean name="warning-disabled">
466 When existing, sanity checks for the vshelper functionality will be
473 <collection name="vshelper-methods">
474 <program name="handler" type="symbolic">
481 <collection name="vunify">
483 This directory contains configuration data required for vserver
487 <list name="exclude">
489 Static list of excluded files. This list supports an rsync syntax: when a
490 file is prefixed by '+', it is a candidate for unification; when there is no prefix or a
491 '-' it will be excluded. Shell-wildcards are allowed for the filenames.
495 <link name="refserver.X" type="symbolic">
497 These are symlinks to the configuration directory
498 (e.g. CONFDIR/vservers/<id>) of a refserver. There may be multiple such symlinks
499 but they must be prefixed by 'refserver.' and will be processed in alphanumerical
506 <collection name="scripts">
508 A directory for scripts. By default, when one of these scripts will be executed,
509 the execution of defaultscripts (within .../.defaults/scripts) will be skipped. To execute
510 them nevertheless, the $DONT_SKIP_DEFAULTS environment variable must be set by one of the
511 in-shellcontext scripts (the non-executable ones).
514 <program name="prepre-start">
516 The scriptlet which will be executed before the network-interfaces are enabled
517 and the directories are mounted."
520 <parameter name="vserver-dir">
521 <description>The configuration directory of the current vserver.</description>
523 <parameter name="vserver-name">
524 <description>The name of the current vserver.</description>
526 <parameter name="action">
527 <description>The fixed value of the current action (e.g. 'prepre-start', 'post-stop'...).</description>
531 <collection name="prepre-start.d">
533 Repository of prepre-start like scripts
535 <program name="script" type="symbolic">
536 <description>See prepre-start.</description>
538 <parameter name="vserver-dir">
539 <description>The configuration directory of the current vserver.</description>
541 <parameter name="vserver-name">
542 <description>The name of the current vserver.</description>
544 <parameter name="action">
545 <description>The fixed value of the current action (e.g. 'prepre-start', 'post-stop'...).</description>
551 <program name="pre-start">
553 The scriptlet which will be executed after network-interfaces were enabled and
554 the directories mounted, but before the vserver itself has been started.
557 <parameter name="vserver-dir">
558 <description>The configuration directory of the current vserver.</description>
560 <parameter name="vserver-name">
561 <description>The name of the current vserver.</description>
563 <parameter name="action">
564 <description>The fixed value of the current action (e.g. 'prepre-start', 'post-stop'...).</description>
568 <collection name="pre-start.d">
570 Repository of pre-start like scripts
572 <program name="script" type="symbolic">
573 <description>See pre-start.</description>
575 <parameter name="vserver-dir">
576 <description>The configuration directory of the current vserver.</description>
578 <parameter name="vserver-name">
579 <description>The name of the current vserver.</description>
581 <parameter name="action">
582 <description>The fixed value of the current action (e.g. 'prepre-start', 'post-stop'...).</description>
589 <program name="post-start">
591 The scriptlet which will be executed after the vserver has been started.
594 <parameter name="vserver-dir">
595 <description>The configuration directory of the current vserver.</description>
597 <parameter name="vserver-name">
598 <description>The name of the current vserver.</description>
600 <parameter name="action">
601 <description>The fixed value of the current action (e.g. 'prepre-start', 'post-stop'...).</description>
605 <collection name="post-start.d">
607 Repository of post-start like scripts
609 <program name="script" type="symbolic">
610 <description>See post-start.</description>
612 <parameter name="vserver-dir">
613 <description>The configuration directory of the current vserver.</description>
615 <parameter name="vserver-name">
616 <description>The name of the current vserver.</description>
618 <parameter name="action">
619 <description>The fixed value of the current action (e.g. 'prepre-start', 'post-stop'...).</description>
626 <program name="pre-stop">
628 The scriptlet which will be executed before the vserver will be stopped.
631 <parameter name="vserver-dir">
632 <description>The configuration directory of the current vserver.</description>
634 <parameter name="vserver-name">
635 <description>The name of the current vserver.</description>
637 <parameter name="action">
638 <description>The fixed value of the current action (e.g. 'prepre-start', 'post-stop'...).</description>
642 <collection name="pre-stop.d">
644 Repository of pre-stop like scripts
646 <program name="script" type="symbolic">
647 <description>See pre-stop.</description>
649 <parameter name="vserver-dir">
650 <description>The configuration directory of the current vserver.</description>
652 <parameter name="vserver-name">
653 <description>The name of the current vserver.</description>
655 <parameter name="action">
656 <description>The fixed value of the current action (e.g. 'prepre-start', 'post-stop'...).</description>
662 <program name="post-stop">
664 The scriptlet which will be executed after the vserver has been stopped, but
665 before the directories will be umounted and the the interfaces
669 <parameter name="vserver-dir">
670 <description>The configuration directory of the current vserver.</description>
672 <parameter name="vserver-name">
673 <description>The name of the current vserver.</description>
675 <parameter name="action">
676 <description>The fixed value of the current action (e.g. 'prepre-start', 'post-stop'...).</description>
680 <collection name="post-stop.d">
682 Repository of post-stop like scripts
684 <program name="script" type="symbolic">
685 <description>See post-stop.</description>
687 <parameter name="vserver-dir">
688 <description>The configuration directory of the current vserver.</description>
690 <parameter name="vserver-name">
691 <description>The name of the current vserver.</description>
693 <parameter name="action">
694 <description>The fixed value of the current action (e.g. 'prepre-start', 'post-stop'...).</description>
700 <program name="postpost-stop">
702 The scriptlet which will be executed after the vserver has been stopped
706 <parameter name="vserver-dir">
707 <description>The configuration directory of the current vserver.</description>
709 <parameter name="vserver-name">
710 <description>The name of the current vserver.</description>
712 <parameter name="action">
713 <description>The fixed value of the current action (e.g. 'prepre-start', 'post-stop'...).</description>
717 <collection name="postpost-stop.d">
719 Repository of postpost-stop like scripts
721 <program name="script" type="symbolic">
722 <description>See postpost-stop.</description>
724 <parameter name="vserver-dir">
725 <description>The configuration directory of the current vserver.</description>
727 <parameter name="vserver-name">
728 <description>The name of the current vserver.</description>
730 <parameter name="action">
731 <description>The fixed value of the current action (e.g. 'prepre-start', 'post-stop'...).</description>
738 <collection name="interfaces">
739 <scalar name="bcast">
740 <description>The default broadcast address.</description>
743 <description>The default network device.</description>
745 <scalar name="prefix">
746 <description>The default network prefix.</description>
749 <description>The default network mask.</description>
751 <scalar name="scope">
752 <description>The default scope of the network interfaces.</description>
755 <collection name="iface" type="symbolic">
757 'iface' is an arbitrary name for the interface; the value itself is not important
758 but may be interesting regarding interface-creation and usage with 'chbind'. Both happens in
759 alphabetical order and numbers like '00' are good names for these directories.
762 <boolean name="disabled">
763 <description>When this file exists, this interface will be ignored.</description>
767 <description>The ip which will be assigned to this interface.</description>
769 <scalar name="bcast">
770 <description>The broadcast address.</description>
773 <description>The network device.</description>
775 <scalar name="prefix">
776 <description>The network prefix.</description>
779 <description>The network mask.</description>
781 <scalar name="scope">
782 <description>The scope of the network interface.</description>
786 When this file exists, the interface will be named with the text in this file.
789 <boolean name="nodev">
791 When this file exists, the interface will be assumed to exist already. A
792 former name for this flag was 'only_ip' which is deprecated now.
798 <collection name="ulimits">
800 A directory with ulimits. Possible resources are cpu, data, fsize, locks,
801 memlock, nofile, nproc, rss and/or stack.
803 <scalar name="resource" type="symbolic">
805 A file which contains the hard- and soft-limit of the given resource in the
806 first line. The special keyword 'inf' is recognized.
809 <scalar name="resource.hard" type="symbolic">
811 A file which contains the hard- of the given resource in the first line. The
812 special keyword 'inf' is recognized.
815 <scalar name="resource.soft" type="symbolic">
817 A file which contains the soft- of the given resource in the first line. The
818 special keyword 'inf' is recognized.
823 <collection name="rlimits">
825 A directory with ulimits. Possible resources are cpu, data, fsize, locks,
826 memlock, nofile, nproc, rss and/or stack.
828 <scalar name="resource" type="symbolic">
830 A file which contains the hard- and soft-limit of the given resource in the
831 first line. The special keyword 'inf' is recognized.
834 <scalar name="resource.hard" type="symbolic">
836 A file which contains the hard- of the given resource in the first line. The
837 special keyword 'inf' is recognized.
840 <scalar name="resource.soft" type="symbolic">
842 A file which contains the soft- of the given resource in the first line. The
843 special keyword 'inf' is recognized.
848 <collection name="uts">
849 <scalar name="context">
851 The context-name of the vserver. This file is listed for completeness only;
852 the 'context' name is used and set internally by the util-vserver tools and can *not* be
856 <scalar name="sysname">
857 <description>The sysname of the vserver</description>
859 <scalar name="nodename">
860 <description>The node-/hostname of the vserver</description>
862 <scalar name="release">
863 <description>The OS-release of the vserver</description>
865 <scalar name="version">
866 <description>The OS-version of the vserver</description>
868 <scalar name="machine">
869 <description>The machine-type of the vserver</description>
871 <scalar name="domainname">
872 <description>The NIS domainname of the vserver</description>