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="pkgmgmt">
20 <default>/vservers/.pkg</default>
22 <data name="apt.conf">
24 The default apt.conf which is going to be used. It is overridden by
25 distribution specific configuration file.
30 <collection name="debootstrap">
31 <scalar name="mirror">
33 The Debian mirror to use with the 'debootstrap' program
38 When the 'debootstrap' package is not installed; fetch it from this uri and
39 install it at a temporary place.
44 <collection name="vprocunhide">
47 A list of files which will be made visibly by vprocunhide. Wildcards are
48 allowed and anything ending in '/' will be processed recursively. When this file exists,
49 it overrides the defaults in SYSDEFAULTDIR/vprocunhide-files. The entries there must be
50 absolute filenames inclusive the leading '/proc'.
55 <collection name="init">
58 A symlink to the TTY device where input/output will be redirected from/to
59 at startup via initscript.
64 <collection name="vunify">
67 Static list of excluded files.
73 <collection name=".distributions" use="optional">
74 <collection name="dist" type="symbolic">
79 <data name="apt.conf">
81 The default apt.conf which is going to be used. It overrides the apt.conf
82 from CONFDIR/.defaults/apps/pkgmgmt.
85 <program name="initpre">
87 Script which will be executed before packages will be installed.
90 <parameter name="confdir">
92 The configuration directory of the vserver which is going to be set up.
95 <parameter name="vserver">
97 The pathname of the vserver binary.
102 <program name="initpost">
104 Script which will be executed after packages are installed.
107 <parameter name="confdir">
109 The configuration directory of the vserver which is going to be set up.
112 <parameter name="vserver">
114 The pathname of the vserver binary.
120 <collection name="pkgs">
122 Contains files with packages.
126 File which contains the name of packages. On top of file the special
127 keywords '--reinstall' and '--can-fail' are possible.
132 <collection name="pubkeys">
134 Directory with GPG pubkeys which are used to sign the packages of this
139 <collection name="apt">
141 Default content of the /etc/apt/ directory.
145 <collection name="rpm">
147 Default content of the /etc/rpm directory.
153 Directory which overrides /usr/lib/rpm.
156 <link name="execdir">
158 Directory with all executables and libraries which are required for this
166 <!-- Vserver configuration -->
167 <collection name="vserver-name" type="symbolic">
169 The configuration directory for the vserver vserver-name.
172 <list name="bcapabilities">
174 [experimental; name is subject of possible change] Contains the system capabilities.
177 <list name="ccapabilities">
179 [experimental; name is subject of possible change] Contains the context capabilities.
182 <hash name="schedule">
184 [experimental; name is subject of possible change] Contains the scheduler parameters,
188 <key name="fill-rate">
192 <key name="interval">
200 <key name="tokens-min">
204 <key name="tokens-max">
208 <key name="cpu-mask">
214 <scalar name="hostname">
216 Contains the hostname of the vserver. Same as uts/nodename.
221 Contains the name of the vserver. When not given, the basename of the directory
222 will be assumed as this name.
225 <scalar name="domainname">
227 The domainname of the vserver. Same as uts/domainname.
232 The nice-level on which the vserver will be started.
235 <list name="capabilities">
237 Contains per line a capability
240 <scalar name="shell">
242 Contains the pathname of the shell which will be used by the "vserver ... enter"
248 Contains per line a flag.
251 <element name="fakeinit">
253 The new process will believe it is process number 1. Useful to run a real
254 /sbin/init in a vserver.
257 <element name="lock">
259 The new process is trapped and can't use chcontext anymore.
262 <element name="sched">
264 The new process and its children will share a common
267 <element name="nproc">
269 Limit the number of process in the vserver according to
270 ulimit setting. Normally, ulimit is a per user thing.
271 With this flag, it becomes a per vserver thing.
274 <element name="private">
276 No one can join this security context once created.
279 <element name="ulimit">
281 Apply the current ulimit to the whole context
286 <scalar name="context">
288 Contains the context which shall be used for the vserver.
293 The fstab file for the vserver. Entries in this file will be mounted within the
294 network context of the vserver; this means that mount will be called as 'chbind <options>
295 mount ...'. Use the 'fstab.local' file when you do not want this behavior, but in most cases
296 the 'fstab' file should be used.
299 <data name="fstab.local">
301 The fstab file for the vserver. In opposite to the normal 'fstab' file, the
302 mounting happens in the local network context. Currently there is no way to mix entries of
303 both files; 'fstab' will be always processed before 'fstab.local'.
307 <collection name="apps">
308 <collection name="init">
311 The initial-mtab which will be used for the vserver.
315 <scalar name="style">
317 Contains the init-style.
320 <enumeration value="sysv"/>
321 <enumeration value="plain"/>
322 <enumeration value="minit"/>
323 <enumeration value="gento"/>
327 <scalar name="runlevel">
328 <description>The start runlevel.</description>
331 <scalar name="runlevel.start">
332 <description>The start runlevel.</description>
335 <scalar name="runlevel.stop">
336 <description>The stop runlevel.</description>
339 <scalar name="killseq">
341 Contains the 'signal [wait signal]*' sequence which is used to stop the
346 <list name="cmd.start">
348 The command which is used to start the vserver. Each option must be on a
353 <list name="cmd.start-sync">
355 The command which is used to wait on the vserver after it has been
356 started. Each option must be on a separate line. This file will be ignored when the
357 'sync' does not exist and the '--sync' option was not used.
361 <list name="cmd.stop">
363 The command which is used to stop the vserver. Each option must be on a
368 <list name="cmd.stop-sync">
370 The command which is used to wait on the vserver after it has been
371 stopped. Each option must be on a separate line. This file will be ignored when the
372 'sync' does not exist and the '--sync' option was not used.
376 <list name="cmd.prepare">
378 The command which is used to setup the init-system (e.g. to set the runlevel
379 in the utmp-file). Each option must be on a separate line.
383 <boolean name="sync">
385 If this file is not present, all 'cmd.*-sync files will be ignored.
391 A symlink to the TTY device where input/output will be redirected from/to
392 at startup via initscript.
398 This file is used to mark group of vservers which shall be started/stopped
399 together by the initscript. Content is a simple string like 'default'.
403 <list name="depends">
405 This file is used to configure vservers which must be running before the
406 current vserver can be started. At shutdown, the current vserver will be stopped before
407 its dependencies. Content of this file are vserver ids (one name per line).
412 <collection name="vshelper">
413 <scalar name="sync-timeout">
415 The timeout in seconds which is used when synchronising vserver startup/shutdown
416 with the vshelper. When no set, 30 seconds will be assumed.
418 <default>30</default>
421 <scalar name="action">
423 The action which is going to be executed when a vshelper event occurs. The
424 default value is 'restart', but there can be defined own methods by placing scripts into
425 the 'vshelper-methods' directories. These scripts are fed with the same arguments as the
428 <default>restart</default>
431 <program name="event" type="symbolic">
433 When existing. these scripts will be executed *instead* of the default
434 handler defined in 'action'. Their name must match the event which caused the execution
435 of 'vshelper'; e.g. 'restart' or 'poweroff'. See the vs_reboot() function in the kernel
439 <parameter name="xid">
440 <description>The xid of the context calling the vshelper</description>
442 <parameter name="event">
443 <description>The reboot-event</description>
448 <boolean name="disabled">
450 When existing, the vshelper functionality will be disabled for this
455 <boolean name="warning-disabled">
457 When existing, sanity checks for the vshelper functionality will be
462 <link name="logfile">
464 The file where output will be logged to when 'vshelper' is invoked from the
465 kernel. This should point somewhere e.g. into /var/log.
470 <collection name="vshelper-methods">
471 <program name="handler" type="symbolic">
478 <collection name="vunify">
480 This directory contains configuration data required for vserver
484 <list name="exclude">
486 Static list of excluded files. This list supports an rsync syntax: when a
487 file is prefixed by '+', it is a candidate for unification; when there is no prefix or a
488 '-' it will be excluded. Shell-wildcards are allowed for the filenames.
492 <link name="refserver.X" type="symbolic">
494 These are symlinks to the configuration directory
495 (e.g. CONFDIR/vservers/<id>) of a refserver. There may be multiple such symlinks
496 but they must be prefixed by 'refserver.' and will be processed in alphanumerical
503 <collection name="scripts">
505 A directory for scripts. By default, when one of these scripts will be executed,
506 the execution of defaultscripts (within .../.defaults/scripts) will be skipped. To execute
507 them nevertheless, the $DONT_SKIP_DEFAULTS environment variable must be set by one of the
508 in-shellcontext scripts (the non-executable ones).
511 <program name="prepre-start">
513 The scriptlet which will be executed before the network-interfaces are enabled
514 and the directories are mounted."
517 <parameter name="vserver-dir">
518 <description>The configuration directory of the current vserver.</description>
520 <parameter name="vserver-name">
521 <description>The name of the current vserver.</description>
523 <parameter name="action">
524 <description>The fixed value of the current action (e.g. 'prepre-start', 'post-stop'...).</description>
528 <collection name="prepre-start.d">
530 Repository of prepre-start like scripts
532 <program name="script" type="symbolic">
533 <description>See prepre-start.</description>
535 <parameter name="vserver-dir">
536 <description>The configuration directory of the current vserver.</description>
538 <parameter name="vserver-name">
539 <description>The name of the current vserver.</description>
541 <parameter name="action">
542 <description>The fixed value of the current action (e.g. 'prepre-start', 'post-stop'...).</description>
548 <program name="pre-start">
550 The scriptlet which will be executed after network-interfaces were enabled and
551 the directories mounted, but before the vserver itself has been started.
554 <parameter name="vserver-dir">
555 <description>The configuration directory of the current vserver.</description>
557 <parameter name="vserver-name">
558 <description>The name of the current vserver.</description>
560 <parameter name="action">
561 <description>The fixed value of the current action (e.g. 'prepre-start', 'post-stop'...).</description>
565 <collection name="pre-start.d">
567 Repository of pre-start like scripts
569 <program name="script" type="symbolic">
570 <description>See pre-start.</description>
572 <parameter name="vserver-dir">
573 <description>The configuration directory of the current vserver.</description>
575 <parameter name="vserver-name">
576 <description>The name of the current vserver.</description>
578 <parameter name="action">
579 <description>The fixed value of the current action (e.g. 'prepre-start', 'post-stop'...).</description>
586 <program name="post-start">
588 The scriptlet which will be executed after the vserver has been started.
591 <parameter name="vserver-dir">
592 <description>The configuration directory of the current vserver.</description>
594 <parameter name="vserver-name">
595 <description>The name of the current vserver.</description>
597 <parameter name="action">
598 <description>The fixed value of the current action (e.g. 'prepre-start', 'post-stop'...).</description>
602 <collection name="post-start.d">
604 Repository of post-start like scripts
606 <program name="script" type="symbolic">
607 <description>See post-start.</description>
609 <parameter name="vserver-dir">
610 <description>The configuration directory of the current vserver.</description>
612 <parameter name="vserver-name">
613 <description>The name of the current vserver.</description>
615 <parameter name="action">
616 <description>The fixed value of the current action (e.g. 'prepre-start', 'post-stop'...).</description>
623 <program name="pre-stop">
625 The scriptlet which will be executed before the vserver will be stopped.
628 <parameter name="vserver-dir">
629 <description>The configuration directory of the current vserver.</description>
631 <parameter name="vserver-name">
632 <description>The name of the current vserver.</description>
634 <parameter name="action">
635 <description>The fixed value of the current action (e.g. 'prepre-start', 'post-stop'...).</description>
639 <collection name="pre-stop.d">
641 Repository of pre-stop like scripts
643 <program name="script" type="symbolic">
644 <description>See pre-stop.</description>
646 <parameter name="vserver-dir">
647 <description>The configuration directory of the current vserver.</description>
649 <parameter name="vserver-name">
650 <description>The name of the current vserver.</description>
652 <parameter name="action">
653 <description>The fixed value of the current action (e.g. 'prepre-start', 'post-stop'...).</description>
659 <program name="post-stop">
661 The scriptlet which will be executed after the vserver has been stopped, but
662 before the directories will be umounted and the the interfaces
666 <parameter name="vserver-dir">
667 <description>The configuration directory of the current vserver.</description>
669 <parameter name="vserver-name">
670 <description>The name of the current vserver.</description>
672 <parameter name="action">
673 <description>The fixed value of the current action (e.g. 'prepre-start', 'post-stop'...).</description>
677 <collection name="post-stop.d">
679 Repository of post-stop like scripts
681 <program name="script" type="symbolic">
682 <description>See post-stop.</description>
684 <parameter name="vserver-dir">
685 <description>The configuration directory of the current vserver.</description>
687 <parameter name="vserver-name">
688 <description>The name of the current vserver.</description>
690 <parameter name="action">
691 <description>The fixed value of the current action (e.g. 'prepre-start', 'post-stop'...).</description>
697 <program name="postpost-stop">
699 The scriptlet which will be executed after the vserver has been stopped
703 <parameter name="vserver-dir">
704 <description>The configuration directory of the current vserver.</description>
706 <parameter name="vserver-name">
707 <description>The name of the current vserver.</description>
709 <parameter name="action">
710 <description>The fixed value of the current action (e.g. 'prepre-start', 'post-stop'...).</description>
714 <collection name="postpost-stop.d">
716 Repository of postpost-stop like scripts
718 <program name="script" type="symbolic">
719 <description>See postpost-stop.</description>
721 <parameter name="vserver-dir">
722 <description>The configuration directory of the current vserver.</description>
724 <parameter name="vserver-name">
725 <description>The name of the current vserver.</description>
727 <parameter name="action">
728 <description>The fixed value of the current action (e.g. 'prepre-start', 'post-stop'...).</description>
735 <collection name="interfaces">
736 <scalar name="bcast">
737 <description>The default broadcast address.</description>
740 <description>The default network device.</description>
742 <scalar name="prefix">
743 <description>The default network prefix.</description>
746 <description>The default network mask.</description>
748 <scalar name="scope">
749 <description>The default scope of the network interfaces.</description>
752 <collection name="iface" type="symbolic">
754 'iface' is an arbitrary name for the interface; the value itself is not important
755 but may be interesting regarding interface-creation and usage with 'chbind'. Both happens in
756 alphabetical order and numbers like '00' are good names for these directories.
759 <boolean name="disabled">
760 <description>When this file exists, this interface will be ignored.</description>
764 <description>The ip which will be assigned to this interface.</description>
766 <scalar name="bcast">
767 <description>The broadcast address.</description>
770 <description>The network device.</description>
772 <scalar name="prefix">
773 <description>The network prefix.</description>
776 <description>The network mask.</description>
778 <scalar name="scope">
779 <description>The scope of the network interface.</description>
783 When this file exists, the interface will be named with the text in this file.
786 <boolean name="nodev">
788 When this file exists, the interface will be assumed to exist already. A
789 former name for this flag was 'only_ip' which is deprecated now.
795 <collection name="ulimits">
797 A directory with ulimits. Possible resources are cpu, data, fsize, locks,
798 memlock, nofile, nproc, rss and/or stack.
800 <scalar name="resource" type="symbolic">
802 A file which contains the hard- and soft-limit of the given resource in the
803 first line. The special keyword 'inf' is recognized.
806 <scalar name="resource.hard" type="symbolic">
808 A file which contains the hard- of the given resource in the first line. The
809 special keyword 'inf' is recognized.
812 <scalar name="resource.soft" type="symbolic">
814 A file which contains the soft- of the given resource in the first line. The
815 special keyword 'inf' is recognized.
820 <collection name="rlimits">
822 A directory with ulimits. Possible resources are cpu, data, fsize, locks,
823 memlock, nofile, nproc, rss and/or stack.
825 <scalar name="resource" type="symbolic">
827 A file which contains the hard- and soft-limit of the given resource in the
828 first line. The special keyword 'inf' is recognized.
831 <scalar name="resource.hard" type="symbolic">
833 A file which contains the hard- of the given resource in the first line. The
834 special keyword 'inf' is recognized.
837 <scalar name="resource.soft" type="symbolic">
839 A file which contains the soft- of the given resource in the first line. The
840 special keyword 'inf' is recognized.
845 <collection name="uts">
846 <scalar name="context">
848 The context-name of the vserver. This file is listed for completeness only;
849 the 'context' name is used and set internally by the util-vserver tools and can *not* be
853 <scalar name="sysname">
854 <description>The sysname of the vserver</description>
856 <scalar name="nodename">
857 <description>The node-/hostname of the vserver</description>
859 <scalar name="release">
860 <description>The OS-release of the vserver</description>
862 <scalar name="version">
863 <description>The OS-version of the vserver</description>
865 <scalar name="machine">
866 <description>The machine-type of the vserver</description>
868 <scalar name="domainname">
869 <description>The NIS domainname of the vserver</description>