]> git.proxmox.com Git - mirror_lxc.git/blob - doc/lxc.container.conf.sgml.in
Merge pull request #3454 from brauner/master
[mirror_lxc.git] / doc / lxc.container.conf.sgml.in
1 <!--
2
3 lxc: linux Container library
4
5 (C) Copyright IBM Corp. 2007, 2008
6
7 Authors:
8 Daniel Lezcano <daniel.lezcano at free.fr>
9
10 This library is free software; you can redistribute it and/or
11 modify it under the terms of the GNU Lesser General Public
12 License as published by the Free Software Foundation; either
13 version 2.1 of the License, or (at your option) any later version.
14
15 This library is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 Lesser General Public License for more details.
19
20 You should have received a copy of the GNU Lesser General Public
21 License along with this library; if not, write to the Free Software
22 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
23
24 -->
25
26 <!DOCTYPE refentry PUBLIC @docdtd@ [
27
28 <!ENTITY seealso SYSTEM "@builddir@/see_also.sgml">
29 ]>
30
31 <refentry>
32
33 <docinfo><date>@LXC_GENERATE_DATE@</date></docinfo>
34
35 <refmeta>
36 <refentrytitle>lxc.container.conf</refentrytitle>
37 <manvolnum>5</manvolnum>
38 </refmeta>
39
40 <refnamediv>
41 <refname>lxc.container.conf</refname>
42
43 <refpurpose>
44 LXC container configuration file
45 </refpurpose>
46 </refnamediv>
47
48 <refsect1>
49 <title>Description</title>
50
51 <para>
52 LXC is the well-known and heavily tested low-level Linux container
53 runtime. It is in active development since 2008 and has proven itself in
54 critical production environments world-wide. Some of its core contributors
55 are the same people that helped to implement various well-known
56 containerization features inside the Linux kernel.
57 </para>
58
59 <para>
60 LXC's main focus is system containers. That is, containers which offer an
61 environment as close as possible as the one you'd get from a VM but
62 without the overhead that comes with running a separate kernel and
63 simulating all the hardware.
64 </para>
65
66 <para>
67 This is achieved through a combination of kernel security features such as
68 namespaces, mandatory access control and control groups.
69 </para>
70
71 <para>
72 LXC has support for unprivileged containers. Unprivileged containers are
73 containers that are run without any privilege. This requires support for
74 user namespaces in the kernel that the container is run on. LXC was the
75 first runtime to support unprivileged containers after user namespaces
76 were merged into the mainline kernel.
77 </para>
78
79 <para>
80 In essence, user namespaces isolate given sets of UIDs and GIDs. This is
81 achieved by establishing a mapping between a range of UIDs and GIDs on the
82 host to a different (unprivileged) range of UIDs and GIDs in the
83 container. The kernel will translate this mapping in such a way that
84 inside the container all UIDs and GIDs appear as you would expect from the
85 host whereas on the host these UIDs and GIDs are in fact unprivileged. For
86 example, a process running as UID and GID 0 inside the container might
87 appear as UID and GID 100000 on the host. The implementation and working
88 details can be gathered from the corresponding user namespace man page.
89 UID and GID mappings can be defined with the <option>lxc.idmap</option>
90 key.
91 </para>
92
93 <para>
94 Linux containers are defined with a simple configuration file. Each
95 option in the configuration file has the form <command>key =
96 value</command> fitting in one line. The "#" character means the line is a
97 comment. List options, like capabilities and cgroups options, can be used
98 with no value to clear any previously defined values of that option.
99 </para>
100
101 <para>
102 LXC namespaces configuration keys use single dots. This means complex
103 configuration keys such as <option>lxc.net.0</option> expose various
104 subkeys such as <option>lxc.net.0.type</option>,
105 <option>lxc.net.0.link</option>, <option>lxc.net.0.ipv6.address</option>, and
106 others for even more fine-grained configuration.
107 </para>
108
109 <refsect2>
110 <title>Configuration</title>
111 <para>
112 In order to ease administration of multiple related containers, it is
113 possible to have a container configuration file cause another file to be
114 loaded. For instance, network configuration can be defined in one common
115 file which is included by multiple containers. Then, if the containers
116 are moved to another host, only one file may need to be updated.
117 </para>
118
119 <variablelist>
120 <varlistentry>
121 <term>
122 <option>lxc.include</option>
123 </term>
124 <listitem>
125 <para>
126 Specify the file to be included. The included file must be
127 in the same valid lxc configuration file format.
128 </para>
129 </listitem>
130 </varlistentry>
131 </variablelist>
132 </refsect2>
133
134 <refsect2>
135 <title>Architecture</title>
136 <para>
137 Allows one to set the architecture for the container. For example, set a
138 32bits architecture for a container running 32bits binaries on a 64bits
139 host. This fixes the container scripts which rely on the architecture to
140 do some work like downloading the packages.
141 </para>
142
143 <variablelist>
144 <varlistentry>
145 <term>
146 <option>lxc.arch</option>
147 </term>
148 <listitem>
149 <para>
150 Specify the architecture for the container.
151 </para>
152 <para>
153 Some valid options are
154 <option>x86</option>,
155 <option>i686</option>,
156 <option>x86_64</option>,
157 <option>amd64</option>
158 </para>
159 </listitem>
160 </varlistentry>
161 </variablelist>
162
163 </refsect2>
164
165 <refsect2>
166 <title>Hostname</title>
167 <para>
168 The utsname section defines the hostname to be set for the container.
169 That means the container can set its own hostname without changing the
170 one from the system. That makes the hostname private for the container.
171 </para>
172 <variablelist>
173 <varlistentry>
174 <term>
175 <option>lxc.uts.name</option>
176 </term>
177 <listitem>
178 <para>
179 specify the hostname for the container
180 </para>
181 </listitem>
182 </varlistentry>
183 </variablelist>
184 </refsect2>
185
186 <refsect2>
187 <title>Halt signal</title>
188 <para>
189 Allows one to specify signal name or number sent to the container's
190 init process to cleanly shutdown the container. Different init systems
191 could use different signals to perform clean shutdown sequence. This
192 option allows the signal to be specified in kill(1) fashion, e.g.
193 SIGPWR, SIGRTMIN+14, SIGRTMAX-10 or plain number. The default signal is
194 SIGPWR.
195 </para>
196 <variablelist>
197 <varlistentry>
198 <term>
199 <option>lxc.signal.halt</option>
200 </term>
201 <listitem>
202 <para>
203 specify the signal used to halt the container
204 </para>
205 </listitem>
206 </varlistentry>
207 </variablelist>
208 </refsect2>
209
210 <refsect2>
211 <title>Reboot signal</title>
212 <para>
213 Allows one to specify signal name or number to reboot the container.
214 This option allows signal to be specified in kill(1) fashion, e.g.
215 SIGTERM, SIGRTMIN+14, SIGRTMAX-10 or plain number. The default signal
216 is SIGINT.
217 </para>
218 <variablelist>
219 <varlistentry>
220 <term>
221 <option>lxc.signal.reboot</option>
222 </term>
223 <listitem>
224 <para>
225 specify the signal used to reboot the container
226 </para>
227 </listitem>
228 </varlistentry>
229 </variablelist>
230 </refsect2>
231
232 <refsect2>
233 <title>Stop signal</title>
234 <para>
235 Allows one to specify signal name or number to forcibly shutdown the
236 container. This option allows signal to be specified in kill(1) fashion,
237 e.g. SIGKILL, SIGRTMIN+14, SIGRTMAX-10 or plain number. The default
238 signal is SIGKILL.
239 </para>
240 <variablelist>
241 <varlistentry>
242 <term>
243 <option>lxc.signal.stop</option>
244 </term>
245 <listitem>
246 <para>
247 specify the signal used to stop the container
248 </para>
249 </listitem>
250 </varlistentry>
251 </variablelist>
252 </refsect2>
253
254 <refsect2>
255 <title>Init command</title>
256 <para>
257 Sets the command to use as the init system for the containers.
258 </para>
259 <variablelist>
260 <varlistentry>
261 <term>
262 <option>lxc.execute.cmd</option>
263 </term>
264 <listitem>
265 <para>
266 Absolute path from container rootfs to the binary to run by default. This
267 mostly makes sense for <command>lxc-execute</command>.
268 </para>
269 </listitem>
270 </varlistentry>
271 </variablelist>
272 <variablelist>
273 <varlistentry>
274 <term>
275 <option>lxc.init.cmd</option>
276 </term>
277 <listitem>
278 <para>
279 Absolute path from container rootfs to the binary to use as init. This
280 mostly makes sense for <command>lxc-start</command>. Default is <command>/sbin/init</command>.
281 </para>
282 </listitem>
283 </varlistentry>
284 </variablelist>
285 </refsect2>
286
287 <refsect2>
288 <title>Init working directory</title>
289 <para>
290 Sets the absolute path inside the container as the working directory for the containers.
291 LXC will switch to this directory before executing init.
292 </para>
293 <variablelist>
294 <varlistentry>
295 <term>
296 <option>lxc.init.cwd</option>
297 </term>
298 <listitem>
299 <para>
300 Absolute path inside the container to use as the working directory.
301 </para>
302 </listitem>
303 </varlistentry>
304 </variablelist>
305 </refsect2>
306
307 <refsect2>
308 <title>Init ID</title>
309 <para>
310 Sets the UID/GID to use for the init system, and subsequent commands.
311 Note that using a non-root UID when booting a system container will
312 likely not work due to missing privileges. Setting the UID/GID is mostly
313 useful when running application containers.
314
315 Defaults to: UID(0), GID(0)
316 </para>
317 <variablelist>
318 <varlistentry>
319 <term>
320 <option>lxc.init.uid</option>
321 </term>
322 <listitem>
323 <para>
324 UID to use for init.
325 </para>
326 </listitem>
327 </varlistentry>
328 <varlistentry>
329 <term>
330 <option>lxc.init.gid</option>
331 </term>
332 <listitem>
333 <para>
334 GID to use for init.
335 </para>
336 </listitem>
337 </varlistentry>
338 </variablelist>
339 </refsect2>
340
341 <refsect2>
342 <title>Proc</title>
343 <para>
344 Configure proc filesystem for the container.
345 </para>
346 <variablelist>
347 <varlistentry>
348 <term>
349 <option>lxc.proc.[proc file name]</option>
350 </term>
351 <listitem>
352 <para>
353 Specify the proc file name to be set. The file names available
354 are those listed under /proc/PID/.
355 Example:
356 </para>
357 <programlisting>
358 lxc.proc.oom_score_adj = 10
359 </programlisting>
360 </listitem>
361 </varlistentry>
362 </variablelist>
363 </refsect2>
364
365 <refsect2>
366 <title>Ephemeral</title>
367 <para>
368 Allows one to specify whether a container will be destroyed on shutdown.
369 </para>
370 <variablelist>
371 <varlistentry>
372 <term>
373 <option>lxc.ephemeral</option>
374 </term>
375 <listitem>
376 <para>
377 The only allowed values are 0 and 1. Set this to 1 to destroy a
378 container on shutdown.
379 </para>
380 </listitem>
381 </varlistentry>
382 </variablelist>
383 </refsect2>
384
385 <refsect2>
386 <title>Network</title>
387 <para>
388 The network section defines how the network is virtualized in
389 the container. The network virtualization acts at layer
390 two. In order to use the network virtualization, parameters
391 must be specified to define the network interfaces of the
392 container. Several virtual interfaces can be assigned and used
393 in a container even if the system has only one physical
394 network interface.
395 </para>
396 <variablelist>
397 <varlistentry>
398 <term>
399 <option>lxc.net</option>
400 </term>
401 <listitem>
402 <para>
403 may be used without a value to clear all previous network options.
404 </para>
405 </listitem>
406 </varlistentry>
407 <varlistentry>
408 <term>
409 <option>lxc.net.[i].type</option>
410 </term>
411 <listitem>
412 <para>
413 specify what kind of network virtualization to be used
414 for the container.
415 Multiple networks can be specified by using an additional index
416 <option>i</option>
417 after all <option>lxc.net.*</option> keys. For example,
418 <option>lxc.net.0.type = veth</option> and
419 <option>lxc.net.1.type = veth</option> specify two different
420 networks of the same type. All keys sharing the same index
421 <option>i</option> will be treated as belonging to the same
422 network. For example, <option>lxc.net.0.link = br0</option>
423 will belong to <option>lxc.net.0.type</option>.
424 Currently, the different virtualization types can be:
425 </para>
426
427 <para>
428 <option>none:</option> will cause the container to share
429 the host's network namespace. This means the host
430 network devices are usable in the container. It also
431 means that if both the container and host have upstart as
432 init, 'halt' in a container (for instance) will shut down the
433 host. Note that unprivileged containers do not work with this
434 setting due to an inability to mount sysfs. An unsafe workaround
435 would be to bind mount the host's sysfs.
436 </para>
437
438 <para>
439 <option>empty:</option> will create only the loopback
440 interface.
441 </para>
442
443 <para>
444 <option>veth:</option> a virtual ethernet pair
445 device is created with one side assigned to the container
446 and the other side on the host.
447 <option>lxc.net.[i].veth.mode</option> specifies the
448 mode the veth parent will use on the host.
449 The accepted modes are <option>bridge</option> and <option>router</option>.
450 The mode defaults to bridge if not specified.
451 In <option>bridge</option> mode the host side is attached to a bridge specified by
452 the <option>lxc.net.[i].link</option> option.
453 If the bridge link is not specified, then the veth pair device
454 will be created but not attached to any bridge.
455 Otherwise, the bridge has to be created on the system
456 before starting the container.
457 <command>lxc</command> won't handle any
458 configuration outside of the container.
459 In <option>router</option> mode static routes are created on the host for the
460 container's IP addresses pointing to the host side veth interface.
461 Additionally Proxy ARP and Proxy NDP entries are added on the host side veth interface
462 for the gateway IPs defined in the container to allow the container to reach the host.
463 By default, <command>lxc</command> chooses a name for the
464 network device belonging to the outside of the
465 container, but if you wish to handle
466 this name yourselves, you can tell <command>lxc</command>
467 to set a specific name with
468 the <option>lxc.net.[i].veth.pair</option> option (except for
469 unprivileged containers where this option is ignored for security
470 reasons).
471
472 Static routes can be added on the host pointing to the container using the
473 <option>lxc.net.[i].veth.ipv4.route</option> and
474 <option>lxc.net.[i].veth.ipv6.route</option> options.
475 Several lines specify several routes.
476 The route is in format x.y.z.t/m, eg. 192.168.1.0/24.
477
478 In <option>bridge</option> mode untagged VLAN membership can be set with the
479 <option>lxc.net.[i].veth.vlan.id</option> option. It accepts a special value of 'none' indicating
480 that the container port should be removed from the bridge's default untagged VLAN.
481 The <option>lxc.net.[i].veth.vlan.tagged.id</option> option can be specified multiple times to set
482 the container's bridge port membership to one or more tagged VLANs.
483 </para>
484
485 <para>
486 <option>vlan:</option> a vlan interface is linked with
487 the interface specified by
488 the <option>lxc.net.[i].link</option> and assigned to
489 the container. The vlan identifier is specified with the
490 option <option>lxc.net.[i].vlan.id</option>.
491 </para>
492
493 <para>
494 <option>macvlan:</option> a macvlan interface is linked
495 with the interface specified by
496 the <option>lxc.net.[i].link</option> and assigned to
497 the container.
498 <option>lxc.net.[i].macvlan.mode</option> specifies the
499 mode the macvlan will use to communicate between
500 different macvlan on the same upper device. The accepted
501 modes are <option>private</option>, <option>vepa</option>,
502 <option>bridge</option> and <option>passthru</option>.
503 In <option>private</option> mode, the device never
504 communicates with any other device on the same upper_dev (default).
505 In <option>vepa</option> mode, the new Virtual Ethernet Port
506 Aggregator (VEPA) mode, it assumes that the adjacent
507 bridge returns all frames where both source and
508 destination are local to the macvlan port, i.e. the
509 bridge is set up as a reflective relay. Broadcast
510 frames coming in from the upper_dev get flooded to all
511 macvlan interfaces in VEPA mode, local frames are not
512 delivered locally. In <option>bridge</option> mode, it
513 provides the behavior of a simple bridge between
514 different macvlan interfaces on the same port. Frames
515 from one interface to another one get delivered directly
516 and are not sent out externally. Broadcast frames get
517 flooded to all other bridge ports and to the external
518 interface, but when they come back from a reflective
519 relay, we don't deliver them again. Since we know all
520 the MAC addresses, the macvlan bridge mode does not
521 require learning or STP like the bridge module does. In
522 <option>passthru</option> mode, all frames received by
523 the physical interface are forwarded to the macvlan
524 interface. Only one macvlan interface in <option>passthru</option>
525 mode is possible for one physical interface.
526 </para>
527
528 <para>
529 <option>ipvlan:</option> an ipvlan interface is linked
530 with the interface specified by
531 the <option>lxc.net.[i].link</option> and assigned to
532 the container.
533 <option>lxc.net.[i].ipvlan.mode</option> specifies the
534 mode the ipvlan will use to communicate between
535 different ipvlan on the same upper device. The accepted
536 modes are <option>l3</option>, <option>l3s</option> and
537 <option>l2</option>. It defaults to <option>l3</option> mode.
538 In <option>l3</option> mode TX processing up to L3 happens on the stack instance
539 attached to the dependent device and packets are switched to the stack instance of the
540 parent device for the L2 processing and routing from that instance will be
541 used before packets are queued on the outbound device. In this mode the dependent devices
542 will not receive nor can send multicast / broadcast traffic.
543 In <option>l3s</option> mode TX processing is very similar to the L3 mode except that
544 iptables (conn-tracking) works in this mode and hence it is L3-symmetric (L3s).
545 This will have slightly less performance but that shouldn't matter since you are
546 choosing this mode over plain-L3 mode to make conn-tracking work.
547 In <option>l2</option> mode TX processing happens on the stack instance attached to
548 the dependent device and packets are switched and queued to the parent device to send devices
549 out. In this mode the dependent devices will RX/TX multicast and broadcast (if applicable) as well.
550 <option>lxc.net.[i].ipvlan.isolation</option> specifies the isolation mode.
551 The accepted isolation values are <option>bridge</option>,
552 <option>private</option> and <option>vepa</option>.
553 It defaults to <option>bridge</option>.
554 In <option>bridge</option> isolation mode dependent devices can cross-talk among themselves
555 apart from talking through the parent device.
556 In <option>private</option> isolation mode the port is set in private mode.
557 i.e. port won't allow cross communication between dependent devices.
558 In <option>vepa</option> isolation mode the port is set in VEPA mode.
559 i.e. port will offload switching functionality to the external entity as
560 described in 802.1Qbg.
561 </para>
562
563 <para>
564 <option>phys:</option> an already existing interface
565 specified by the <option>lxc.net.[i].link</option> is
566 assigned to the container.
567 </para>
568 </listitem>
569 </varlistentry>
570
571 <varlistentry>
572 <term>
573 <option>lxc.net.[i].flags</option>
574 </term>
575 <listitem>
576 <para>
577 Specify an action to do for the network.
578 </para>
579
580 <para><option>up:</option> activates the interface.
581 </para>
582 </listitem>
583 </varlistentry>
584
585 <varlistentry>
586 <term>
587 <option>lxc.net.[i].link</option>
588 </term>
589 <listitem>
590 <para>
591 Specify the interface to be used for real network traffic.
592 </para>
593 </listitem>
594 </varlistentry>
595
596 <varlistentry>
597 <term>
598 <option>lxc.net.[i].l2proxy</option>
599 </term>
600 <listitem>
601 <para>
602 Controls whether layer 2 IP neighbour proxy entries will be added to the
603 lxc.net.[i].link interface for the IP addresses of the container.
604 Can be set to 0 or 1. Defaults to 0.
605 When used with IPv4 addresses, the following sysctl values need to be set:
606 net.ipv4.conf.[link].forwarding=1
607 When used with IPv6 addresses, the following sysctl values need to be set:
608 net.ipv6.conf.[link].proxy_ndp=1
609 net.ipv6.conf.[link].forwarding=1
610 </para>
611 </listitem>
612 </varlistentry>
613
614 <varlistentry>
615 <term>
616 <option>lxc.net.[i].mtu</option>
617 </term>
618 <listitem>
619 <para>
620 Specify the maximum transfer unit for this interface.
621 </para>
622 </listitem>
623 </varlistentry>
624
625 <varlistentry>
626 <term>
627 <option>lxc.net.[i].name</option>
628 </term>
629 <listitem>
630 <para>
631 The interface name is dynamically allocated, but if another name
632 is needed because the configuration files being used by the
633 container use a generic name, eg. eth0, this option will rename
634 the interface in the container.
635 </para>
636 </listitem>
637 </varlistentry>
638
639 <varlistentry>
640 <term>
641 <option>lxc.net.[i].hwaddr</option>
642 </term>
643 <listitem>
644 <para>
645 The interface mac address is dynamically allocated by default to
646 the virtual interface, but in some cases, this is needed to
647 resolve a mac address conflict or to always have the same
648 link-local ipv6 address. Any "x" in address will be replaced by
649 random value, this allows setting hwaddr templates.
650 </para>
651 </listitem>
652 </varlistentry>
653
654 <varlistentry>
655 <term>
656 <option>lxc.net.[i].ipv4.address</option>
657 </term>
658 <listitem>
659 <para>
660 Specify the ipv4 address to assign to the virtualized interface.
661 Several lines specify several ipv4 addresses. The address is in
662 format x.y.z.t/m, eg. 192.168.1.123/24.
663 </para>
664 </listitem>
665 </varlistentry>
666
667 <varlistentry>
668 <term>
669 <option>lxc.net.[i].ipv4.gateway</option>
670 </term>
671 <listitem>
672 <para>
673 Specify the ipv4 address to use as the gateway inside the
674 container. The address is in format x.y.z.t, eg. 192.168.1.123.
675
676 Can also have the special value <option>auto</option>,
677 which means to take the primary address from the bridge
678 interface (as specified by the
679 <option>lxc.net.[i].link</option> option) and use that as
680 the gateway. <option>auto</option> is only available when
681 using the <option>veth</option>,
682 <option>macvlan</option> and <option>ipvlan</option> network types.
683 Can also have the special value of <option>dev</option>,
684 which means to set the default gateway as a device route.
685 This is primarily for use with layer 3 network modes, such as IPVLAN.
686 </para>
687 </listitem>
688 </varlistentry>
689
690 <varlistentry>
691 <term>
692 <option>lxc.net.[i].ipv6.address</option>
693 </term>
694 <listitem>
695 <para>
696 Specify the ipv6 address to assign to the virtualized
697 interface. Several lines specify several ipv6 addresses. The
698 address is in format x::y/m, eg.
699 2003:db8:1:0:214:1234:fe0b:3596/64
700 </para>
701 </listitem>
702 </varlistentry>
703
704 <varlistentry>
705 <term>
706 <option>lxc.net.[i].ipv6.gateway</option>
707 </term>
708 <listitem>
709 <para>
710 Specify the ipv6 address to use as the gateway inside the
711 container. The address is in format x::y, eg. 2003:db8:1:0::1
712
713 Can also have the special value <option>auto</option>,
714 which means to take the primary address from the bridge
715 interface (as specified by the
716 <option>lxc.net.[i].link</option> option) and use that as
717 the gateway. <option>auto</option> is only available when
718 using the <option>veth</option>,
719 <option>macvlan</option> and <option>ipvlan</option> network types.
720 Can also have the special value of <option>dev</option>,
721 which means to set the default gateway as a device route.
722 This is primarily for use with layer 3 network modes, such as IPVLAN.
723 </para>
724 </listitem>
725 </varlistentry>
726
727 <varlistentry>
728 <term>
729 <option>lxc.net.[i].script.up</option>
730 </term>
731 <listitem>
732 <para>
733 Add a configuration option to specify a script to be
734 executed after creating and configuring the network used
735 from the host side.
736 </para>
737
738 <para>
739 In addition to the information available to all hooks. The
740 following information is provided to the script:
741 <itemizedlist>
742 <listitem>
743 <para>
744 LXC_HOOK_TYPE: the hook type. This is either 'up' or 'down'.
745 </para>
746 </listitem>
747
748 <listitem>
749 <para>
750 LXC_HOOK_SECTION: the section type 'net'.
751 </para>
752 </listitem>
753
754 <listitem>
755 <para>
756 LXC_NET_TYPE: the network type. This is one of the valid
757 network types listed here (e.g. 'vlan', 'macvlan', 'ipvlan', 'veth').
758 </para>
759 </listitem>
760
761 <listitem>
762 <para>
763 LXC_NET_PARENT: the parent device on the host. This is only
764 set for network types 'mavclan', 'veth', 'phys'.
765 </para>
766 </listitem>
767
768 <listitem>
769 <para>
770 LXC_NET_PEER: the name of the peer device on the host. This is
771 only set for 'veth' network types. Note that this information
772 is only available when <option>lxc.hook.version</option> is set
773 to 1.
774 </para>
775 </listitem>
776 </itemizedlist>
777
778 Whether this information is provided in the form of environment
779 variables or as arguments to the script depends on the value of
780 <option>lxc.hook.version</option>. If set to 1 then information is
781 provided in the form of environment variables. If set to 0
782 information is provided as arguments to the script.
783 </para>
784
785 <para>
786 Standard output from the script is logged at debug level.
787 Standard error is not logged, but can be captured by the
788 hook redirecting its standard error to standard output.
789 </para>
790 </listitem>
791 </varlistentry>
792
793 <varlistentry>
794 <term>
795 <option>lxc.net.[i].script.down</option>
796 </term>
797 <listitem>
798 <para>
799 Add a configuration option to specify a script to be
800 executed before destroying the network used from the
801 host side.
802 </para>
803
804 <para>
805 In addition to the information available to all hooks. The
806 following information is provided to the script:
807 <itemizedlist>
808 <listitem>
809 <para>
810 LXC_HOOK_TYPE: the hook type. This is either 'up' or 'down'.
811 </para>
812 </listitem>
813
814 <listitem>
815 <para>
816 LXC_HOOK_SECTION: the section type 'net'.
817 </para>
818 </listitem>
819
820 <listitem>
821 <para>
822 LXC_NET_TYPE: the network type. This is one of the valid
823 network types listed here (e.g. 'vlan', 'macvlan', 'ipvlan', 'veth').
824 </para>
825 </listitem>
826
827 <listitem>
828 <para>
829 LXC_NET_PARENT: the parent device on the host. This is only
830 set for network types 'mavclan', 'veth', 'phys'.
831 </para>
832 </listitem>
833
834 <listitem>
835 <para>
836 LXC_NET_PEER: the name of the peer device on the host. This is
837 only set for 'veth' network types. Note that this information
838 is only available when <option>lxc.hook.version</option> is set
839 to 1.
840 </para>
841 </listitem>
842 </itemizedlist>
843
844 Whether this information is provided in the form of environment
845 variables or as arguments to the script depends on the value of
846 <option>lxc.hook.version</option>. If set to 1 then information is
847 provided in the form of environment variables. If set to 0
848 information is provided as arguments to the script.
849 </para>
850
851 <para>
852 Standard output from the script is logged at debug level.
853 Standard error is not logged, but can be captured by the
854 hook redirecting its standard error to standard output.
855 </para>
856 </listitem>
857 </varlistentry>
858 </variablelist>
859 </refsect2>
860
861 <refsect2>
862 <title>New pseudo tty instance (devpts)</title>
863 <para>
864 For stricter isolation the container can have its own private
865 instance of the pseudo tty.
866 </para>
867 <variablelist>
868 <varlistentry>
869 <term>
870 <option>lxc.pty.max</option>
871 </term>
872 <listitem>
873 <para>
874 If set, the container will have a new pseudo tty
875 instance, making this private to it. The value specifies
876 the maximum number of pseudo ttys allowed for a pts
877 instance (this limitation is not implemented yet).
878 </para>
879 </listitem>
880 </varlistentry>
881 </variablelist>
882 </refsect2>
883
884 <refsect2>
885 <title>Container system console</title>
886 <para>
887 If the container is configured with a root filesystem and the
888 inittab file is setup to use the console, you may want to specify
889 where the output of this console goes.
890 </para>
891 <variablelist>
892
893 <varlistentry>
894 <term>
895 <option>lxc.console.buffer.size</option>
896 </term>
897 <listitem>
898 <para>
899 Setting this option instructs liblxc to allocate an in-memory
900 ringbuffer. The container's console output will be written to the
901 ringbuffer. Note that ringbuffer must be at least as big as a
902 standard page size. When passed a value smaller than a single page
903 size liblxc will allocate a ringbuffer of a single page size. A page
904 size is usually 4KB.
905
906 The keyword 'auto' will cause liblxc to allocate a ringbuffer of
907 128KB.
908
909 When manually specifying a size for the ringbuffer the value should
910 be a power of 2 when converted to bytes. Valid size prefixes are
911 'KB', 'MB', 'GB'. (Note that all conversions are based on multiples
912 of 1024. That means 'KB' == 'KiB', 'MB' == 'MiB', 'GB' == 'GiB'.
913 Additionally, the case of the suffix is ignored, i.e. 'kB', 'KB' and
914 'Kb' are treated equally.)
915 </para>
916 </listitem>
917 </varlistentry>
918
919 <varlistentry>
920 <term>
921 <option>lxc.console.size</option>
922 </term>
923 <listitem>
924 <para>
925 Setting this option instructs liblxc to place a limit on the size of
926 the console log file specified in
927 <option>lxc.console.logfile</option>. Note that size of the log file
928 must be at least as big as a standard page size. When passed a value
929 smaller than a single page size liblxc will set the size of log file
930 to a single page size. A page size is usually 4KB.
931
932 The keyword 'auto' will cause liblxc to place a limit of 128KB on
933 the log file.
934
935 When manually specifying a size for the log file the value should
936 be a power of 2 when converted to bytes. Valid size prefixes are
937 'KB', 'MB', 'GB'. (Note that all conversions are based on multiples
938 of 1024. That means 'KB' == 'KiB', 'MB' == 'MiB', 'GB' == 'GiB'.
939 Additionally, the case of the suffix is ignored, i.e. 'kB', 'KB' and
940 'Kb' are treated equally.)
941
942 If users want to mirror the console ringbuffer on disk they should set
943 <option>lxc.console.size</option> equal to
944 <option>lxc.console.buffer.size</option>.
945 </para>
946 </listitem>
947 </varlistentry>
948
949 <varlistentry>
950 <term>
951 <option>lxc.console.logfile</option>
952 </term>
953 <listitem>
954 <para>
955 Specify a path to a file where the console output will be written.
956 Note that in contrast to the on-disk ringbuffer logfile this file
957 will keep growing potentially filling up the users disks if not
958 rotated and deleted. This problem can also be avoided by using the
959 in-memory ringbuffer options
960 <option>lxc.console.buffer.size</option> and
961 <option>lxc.console.buffer.logfile</option>.
962 </para>
963 </listitem>
964 </varlistentry>
965
966 <varlistentry>
967 <term>
968 <option>lxc.console.rotate</option>
969 </term>
970 <listitem>
971 <para>
972 Whether to rotate the console logfile specified in
973 <option>lxc.console.logfile</option>. Users can send an API
974 request to rotate the logfile. Note that the old logfile will have
975 the same name as the original with the suffix ".1" appended.
976
977 Users wishing to prevent the console log file from filling the
978 disk should rotate the logfile and delete it if unneeded. This
979 problem can also be avoided by using the in-memory ringbuffer
980 options <option>lxc.console.buffer.size</option> and
981 <option>lxc.console.buffer.logfile</option>.
982 </para>
983 </listitem>
984 </varlistentry>
985
986 <varlistentry>
987 <term>
988 <option>lxc.console.path</option>
989 </term>
990 <listitem>
991 <para>
992 Specify a path to a device to which the console will be
993 attached. The keyword 'none' will simply disable the
994 console. Note, when specifying 'none' and creating a device node
995 for the console in the container at /dev/console or bind-mounting
996 the hosts's /dev/console into the container at /dev/console the
997 container will have direct access to the hosts's /dev/console.
998 This is dangerous when the container has write access to the
999 device and should thus be used with caution.
1000 </para>
1001 </listitem>
1002 </varlistentry>
1003 </variablelist>
1004 </refsect2>
1005
1006 <refsect2>
1007 <title>Console through the ttys</title>
1008 <para>
1009 This option is useful if the container is configured with a root
1010 filesystem and the inittab file is setup to launch a getty on the
1011 ttys. The option specifies the number of ttys to be available for
1012 the container. The number of gettys in the inittab file of the
1013 container should not be greater than the number of ttys specified
1014 in this option, otherwise the excess getty sessions will die and
1015 respawn indefinitely giving annoying messages on the console or in
1016 <filename>/var/log/messages</filename>.
1017 </para>
1018 <variablelist>
1019 <varlistentry>
1020 <term>
1021 <option>lxc.tty.max</option>
1022 </term>
1023 <listitem>
1024 <para>
1025 Specify the number of tty to make available to the
1026 container.
1027 </para>
1028 </listitem>
1029 </varlistentry>
1030 </variablelist>
1031 </refsect2>
1032
1033 <refsect2>
1034 <title>Console devices location</title>
1035 <para>
1036 LXC consoles are provided through Unix98 PTYs created on the
1037 host and bind-mounted over the expected devices in the container.
1038 By default, they are bind-mounted over <filename>/dev/console</filename>
1039 and <filename>/dev/ttyN</filename>. This can prevent package upgrades
1040 in the guest. Therefore you can specify a directory location (under
1041 <filename>/dev</filename> under which LXC will create the files and
1042 bind-mount over them. These will then be symbolically linked to
1043 <filename>/dev/console</filename> and <filename>/dev/ttyN</filename>.
1044 A package upgrade can then succeed as it is able to remove and replace
1045 the symbolic links.
1046 </para>
1047 <variablelist>
1048 <varlistentry>
1049 <term>
1050 <option>lxc.tty.dir</option>
1051 </term>
1052 <listitem>
1053 <para>
1054 Specify a directory under <filename>/dev</filename>
1055 under which to create the container console devices. Note that LXC
1056 will move any bind-mounts or device nodes for /dev/console into
1057 this directory.
1058 </para>
1059 </listitem>
1060 </varlistentry>
1061 </variablelist>
1062 </refsect2>
1063
1064 <refsect2>
1065 <title>/dev directory</title>
1066 <para>
1067 By default, lxc creates a few symbolic links (fd,stdin,stdout,stderr)
1068 in the container's <filename>/dev</filename> directory but does not
1069 automatically create device node entries. This allows the container's
1070 <filename>/dev</filename> to be set up as needed in the container
1071 rootfs. If lxc.autodev is set to 1, then after mounting the container's
1072 rootfs LXC will mount a fresh tmpfs under <filename>/dev</filename>
1073 (limited to 500K by default, unless defined in lxc.autodev.tmpfs.size)
1074 and fill in a minimal set of initial devices.
1075 This is generally required when starting a container containing
1076 a "systemd" based "init" but may be optional at other times. Additional
1077 devices in the containers /dev directory may be created through the
1078 use of the <option>lxc.hook.autodev</option> hook.
1079 </para>
1080 <variablelist>
1081 <varlistentry>
1082 <term>
1083 <option>lxc.autodev</option>
1084 </term>
1085 <listitem>
1086 <para>
1087 Set this to 0 to stop LXC from mounting and populating a minimal
1088 <filename>/dev</filename> when starting the container.
1089 </para>
1090 </listitem>
1091 </varlistentry>
1092
1093 <varlistentry>
1094 <term>
1095 <option>lxc.autodev.tmpfs.size</option>
1096 </term>
1097 <listitem>
1098 <para>
1099 Set this to define the size of the /dev tmpfs.
1100 The default value is 500000 (500K). If the parameter is used
1101 but without value, the default value is used.
1102 </para>
1103 </listitem>
1104 </varlistentry>
1105 </variablelist>
1106 </refsect2>
1107
1108 <refsect2>
1109 <title>Mount points</title>
1110 <para>
1111 The mount points section specifies the different places to be
1112 mounted. These mount points will be private to the container
1113 and won't be visible by the processes running outside of the
1114 container. This is useful to mount /etc, /var or /home for
1115 examples.
1116 </para>
1117 <para>
1118 NOTE - LXC will generally ensure that mount targets and relative
1119 bind-mount sources are properly confined under the container
1120 root, to avoid attacks involving over-mounting host directories
1121 and files. (Symbolic links in absolute mount sources are ignored)
1122 However, if the container configuration first mounts a directory which
1123 is under the control of the container user, such as /home/joe, into
1124 the container at some <filename>path</filename>, and then mounts
1125 under <filename>path</filename>, then a TOCTTOU attack would be
1126 possible where the container user modifies a symbolic link under
1127 his home directory at just the right time.
1128 </para>
1129 <variablelist>
1130 <varlistentry>
1131 <term>
1132 <option>lxc.mount.fstab</option>
1133 </term>
1134 <listitem>
1135 <para>
1136 specify a file location in
1137 the <filename>fstab</filename> format, containing the
1138 mount information. The mount target location can and in
1139 most cases should be a relative path, which will become
1140 relative to the mounted container root. For instance,
1141 </para>
1142 <programlisting>
1143 proc proc proc nodev,noexec,nosuid 0 0
1144 </programlisting>
1145 <para>
1146 Will mount a proc filesystem under the container's /proc,
1147 regardless of where the root filesystem comes from. This
1148 is resilient to block device backed filesystems as well as
1149 container cloning.
1150 </para>
1151 <para>
1152 Note that when mounting a filesystem from an
1153 image file or block device the third field (fs_vfstype)
1154 cannot be auto as with
1155 <citerefentry>
1156 <refentrytitle>mount</refentrytitle>
1157 <manvolnum>8</manvolnum>
1158 </citerefentry>
1159 but must be explicitly specified.
1160 </para>
1161 </listitem>
1162 </varlistentry>
1163
1164 <varlistentry>
1165 <term>
1166 <option>lxc.mount.entry</option>
1167 </term>
1168 <listitem>
1169 <para>
1170 Specify a mount point corresponding to a line in the
1171 fstab format.
1172
1173 Moreover lxc supports mount propagation, such as rshared or
1174 rprivate, and adds three additional mount options.
1175 <option>optional</option> don't fail if mount does not work.
1176 <option>create=dir</option> or <option>create=file</option>
1177 to create dir (or file) when the point will be mounted.
1178 <option>relative</option> source path is taken to be relative to
1179 the mounted container root. For instance,
1180 </para>
1181 <programlisting>
1182 dev/null proc/kcore none bind,relative 0 0
1183 </programlisting>
1184 <para>
1185 Will expand dev/null to ${<option>LXC_ROOTFS_MOUNT</option>}/dev/null,
1186 and mount it to proc/kcore inside the container.
1187 </para>
1188 </listitem>
1189 </varlistentry>
1190
1191 <varlistentry>
1192 <term>
1193 <option>lxc.mount.auto</option>
1194 </term>
1195 <listitem>
1196 <para>
1197 specify which standard kernel file systems should be
1198 automatically mounted. This may dramatically simplify
1199 the configuration. The file systems are:
1200 </para>
1201 <itemizedlist>
1202 <listitem>
1203 <para>
1204 <option>proc:mixed</option> (or <option>proc</option>):
1205 mount <filename>/proc</filename> as read-write, but
1206 remount <filename>/proc/sys</filename> and
1207 <filename>/proc/sysrq-trigger</filename> read-only
1208 for security / container isolation purposes.
1209 </para>
1210 </listitem>
1211 <listitem>
1212 <para>
1213 <option>proc:rw</option>: mount
1214 <filename>/proc</filename> as read-write
1215 </para>
1216 </listitem>
1217 <listitem>
1218 <para>
1219 <option>sys:mixed</option> (or <option>sys</option>):
1220 mount <filename>/sys</filename> as read-only but with
1221 /sys/devices/virtual/net writable.
1222 </para>
1223 </listitem>
1224 <listitem>
1225 <para>
1226 <option>sys:ro</option>:
1227 mount <filename>/sys</filename> as read-only
1228 for security / container isolation purposes.
1229 </para>
1230 </listitem>
1231 <listitem>
1232 <para>
1233 <option>sys:rw</option>: mount
1234 <filename>/sys</filename> as read-write
1235 </para>
1236 </listitem>
1237
1238 <listitem>
1239 <para>
1240 <option>cgroup:mixed</option>:
1241 Mount a tmpfs to <filename>/sys/fs/cgroup</filename>,
1242 create directories for all hierarchies to which the container
1243 is added, create subdirectories in those hierarchies with the
1244 name of the cgroup, and bind-mount the container's own cgroup
1245 into that directory. The container will be able to write to
1246 its own cgroup directory, but not the parents, since they will
1247 be remounted read-only.
1248 </para>
1249 </listitem>
1250
1251 <listitem>
1252 <para>
1253 <option>cgroup:mixed:force</option>:
1254 The <option>force</option> option will cause LXC to perform
1255 the cgroup mounts for the container under all circumstances.
1256 Otherwise it is similar to <option>cgroup:mixed</option>.
1257 This is mainly useful when the cgroup namespaces are enabled
1258 where LXC will normally leave mounting cgroups to the init
1259 binary of the container since it is perfectly safe to do so.
1260 </para>
1261 </listitem>
1262
1263 <listitem>
1264 <para>
1265 <option>cgroup:ro</option>:
1266 similar to <option>cgroup:mixed</option>, but everything will
1267 be mounted read-only.
1268 </para>
1269 </listitem>
1270
1271 <listitem>
1272 <para>
1273 <option>cgroup:ro:force</option>:
1274 The <option>force</option> option will cause LXC to perform
1275 the cgroup mounts for the container under all circumstances.
1276 Otherwise it is similar to <option>cgroup:ro</option>.
1277 This is mainly useful when the cgroup namespaces are enabled
1278 where LXC will normally leave mounting cgroups to the init
1279 binary of the container since it is perfectly safe to do so.
1280 </para>
1281 </listitem>
1282
1283 <listitem>
1284 <para>
1285 <option>cgroup:rw</option>: similar to
1286 <option>cgroup:mixed</option>, but everything will be mounted
1287 read-write. Note that the paths leading up to the container's
1288 own cgroup will be writable, but will not be a cgroup
1289 filesystem but just part of the tmpfs of
1290 <filename>/sys/fs/cgroup</filename>
1291 </para>
1292 </listitem>
1293
1294 <listitem>
1295 <para>
1296 <option>cgroup:rw:force</option>:
1297 The <option>force</option> option will cause LXC to perform
1298 the cgroup mounts for the container under all circumstances.
1299 Otherwise it is similar to <option>cgroup:rw</option>.
1300 This is mainly useful when the cgroup namespaces are enabled
1301 where LXC will normally leave mounting cgroups to the init
1302 binary of the container since it is perfectly safe to do so.
1303 </para>
1304 </listitem>
1305
1306 <listitem>
1307 <para>
1308 <option>cgroup</option> (without specifier):
1309 defaults to <option>cgroup:rw</option> if the
1310 container retains the CAP_SYS_ADMIN capability,
1311 <option>cgroup:mixed</option> otherwise.
1312 </para>
1313 </listitem>
1314
1315 <listitem>
1316 <para>
1317 <option>cgroup-full:mixed</option>:
1318 mount a tmpfs to <filename>/sys/fs/cgroup</filename>,
1319 create directories for all hierarchies to which
1320 the container is added, bind-mount the hierarchies
1321 from the host to the container and make everything
1322 read-only except the container's own cgroup. Note
1323 that compared to <option>cgroup</option>, where
1324 all paths leading up to the container's own cgroup
1325 are just simple directories in the underlying
1326 tmpfs, here
1327 <filename>/sys/fs/cgroup/$hierarchy</filename>
1328 will contain the host's full cgroup hierarchy,
1329 albeit read-only outside the container's own cgroup.
1330 This may leak quite a bit of information into the
1331 container.
1332 </para>
1333 </listitem>
1334
1335 <listitem>
1336 <para>
1337 <option>cgroup-full:mixed:force</option>:
1338 The <option>force</option> option will cause LXC to perform
1339 the cgroup mounts for the container under all circumstances.
1340 Otherwise it is similar to <option>cgroup-full:mixed</option>.
1341 This is mainly useful when the cgroup namespaces are enabled
1342 where LXC will normally leave mounting cgroups to the init
1343 binary of the container since it is perfectly safe to do so.
1344 </para>
1345 </listitem>
1346
1347 <listitem>
1348 <para>
1349 <option>cgroup-full:ro</option>: similar to
1350 <option>cgroup-full:mixed</option>, but everything
1351 will be mounted read-only.
1352 </para>
1353 </listitem>
1354
1355 <listitem>
1356 <para>
1357 <option>cgroup-full:ro:force</option>:
1358 The <option>force</option> option will cause LXC to perform
1359 the cgroup mounts for the container under all circumstances.
1360 Otherwise it is similar to <option>cgroup-full:ro</option>.
1361 This is mainly useful when the cgroup namespaces are enabled
1362 where LXC will normally leave mounting cgroups to the init
1363 binary of the container since it is perfectly safe to do so.
1364 </para>
1365 </listitem>
1366
1367 <listitem>
1368 <para>
1369 <option>cgroup-full:rw</option>: similar to
1370 <option>cgroup-full:mixed</option>, but everything
1371 will be mounted read-write. Note that in this case,
1372 the container may escape its own cgroup. (Note also
1373 that if the container has CAP_SYS_ADMIN support
1374 and can mount the cgroup filesystem itself, it may
1375 do so anyway.)
1376 </para>
1377 </listitem>
1378
1379 <listitem>
1380 <para>
1381 <option>cgroup-full:rw:force</option>:
1382 The <option>force</option> option will cause LXC to perform
1383 the cgroup mounts for the container under all circumstances.
1384 Otherwise it is similar to <option>cgroup-full:rw</option>.
1385 This is mainly useful when the cgroup namespaces are enabled
1386 where LXC will normally leave mounting cgroups to the init
1387 binary of the container since it is perfectly safe to do so.
1388 </para>
1389 </listitem>
1390
1391 <listitem>
1392 <para>
1393 <option>cgroup-full</option> (without specifier):
1394 defaults to <option>cgroup-full:rw</option> if the
1395 container retains the CAP_SYS_ADMIN capability,
1396 <option>cgroup-full:mixed</option> otherwise.
1397 </para>
1398 </listitem>
1399
1400 </itemizedlist>
1401 <para>
1402 If cgroup namespaces are enabled, then any <option>cgroup</option>
1403 auto-mounting request will be ignored, since the container can
1404 mount the filesystems itself, and automounting can confuse the
1405 container init.
1406 </para>
1407 <para>
1408 Note that if automatic mounting of the cgroup filesystem
1409 is enabled, the tmpfs under
1410 <filename>/sys/fs/cgroup</filename> will always be
1411 mounted read-write (but for the <option>:mixed</option>
1412 and <option>:ro</option> cases, the individual
1413 hierarchies,
1414 <filename>/sys/fs/cgroup/$hierarchy</filename>, will be
1415 read-only). This is in order to work around a quirk in
1416 Ubuntu's
1417 <citerefentry>
1418 <refentrytitle>mountall</refentrytitle>
1419 <manvolnum>8</manvolnum>
1420 </citerefentry>
1421 command that will cause containers to wait for user
1422 input at boot if
1423 <filename>/sys/fs/cgroup</filename> is mounted read-only
1424 and the container can't remount it read-write due to a
1425 lack of CAP_SYS_ADMIN.
1426 </para>
1427 <para>
1428 Examples:
1429 </para>
1430 <programlisting>
1431 lxc.mount.auto = proc sys cgroup
1432 lxc.mount.auto = proc:rw sys:rw cgroup-full:rw
1433 </programlisting>
1434 </listitem>
1435 </varlistentry>
1436
1437 </variablelist>
1438 </refsect2>
1439
1440 <refsect2>
1441 <title>Root file system</title>
1442 <para>
1443 The root file system of the container can be different than that
1444 of the host system.
1445 </para>
1446 <variablelist>
1447 <varlistentry>
1448 <term>
1449 <option>lxc.rootfs.path</option>
1450 </term>
1451 <listitem>
1452 <para>
1453 specify the root file system for the container. It can
1454 be an image file, a directory or a block device. If not
1455 specified, the container shares its root file system
1456 with the host.
1457 </para>
1458 <para>
1459 For directory or simple block-device backed containers,
1460 a pathname can be used. If the rootfs is backed by a nbd
1461 device, then <filename>nbd:file:1</filename> specifies that
1462 <filename>file</filename> should be attached to a nbd device,
1463 and partition 1 should be mounted as the rootfs.
1464 <filename>nbd:file</filename> specifies that the nbd device
1465 itself should be mounted. <filename>overlayfs:/lower:/upper</filename>
1466 specifies that the rootfs should be an overlay with <filename>/upper</filename>
1467 being mounted read-write over a read-only mount of <filename>/lower</filename>.
1468 For <filename>overlay</filename> multiple <filename>/lower</filename>
1469 directories can be specified. <filename>loop:/file</filename> tells lxc to attach
1470 <filename>/file</filename> to a loop device and mount the loop device.
1471 </para>
1472 </listitem>
1473 </varlistentry>
1474
1475 <varlistentry>
1476 <term>
1477 <option>lxc.rootfs.mount</option>
1478 </term>
1479 <listitem>
1480 <para>
1481 where to recursively bind <option>lxc.rootfs.path</option>
1482 before pivoting. This is to ensure success of the
1483 <citerefentry>
1484 <refentrytitle><command>pivot_root</command></refentrytitle>
1485 <manvolnum>8</manvolnum>
1486 </citerefentry>
1487 syscall. Any directory suffices, the default should
1488 generally work.
1489 </para>
1490 </listitem>
1491 </varlistentry>
1492
1493 <varlistentry>
1494 <term>
1495 <option>lxc.rootfs.options</option>
1496 </term>
1497 <listitem>
1498 <para>
1499 extra mount options to use when mounting the rootfs.
1500 </para>
1501 </listitem>
1502 </varlistentry>
1503
1504 <varlistentry>
1505 <term>
1506 <option>lxc.rootfs.managed</option>
1507 </term>
1508 <listitem>
1509 <para>
1510 Set this to 0 to indicate that LXC is not managing the
1511 container storage, then LXC will not modify the
1512 container storage. The default is 1.
1513 </para>
1514 </listitem>
1515 </varlistentry>
1516
1517 </variablelist>
1518 </refsect2>
1519
1520 <refsect2>
1521 <title>Control group</title>
1522 <para>
1523 The control group section contains the configuration for the
1524 different subsystem. <command>lxc</command> does not check the
1525 correctness of the subsystem name. This has the disadvantage
1526 of not detecting configuration errors until the container is
1527 started, but has the advantage of permitting any future
1528 subsystem.
1529 </para>
1530 <variablelist>
1531 <varlistentry>
1532 <term>
1533 <option>lxc.cgroup.[controller name]</option>
1534 </term>
1535 <listitem>
1536 <para>
1537 Specify the control group value to be set on a legacy cgroup
1538 hierarchy. The controller name is the literal name of the control
1539 group. The permitted names and the syntax of their values is not
1540 dictated by LXC, instead it depends on the features of the Linux
1541 kernel running at the time the container is started, eg.
1542 <option>lxc.cgroup.cpuset.cpus</option>
1543 </para>
1544 </listitem>
1545 </varlistentry>
1546 <varlistentry>
1547 <term>
1548 <option>lxc.cgroup2.[controller name]</option>
1549 </term>
1550 <listitem>
1551 <para>
1552 Specify the control group value to be set on the unified cgroup
1553 hierarchy. The controller name is the literal name of the control
1554 group. The permitted names and the syntax of their values is not
1555 dictated by LXC, instead it depends on the features of the Linux
1556 kernel running at the time the container is started, eg.
1557 <option>lxc.cgroup2.memory.high</option>
1558 </para>
1559 </listitem>
1560 </varlistentry>
1561 <varlistentry>
1562 <term>
1563 <option>lxc.cgroup.dir</option>
1564 </term>
1565 <listitem>
1566 <para>
1567 specify a directory or path in which the container's cgroup will
1568 be created. For example, setting
1569 <option>lxc.cgroup.dir = my-cgroup/first</option> for a container
1570 named "c1" will create the container's cgroup as a sub-cgroup of
1571 "my-cgroup". For example, if the user's current cgroup "my-user"
1572 is located in the root cgroup of the cpuset controller in a
1573 cgroup v1 hierarchy this would create the cgroup
1574 "/sys/fs/cgroup/cpuset/my-user/my-cgroup/first/c1" for the
1575 container. Any missing cgroups will be created by LXC. This
1576 presupposes that the user has write access to its current cgroup.
1577 </para>
1578 </listitem>
1579 </varlistentry>
1580 <varlistentry>
1581 <term>
1582 <option>lxc.cgroup.dir.container</option>
1583 </term>
1584 <listitem>
1585 <para>
1586 This is similar to <option>lxc.cgroup.dir</option>, but must be
1587 used together with <option>lxc.cgroup.dir.monitor</option> and
1588 affects only the container's cgroup path. This option is mutually
1589 exclusive with <option>lxc.cgroup.dir</option>.
1590 Note that the final path the container attaches to may be
1591 extended further by the
1592 <option>lxc.cgroup.dir.container.inner</option> option.
1593 </para>
1594 </listitem>
1595 </varlistentry>
1596 <varlistentry>
1597 <term>
1598 <option>lxc.cgroup.dir.monitor</option>
1599 </term>
1600 <listitem>
1601 <para>
1602 This is the monitor process counterpart to
1603 <option>lxc.cgroup.dir.container</option>.
1604 </para>
1605 </listitem>
1606 </varlistentry>
1607 <varlistentry>
1608 <term>
1609 <option>lxc.cgroup.dir.container.inner</option>
1610 </term>
1611 <listitem>
1612 <para>
1613 Specify an additional subdirectory where the cgroup namespace
1614 will be created. With this option, the cgroup limits will be
1615 applied to the outer path specified in
1616 <option>lxc.cgroup.dir.container</option>, which is not accessible
1617 from within the container, making it possible to better enforce
1618 limits for privileged containers in a way they cannot override
1619 them.
1620 This only works in conjunction with the
1621 <option>lxc.cgroup.dir.container</option> and
1622 <option>lxc.cgroup.dir.monitor</option> options and has otherwise
1623 no effect.
1624 </para>
1625 </listitem>
1626 </varlistentry>
1627 <varlistentry>
1628 <term>
1629 <option>lxc.cgroup.relative</option>
1630 </term>
1631 <listitem>
1632 <para>
1633 Set this to 1 to instruct LXC to never escape to the
1634 root cgroup. This makes it easy for users to adhere to
1635 restrictions enforced by cgroup2 and
1636 systemd. Specifically, this makes it possible to run LXC
1637 containers as systemd services.
1638 </para>
1639 </listitem>
1640 </varlistentry>
1641 </variablelist>
1642 </refsect2>
1643
1644 <refsect2>
1645 <title>Capabilities</title>
1646 <para>
1647 The capabilities can be dropped in the container if this one
1648 is run as root.
1649 </para>
1650 <variablelist>
1651 <varlistentry>
1652 <term>
1653 <option>lxc.cap.drop</option>
1654 </term>
1655 <listitem>
1656 <para>
1657 Specify the capability to be dropped in the container. A
1658 single line defining several capabilities with a space
1659 separation is allowed. The format is the lower case of
1660 the capability definition without the "CAP_" prefix,
1661 eg. CAP_SYS_MODULE should be specified as
1662 sys_module. See
1663 <citerefentry>
1664 <refentrytitle><command>capabilities</command></refentrytitle>
1665 <manvolnum>7</manvolnum>
1666 </citerefentry>.
1667 If used with no value, lxc will clear any drop capabilities
1668 specified up to this point.
1669 </para>
1670 </listitem>
1671 </varlistentry>
1672 <varlistentry>
1673 <term>
1674 <option>lxc.cap.keep</option>
1675 </term>
1676 <listitem>
1677 <para>
1678 Specify the capability to be kept in the container. All other
1679 capabilities will be dropped. When a special value of "none" is
1680 encountered, lxc will clear any keep capabilities specified up
1681 to this point. A value of "none" alone can be used to drop all
1682 capabilities.
1683 </para>
1684 </listitem>
1685 </varlistentry>
1686 </variablelist>
1687 </refsect2>
1688
1689 <refsect2>
1690 <title>Namespaces</title>
1691 <para>
1692 A namespace can be cloned (<option>lxc.namespace.clone</option>),
1693 kept (<option>lxc.namespace.keep</option>) or shared
1694 (<option>lxc.namespace.share.[namespace identifier]</option>).
1695 </para>
1696 <variablelist>
1697 <varlistentry>
1698 <term>
1699 <option>lxc.namespace.clone</option>
1700 </term>
1701 <listitem>
1702 <para>
1703 Specify namespaces which the container is supposed to be created
1704 with. The namespaces to create are specified as a space separated
1705 list. Each namespace must correspond to one of the standard
1706 namespace identifiers as seen in the
1707 <filename>/proc/PID/ns</filename> directory.
1708 When <option>lxc.namespace.clone</option> is not explicitly set all
1709 namespaces supported by the kernel and the current configuration
1710 will be used.
1711 </para>
1712
1713 <para>
1714 To create a new mount, net and ipc namespace set
1715 <option>lxc.namespace.clone=mount net ipc</option>.
1716 </para>
1717 </listitem>
1718 </varlistentry>
1719
1720 <varlistentry>
1721 <term>
1722 <option>lxc.namespace.keep</option>
1723 </term>
1724 <listitem>
1725 <para>
1726 Specify namespaces which the container is supposed to inherit from
1727 the process that created it. The namespaces to keep are specified as
1728 a space separated list. Each namespace must correspond to one of the
1729 standard namespace identifiers as seen in the
1730 <filename>/proc/PID/ns</filename> directory.
1731 The <option>lxc.namespace.keep</option> is a
1732 blacklist option, i.e. it is useful when enforcing that containers
1733 must keep a specific set of namespaces.
1734 </para>
1735
1736 <para>
1737 To keep the network, user and ipc namespace set
1738 <option>lxc.namespace.keep=user net ipc</option>.
1739 </para>
1740
1741 <para>
1742 Note that sharing pid namespaces will likely not work with most init
1743 systems.
1744 </para>
1745
1746 <para>
1747 Note that if the container requests a new user namespace and the
1748 container wants to inherit the network namespace it needs to inherit
1749 the user namespace as well.
1750 </para>
1751 </listitem>
1752 </varlistentry>
1753
1754 <varlistentry>
1755 <term>
1756 <option>lxc.namespace.share.[namespace identifier]</option>
1757 </term>
1758 <listitem>
1759 <para>
1760 Specify a namespace to inherit from another container or process.
1761 The <option>[namespace identifier]</option> suffix needs to be
1762 replaced with one of the namespaces that appear in the
1763 <filename>/proc/PID/ns</filename> directory.
1764 </para>
1765
1766 <para>
1767 To inherit the namespace from another process set the
1768 <option>lxc.namespace.share.[namespace identifier]</option> to the PID of
1769 the process, e.g. <option>lxc.namespace.share.net=42</option>.
1770 </para>
1771
1772 <para>
1773 To inherit the namespace from another container set the
1774 <option>lxc.namespace.share.[namespace identifier]</option> to the name of
1775 the container, e.g. <option>lxc.namespace.share.pid=c3</option>.
1776 </para>
1777
1778 <para>
1779 To inherit the namespace from another container located in a
1780 different path than the standard liblxc path set the
1781 <option>lxc.namespace.share.[namespace identifier]</option> to the full
1782 path to the container, e.g.
1783 <option>lxc.namespace.share.user=/opt/c3</option>.
1784 </para>
1785
1786 <para>
1787 In order to inherit namespaces the caller needs to have sufficient
1788 privilege over the process or container.
1789 </para>
1790
1791 <para>
1792 Note that sharing pid namespaces between system containers will
1793 likely not work with most init systems.
1794 </para>
1795
1796 <para>
1797 Note that if two processes are in different user namespaces and one
1798 process wants to inherit the other's network namespace it usually
1799 needs to inherit the user namespace as well.
1800 </para>
1801
1802 <para>
1803 Note that without careful additional configuration of an LSM,
1804 sharing user+pid namespaces with a task may allow that task to
1805 escalate privileges to that of the task calling liblxc.
1806 </para>
1807 </listitem>
1808 </varlistentry>
1809 </variablelist>
1810 </refsect2>
1811
1812 <refsect2>
1813 <title>Resource limits</title>
1814 <para>
1815 The soft and hard resource limits for the container can be changed.
1816 Unprivileged containers can only lower them. Resources which are not
1817 explicitly specified will be inherited.
1818 </para>
1819 <variablelist>
1820 <varlistentry>
1821 <term>
1822 <option>lxc.prlimit.[limit name]</option>
1823 </term>
1824 <listitem>
1825 <para>
1826 Specify the resource limit to be set. A limit is specified as two
1827 colon separated values which are either numeric or the word
1828 'unlimited'. A single value can be used as a shortcut to set both
1829 soft and hard limit to the same value. The permitted names the
1830 "RLIMIT_" resource names in lowercase without the "RLIMIT_"
1831 prefix, eg. RLIMIT_NOFILE should be specified as "nofile". See
1832 <citerefentry>
1833 <refentrytitle><command>setrlimit</command></refentrytitle>
1834 <manvolnum>2</manvolnum>
1835 </citerefentry>.
1836 If used with no value, lxc will clear the resource limit
1837 specified up to this point. A resource with no explicitly
1838 configured limitation will be inherited from the process starting
1839 up the container.
1840 </para>
1841 </listitem>
1842 </varlistentry>
1843 </variablelist>
1844 </refsect2>
1845
1846 <refsect2>
1847 <title>Sysctl</title>
1848 <para>
1849 Configure kernel parameters for the container.
1850 </para>
1851 <variablelist>
1852 <varlistentry>
1853 <term>
1854 <option>lxc.sysctl.[kernel parameters name]</option>
1855 </term>
1856 <listitem>
1857 <para>
1858 Specify the kernel parameters to be set. The parameters available
1859 are those listed under /proc/sys/.
1860 Note that not all sysctls are namespaced. Changing Non-namespaced
1861 sysctls will cause the system-wide setting to be modified.
1862 <citerefentry>
1863 <refentrytitle><command>sysctl</command></refentrytitle>
1864 <manvolnum>8</manvolnum>
1865 </citerefentry>.
1866 If used with no value, lxc will clear the parameters specified up
1867 to this point.
1868 </para>
1869 </listitem>
1870 </varlistentry>
1871 </variablelist>
1872 </refsect2>
1873
1874 <refsect2>
1875 <title>Apparmor profile</title>
1876 <para>
1877 If lxc was compiled and installed with apparmor support, and the host
1878 system has apparmor enabled, then the apparmor profile under which the
1879 container should be run can be specified in the container
1880 configuration. The default is <command>lxc-container-default-cgns</command>
1881 if the host kernel is cgroup namespace aware, or
1882 <command>lxc-container-default</command> otherwise.
1883 </para>
1884 <variablelist>
1885 <varlistentry>
1886 <term>
1887 <option>lxc.apparmor.profile</option>
1888 </term>
1889 <listitem>
1890 <para>
1891 Specify the apparmor profile under which the container should
1892 be run. To specify that the container should be unconfined,
1893 use
1894 </para>
1895 <programlisting>lxc.apparmor.profile = unconfined</programlisting>
1896 <para>
1897 If the apparmor profile should remain unchanged (i.e. if you
1898 are nesting containers and are already confined), then use
1899 </para>
1900 <programlisting>lxc.apparmor.profile = unchanged</programlisting>
1901 <para>
1902 If you instruct LXC to generate the apparmor profile,
1903 then use
1904 </para>
1905 <programlisting>lxc.apparmor.profile = generated</programlisting>
1906 </listitem>
1907 </varlistentry>
1908 <varlistentry>
1909 <term>
1910 <option>lxc.apparmor.allow_incomplete</option>
1911 </term>
1912 <listitem>
1913 <para>
1914 Apparmor profiles are pathname based. Therefore many file
1915 restrictions require mount restrictions to be effective against
1916 a determined attacker. However, these mount restrictions are not
1917 yet implemented in the upstream kernel. Without the mount
1918 restrictions, the apparmor profiles still protect against accidental
1919 damager.
1920 </para>
1921 <para>
1922 If this flag is 0 (default), then the container will not be
1923 started if the kernel lacks the apparmor mount features, so that a
1924 regression after a kernel upgrade will be detected. To start the
1925 container under partial apparmor protection, set this flag to 1.
1926 </para>
1927 </listitem>
1928 </varlistentry>
1929
1930 <varlistentry>
1931 <term>
1932 <option>lxc.apparmor.allow_nesting</option>
1933 </term>
1934 <listitem>
1935 <para>
1936 If set this to 1, causes the following changes. When
1937 generated apparmor profiles are used, they will contain
1938 the necessary changes to allow creating a nested
1939 container. In addition to the usual mount points,
1940 <filename>/dev/.lxc/proc</filename>
1941 and <filename>/dev/.lxc/sys</filename> will contain
1942 procfs and sysfs mount points without the lxcfs
1943 overlays, which, if generated apparmor profiles are
1944 being used, will not be read/writable directly.
1945 </para>
1946 </listitem>
1947 </varlistentry>
1948
1949 <varlistentry>
1950 <term>
1951 <option>lxc.apparmor.raw</option>
1952 </term>
1953 <listitem>
1954 <para>
1955 A list of raw AppArmor profile lines to append to the
1956 profile. Only valid when using generated profiles.
1957 </para>
1958 </listitem>
1959 </varlistentry>
1960
1961 </variablelist>
1962 </refsect2>
1963
1964 <refsect2>
1965 <title>SELinux context</title>
1966 <para>
1967 If lxc was compiled and installed with SELinux support, and the host
1968 system has SELinux enabled, then the SELinux context under which the
1969 container should be run can be specified in the container
1970 configuration. The default is <command>unconfined_t</command>,
1971 which means that lxc will not attempt to change contexts.
1972 See @DATADIR@/lxc/selinux/lxc.te for an example policy and more
1973 information.
1974 </para>
1975 <variablelist>
1976 <varlistentry>
1977 <term>
1978 <option>lxc.selinux.context</option>
1979 </term>
1980 <listitem>
1981 <para>
1982 Specify the SELinux context under which the container should
1983 be run or <command>unconfined_t</command>. For example
1984 </para>
1985 <programlisting>lxc.selinux.context = system_u:system_r:lxc_t:s0:c22</programlisting>
1986 </listitem>
1987 </varlistentry>
1988 <varlistentry>
1989 <term>
1990 <option>lxc.selinux.context.keyring</option>
1991 </term>
1992 <listitem>
1993 <para>
1994 Specify the SELinux context under which the container's keyring
1995 should be created. By default this the same as lxc.selinux.context, or
1996 the context lxc is executed under if lxc.selinux.context has not been set.
1997 </para>
1998 <programlisting>lxc.selinux.context.keyring = system_u:system_r:lxc_t:s0:c22</programlisting>
1999 </listitem>
2000 </varlistentry>
2001 </variablelist>
2002 </refsect2>
2003
2004 <refsect2>
2005 <title>Kernel Keyring</title>
2006 <para>
2007 The Linux Keyring facility is primarily a way for various
2008 kernel components to retain or cache security data, authentication
2009 keys, encryption keys, and other data in the kernel. By default lxc
2010 will create a new session keyring for the started application.
2011 </para>
2012 <variablelist>
2013 <varlistentry>
2014 <term>
2015 <option>lxc.keyring.session</option>
2016 </term>
2017 <listitem>
2018 <para>
2019 Disable the creation of new session keyring by lxc. The started
2020 application will then inherit the current session keyring.
2021 By default, or when passing the value 1, a new keyring will be created.
2022 </para>
2023 <programlisting>lxc.keyring.session = 0</programlisting>
2024 </listitem>
2025 </varlistentry>
2026 </variablelist>
2027 </refsect2>
2028
2029 <refsect2>
2030 <title>Seccomp configuration</title>
2031 <para>
2032 A container can be started with a reduced set of available
2033 system calls by loading a seccomp profile at startup. The
2034 seccomp configuration file must begin with a version number
2035 on the first line, a policy type on the second line, followed
2036 by the configuration.
2037 </para>
2038 <para>
2039 Versions 1 and 2 are currently supported. In version 1, the
2040 policy is a simple whitelist. The second line therefore must
2041 read "whitelist", with the rest of the file containing one (numeric)
2042 syscall number per line. Each syscall number is whitelisted,
2043 while every unlisted number is blacklisted for use in the container
2044 </para>
2045
2046 <para>
2047 In version 2, the policy may be blacklist or whitelist,
2048 supports per-rule and per-policy default actions, and supports
2049 per-architecture system call resolution from textual names.
2050 </para>
2051 <para>
2052 An example blacklist policy, in which all system calls are
2053 allowed except for mknod, which will simply do nothing and
2054 return 0 (success), looks like:
2055 </para>
2056
2057 <programlisting>
2058 2
2059 blacklist
2060 mknod errno 0
2061 ioctl notify
2062 </programlisting>
2063
2064 <para>
2065 Specifying "errno" as action will cause LXC to register a seccomp filter
2066 that will cause a specific errno to be returned to the caller. The errno
2067 value can be specified after the "errno" action word.
2068 </para>
2069
2070 <para>
2071 Specifying "notify" as action will cause LXC to register a seccomp
2072 listener and retrieve a listener file descriptor from the kernel. When a
2073 syscall is made that is registered as "notify" the kernel will generate a
2074 poll event and send a message over the file descriptor. The caller can
2075 read this message, inspect the syscalls including its arguments. Based on
2076 this information the caller is expected to send back a message informing
2077 the kernel which action to take. Until that message is sent the kernel
2078 will block the calling process. The format of the messages to read and
2079 sent is documented in seccomp itself.
2080 </para>
2081
2082 <variablelist>
2083 <varlistentry>
2084 <term>
2085 <option>lxc.seccomp.profile</option>
2086 </term>
2087 <listitem>
2088 <para>
2089 Specify a file containing the seccomp configuration to
2090 load before the container starts.
2091 </para>
2092 </listitem>
2093 </varlistentry>
2094 <varlistentry>
2095 <term>
2096 <option>lxc.seccomp.allow_nesting</option>
2097 </term>
2098 <listitem>
2099 <para>
2100 If this flag is set to 1, then seccomp filters will be stacked
2101 regardless of whether a seccomp profile is already loaded.
2102 This allows nested containers to load their own seccomp profile.
2103 The default setting is 0.
2104 </para>
2105 </listitem>
2106 </varlistentry>
2107 <varlistentry>
2108 <term>
2109 <option>lxc.seccomp.notify.proxy</option>
2110 </term>
2111 <listitem>
2112 <para>
2113 Specify a unix socket to which LXC will connect and forward
2114 seccomp events to. The path must be in the form
2115 unix:/path/to/socket or unix:@socket. The former specifies a
2116 path-bound unix domain socket while the latter specifies an
2117 abstract unix domain socket.
2118 </para>
2119 </listitem>
2120 </varlistentry>
2121 <varlistentry>
2122 <term>
2123 <option>lxc.seccomp.notify.cookie</option>
2124 </term>
2125 <listitem>
2126 <para>
2127 An additional string sent along with proxied seccomp notification
2128 requests.
2129 </para>
2130 </listitem>
2131 </varlistentry>
2132 </variablelist>
2133 </refsect2>
2134
2135 <refsect2>
2136 <title>PR_SET_NO_NEW_PRIVS</title>
2137 <para>
2138 With PR_SET_NO_NEW_PRIVS active execve() promises not to grant
2139 privileges to do anything that could not have been done without
2140 the execve() call (for example, rendering the set-user-ID and
2141 set-group-ID mode bits, and file capabilities non-functional).
2142 Once set, this bit cannot be unset. The setting of this bit is
2143 inherited by children created by fork() and clone(), and preserved
2144 across execve().
2145 Note that PR_SET_NO_NEW_PRIVS is applied after the container has
2146 changed into its intended AppArmor profile or SElinux context.
2147 </para>
2148 <variablelist>
2149 <varlistentry>
2150 <term>
2151 <option>lxc.no_new_privs</option>
2152 </term>
2153 <listitem>
2154 <para>
2155 Specify whether the PR_SET_NO_NEW_PRIVS flag should be set for the
2156 container. Set to 1 to activate.
2157 </para>
2158 </listitem>
2159 </varlistentry>
2160 </variablelist>
2161 </refsect2>
2162
2163 <refsect2>
2164 <title>UID mappings</title>
2165 <para>
2166 A container can be started in a private user namespace with
2167 user and group id mappings. For instance, you can map userid
2168 0 in the container to userid 200000 on the host. The root
2169 user in the container will be privileged in the container,
2170 but unprivileged on the host. Normally a system container
2171 will want a range of ids, so you would map, for instance,
2172 user and group ids 0 through 20,000 in the container to the
2173 ids 200,000 through 220,000.
2174 </para>
2175 <variablelist>
2176 <varlistentry>
2177 <term>
2178 <option>lxc.idmap</option>
2179 </term>
2180 <listitem>
2181 <para>
2182 Four values must be provided. First a character, either
2183 'u', or 'g', to specify whether user or group ids are
2184 being mapped. Next is the first userid as seen in the
2185 user namespace of the container. Next is the userid as
2186 seen on the host. Finally, a range indicating the number
2187 of consecutive ids to map.
2188 </para>
2189 </listitem>
2190 </varlistentry>
2191 </variablelist>
2192 </refsect2>
2193
2194 <refsect2>
2195 <title>Container hooks</title>
2196 <para>
2197 Container hooks are programs or scripts which can be executed
2198 at various times in a container's lifetime.
2199 </para>
2200 <para>
2201 When a container hook is executed, additional information is passed
2202 along. The <option>lxc.hook.version</option> argument can be used to
2203 determine if the following arguments are passed as command line
2204 arguments or through environment variables. The arguments are:
2205 <itemizedlist>
2206 <listitem><para> Container name. </para></listitem>
2207 <listitem><para> Section (always 'lxc'). </para></listitem>
2208 <listitem><para> The hook type (i.e. 'clone' or 'pre-mount'). </para></listitem>
2209 <listitem><para> Additional arguments. In the
2210 case of the clone hook, any extra arguments passed will appear as
2211 further arguments to the hook. In the case of the stop hook, paths to
2212 filedescriptors for each of the container's namespaces along with
2213 their types are passed. </para></listitem>
2214 </itemizedlist>
2215 The following environment variables are set:
2216 <itemizedlist>
2217 <listitem><para> LXC_CGNS_AWARE: indicator whether the container is
2218 cgroup namespace aware. </para></listitem>
2219 <listitem><para> LXC_CONFIG_FILE: the path to the container
2220 configuration file. </para></listitem>
2221 <listitem><para> LXC_HOOK_TYPE: the hook type (e.g. 'clone', 'mount',
2222 'pre-mount'). Note that the existence of this environment variable is
2223 conditional on the value of <option>lxc.hook.version</option>. If it
2224 is set to 1 then LXC_HOOK_TYPE will be set.
2225 </para></listitem>
2226 <listitem><para> LXC_HOOK_SECTION: the section type (e.g. 'lxc',
2227 'net'). Note that the existence of this environment variable is
2228 conditional on the value of <option>lxc.hook.version</option>. If it
2229 is set to 1 then LXC_HOOK_SECTION will be set.
2230 </para></listitem>
2231 <listitem><para> LXC_HOOK_VERSION: the version of the hooks. This
2232 value is identical to the value of the container's
2233 <option>lxc.hook.version</option> config item. If it is set to 0 then
2234 old-style hooks are used. If it is set to 1 then new-style hooks are
2235 used. </para></listitem>
2236 <listitem><para> LXC_LOG_LEVEL: the container's log level. </para></listitem>
2237 <listitem><para> LXC_NAME: is the container's name. </para></listitem>
2238 <listitem><para> LXC_[NAMESPACE IDENTIFIER]_NS: path under
2239 /proc/PID/fd/ to a file descriptor referring to the container's
2240 namespace. For each preserved namespace type there will be a separate
2241 environment variable. These environment variables will only be set if
2242 <option>lxc.hook.version</option> is set to 1. </para></listitem>
2243 <listitem><para> LXC_ROOTFS_MOUNT: the path to the mounted root filesystem. </para></listitem>
2244 <listitem><para> LXC_ROOTFS_PATH: this is the lxc.rootfs.path entry
2245 for the container. Note this is likely not where the mounted rootfs is
2246 to be found, use LXC_ROOTFS_MOUNT for that. </para></listitem>
2247 <listitem><para> LXC_SRC_NAME: in the case of the clone hook, this is
2248 the original container's name. </para></listitem>
2249 </itemizedlist>
2250 </para>
2251 <para>
2252 Standard output from the hooks is logged at debug level.
2253 Standard error is not logged, but can be captured by the
2254 hook redirecting its standard error to standard output.
2255 </para>
2256 <variablelist>
2257 <varlistentry>
2258 <term>
2259 <option>lxc.hook.version</option>
2260 </term>
2261 <listitem>
2262 <para>
2263 To pass the arguments in new style via environment variables set to
2264 1 otherwise set to 0 to pass them as arguments.
2265 This setting affects all hooks arguments that were traditionally
2266 passed as arguments to the script. Specifically, it affects the
2267 container name, section (e.g. 'lxc', 'net') and hook type (e.g.
2268 'clone', 'mount', 'pre-mount') arguments. If new-style hooks are
2269 used then the arguments will be available as environment variables.
2270 The container name will be set in LXC_NAME. (This is set
2271 independently of the value used for this config item.) The section
2272 will be set in LXC_HOOK_SECTION and the hook type will be set in
2273 LXC_HOOK_TYPE.
2274 It also affects how the paths to file descriptors referring to the
2275 container's namespaces are passed. If set to 1 then for each
2276 namespace a separate environment variable LXC_[NAMESPACE
2277 IDENTIFIER]_NS will be set. If set to 0 then the paths will be
2278 passed as arguments to the stop hook.
2279 </para>
2280 </listitem>
2281 </varlistentry>
2282 </variablelist>
2283 <variablelist>
2284 <varlistentry>
2285 <term>
2286 <option>lxc.hook.pre-start</option>
2287 </term>
2288 <listitem>
2289 <para>
2290 A hook to be run in the host's namespace before the
2291 container ttys, consoles, or mounts are up.
2292 </para>
2293 </listitem>
2294 </varlistentry>
2295 </variablelist>
2296 <variablelist>
2297 <varlistentry>
2298 <term>
2299 <option>lxc.hook.pre-mount</option>
2300 </term>
2301 <listitem>
2302 <para>
2303 A hook to be run in the container's fs namespace but before
2304 the rootfs has been set up. This allows for manipulation
2305 of the rootfs, i.e. to mount an encrypted filesystem. Mounts
2306 done in this hook will not be reflected on the host (apart from
2307 mounts propagation), so they will be automatically cleaned up
2308 when the container shuts down.
2309 </para>
2310 </listitem>
2311 </varlistentry>
2312 </variablelist>
2313 <variablelist>
2314 <varlistentry>
2315 <term>
2316 <option>lxc.hook.mount</option>
2317 </term>
2318 <listitem>
2319 <para>
2320 A hook to be run in the container's namespace after
2321 mounting has been done, but before the pivot_root.
2322 </para>
2323 </listitem>
2324 </varlistentry>
2325 </variablelist>
2326 <variablelist>
2327 <varlistentry>
2328 <term>
2329 <option>lxc.hook.autodev</option>
2330 </term>
2331 <listitem>
2332 <para>
2333 A hook to be run in the container's namespace after
2334 mounting has been done and after any mount hooks have
2335 run, but before the pivot_root, if
2336 <option>lxc.autodev</option> == 1.
2337 The purpose of this hook is to assist in populating the
2338 /dev directory of the container when using the autodev
2339 option for systemd based containers. The container's /dev
2340 directory is relative to the
2341 ${<option>LXC_ROOTFS_MOUNT</option>} environment
2342 variable available when the hook is run.
2343 </para>
2344 </listitem>
2345 </varlistentry>
2346 </variablelist>
2347 <variablelist>
2348 <varlistentry>
2349 <term>
2350 <option>lxc.hook.start-host</option>
2351 </term>
2352 <listitem>
2353 <para>
2354 A hook to be run in the host's namespace after the
2355 container has been setup, and immediately before starting
2356 the container init.
2357 </para>
2358 </listitem>
2359 </varlistentry>
2360 </variablelist>
2361 <variablelist>
2362 <varlistentry>
2363 <term>
2364 <option>lxc.hook.start</option>
2365 </term>
2366 <listitem>
2367 <para>
2368 A hook to be run in the container's namespace immediately
2369 before executing the container's init. This requires the
2370 program to be available in the container.
2371 </para>
2372 </listitem>
2373 </varlistentry>
2374 </variablelist>
2375 <variablelist>
2376 <varlistentry>
2377 <term>
2378 <option>lxc.hook.stop</option>
2379 </term>
2380 <listitem>
2381 <para>
2382 A hook to be run in the host's namespace with references
2383 to the container's namespaces after the container has been shut
2384 down. For each namespace an extra argument is passed to the hook
2385 containing the namespace's type and a filename that can be used to
2386 obtain a file descriptor to the corresponding namespace, separated
2387 by a colon. The type is the name as it would appear in the
2388 <filename>/proc/PID/ns</filename> directory.
2389 For instance for the mount namespace the argument usually looks
2390 like <filename>mnt:/proc/PID/fd/12</filename>.
2391 </para>
2392 </listitem>
2393 </varlistentry>
2394 </variablelist>
2395 <variablelist>
2396 <varlistentry>
2397 <term>
2398 <option>lxc.hook.post-stop</option>
2399 </term>
2400 <listitem>
2401 <para>
2402 A hook to be run in the host's namespace after the
2403 container has been shut down.
2404 </para>
2405 </listitem>
2406 </varlistentry>
2407 </variablelist>
2408 <variablelist>
2409 <varlistentry>
2410 <term>
2411 <option>lxc.hook.clone</option>
2412 </term>
2413 <listitem>
2414 <para>
2415 A hook to be run when the container is cloned to a new one.
2416 See <citerefentry><refentrytitle><command>lxc-clone</command></refentrytitle>
2417 <manvolnum>1</manvolnum></citerefentry> for more information.
2418 </para>
2419 </listitem>
2420 </varlistentry>
2421 </variablelist>
2422 <variablelist>
2423 <varlistentry>
2424 <term>
2425 <option>lxc.hook.destroy</option>
2426 </term>
2427 <listitem>
2428 <para>
2429 A hook to be run when the container is destroyed.
2430 </para>
2431 </listitem>
2432 </varlistentry>
2433 </variablelist>
2434 </refsect2>
2435
2436 <refsect2>
2437 <title>Container hooks Environment Variables</title>
2438 <para>
2439 A number of environment variables are made available to the startup
2440 hooks to provide configuration information and assist in the
2441 functioning of the hooks. Not all variables are valid in all
2442 contexts. In particular, all paths are relative to the host system
2443 and, as such, not valid during the <option>lxc.hook.start</option> hook.
2444 </para>
2445 <variablelist>
2446 <varlistentry>
2447 <term>
2448 <option>LXC_NAME</option>
2449 </term>
2450 <listitem>
2451 <para>
2452 The LXC name of the container. Useful for logging messages
2453 in common log environments. [<option>-n</option>]
2454 </para>
2455 </listitem>
2456 </varlistentry>
2457 </variablelist>
2458 <variablelist>
2459 <varlistentry>
2460 <term>
2461 <option>LXC_CONFIG_FILE</option>
2462 </term>
2463 <listitem>
2464 <para>
2465 Host relative path to the container configuration file. This
2466 gives the container to reference the original, top level,
2467 configuration file for the container in order to locate any
2468 additional configuration information not otherwise made
2469 available. [<option>-f</option>]
2470 </para>
2471 </listitem>
2472 </varlistentry>
2473 </variablelist>
2474 <variablelist>
2475 <varlistentry>
2476 <term>
2477 <option>LXC_CONSOLE</option>
2478 </term>
2479 <listitem>
2480 <para>
2481 The path to the console output of the container if not NULL.
2482 [<option>-c</option>] [<option>lxc.console.path</option>]
2483 </para>
2484 </listitem>
2485 </varlistentry>
2486 </variablelist>
2487 <variablelist>
2488 <varlistentry>
2489 <term>
2490 <option>LXC_CONSOLE_LOGPATH</option>
2491 </term>
2492 <listitem>
2493 <para>
2494 The path to the console log output of the container if not NULL.
2495 [<option>-L</option>]
2496 </para>
2497 </listitem>
2498 </varlistentry>
2499 </variablelist>
2500 <variablelist>
2501 <varlistentry>
2502 <term>
2503 <option>LXC_ROOTFS_MOUNT</option>
2504 </term>
2505 <listitem>
2506 <para>
2507 The mount location to which the container is initially bound.
2508 This will be the host relative path to the container rootfs
2509 for the container instance being started and is where changes
2510 should be made for that instance.
2511 [<option>lxc.rootfs.mount</option>]
2512 </para>
2513 </listitem>
2514 </varlistentry>
2515 </variablelist>
2516 <variablelist>
2517 <varlistentry>
2518 <term>
2519 <option>LXC_ROOTFS_PATH</option>
2520 </term>
2521 <listitem>
2522 <para>
2523 The host relative path to the container root which has been
2524 mounted to the rootfs.mount location.
2525 [<option>lxc.rootfs.path</option>]
2526 </para>
2527 </listitem>
2528 </varlistentry>
2529 </variablelist>
2530 <variablelist>
2531 <varlistentry>
2532 <term>
2533 <option>LXC_SRC_NAME</option>
2534 </term>
2535 <listitem>
2536 <para>
2537 Only for the clone hook. Is set to the original container name.
2538 </para>
2539 </listitem>
2540 </varlistentry>
2541 </variablelist>
2542 <variablelist>
2543 <varlistentry>
2544 <term>
2545 <option>LXC_TARGET</option>
2546 </term>
2547 <listitem>
2548 <para>
2549 Only for the stop hook. Is set to "stop" for a container
2550 shutdown or "reboot" for a container reboot.
2551 </para>
2552 </listitem>
2553 </varlistentry>
2554 </variablelist>
2555 <variablelist>
2556 <varlistentry>
2557 <term>
2558 <option>LXC_CGNS_AWARE</option>
2559 </term>
2560 <listitem>
2561 <para>
2562 If unset, then this version of lxc is not aware of cgroup
2563 namespaces. If set, it will be set to 1, and lxc is aware
2564 of cgroup namespaces. Note this does not guarantee that
2565 cgroup namespaces are enabled in the kernel. This is used
2566 by the lxcfs mount hook.
2567 </para>
2568 </listitem>
2569 </varlistentry>
2570 </variablelist>
2571 </refsect2>
2572 <refsect2>
2573 <title>Logging</title>
2574 <para>
2575 Logging can be configured on a per-container basis. By default,
2576 depending upon how the lxc package was compiled, container startup
2577 is logged only at the ERROR level, and logged to a file named after
2578 the container (with '.log' appended) either under the container path,
2579 or under @LOGPATH@.
2580 </para>
2581 <para>
2582 Both the default log level and the log file can be specified in the
2583 container configuration file, overriding the default behavior. Note
2584 that the configuration file entries can in turn be overridden by the
2585 command line options to <command>lxc-start</command>.
2586 </para>
2587 <variablelist>
2588 <varlistentry>
2589 <term>
2590 <option>lxc.log.level</option>
2591 </term>
2592 <listitem>
2593 <para>
2594 The level at which to log. The log level is an integer in
2595 the range of 0..8 inclusive, where a lower number means more
2596 verbose debugging. In particular 0 = trace, 1 = debug, 2 =
2597 info, 3 = notice, 4 = warn, 5 = error, 6 = critical, 7 =
2598 alert, and 8 = fatal. If unspecified, the level defaults
2599 to 5 (error), so that only errors and above are logged.
2600 </para>
2601 <para>
2602 Note that when a script (such as either a hook script or a
2603 network interface up or down script) is called, the script's
2604 standard output is logged at level 1, debug.
2605 </para>
2606 </listitem>
2607 </varlistentry>
2608 <varlistentry>
2609 <term>
2610 <option>lxc.log.file</option>
2611 </term>
2612 <listitem>
2613 <para>
2614 The file to which logging info should be written.
2615 </para>
2616 </listitem>
2617 </varlistentry>
2618 <varlistentry>
2619 <term>
2620 <option>lxc.log.syslog</option>
2621 </term>
2622 <listitem>
2623 <para>
2624 Send logging info to syslog. It respects the log level defined in
2625 <command>lxc.log.level</command>. The argument should be the syslog
2626 facility to use, valid ones are: daemon, local0, local1, local2,
2627 local3, local4, local5, local5, local6, local7.
2628 </para>
2629 </listitem>
2630 </varlistentry>
2631 </variablelist>
2632 </refsect2>
2633
2634 <refsect2>
2635 <title>Autostart</title>
2636 <para>
2637 The autostart options support marking which containers should be
2638 auto-started and in what order. These options may be used by LXC tools
2639 directly or by external tooling provided by the distributions.
2640 </para>
2641
2642 <variablelist>
2643 <varlistentry>
2644 <term>
2645 <option>lxc.start.auto</option>
2646 </term>
2647 <listitem>
2648 <para>
2649 Whether the container should be auto-started.
2650 Valid values are 0 (off) and 1 (on).
2651 </para>
2652 </listitem>
2653 </varlistentry>
2654 <varlistentry>
2655 <term>
2656 <option>lxc.start.delay</option>
2657 </term>
2658 <listitem>
2659 <para>
2660 How long to wait (in seconds) after the container is
2661 started before starting the next one.
2662 </para>
2663 </listitem>
2664 </varlistentry>
2665 <varlistentry>
2666 <term>
2667 <option>lxc.start.order</option>
2668 </term>
2669 <listitem>
2670 <para>
2671 An integer used to sort the containers when auto-starting
2672 a series of containers at once. A lower value means an
2673 earlier start.
2674 </para>
2675 </listitem>
2676 </varlistentry>
2677 <varlistentry>
2678 <term>
2679 <option>lxc.monitor.unshare</option>
2680 </term>
2681 <listitem>
2682 <para>
2683 If not zero the mount namespace will be unshared from the host
2684 before initializing the container (before running any pre-start
2685 hooks). This requires the CAP_SYS_ADMIN capability at startup.
2686 Default is 0.
2687 </para>
2688 </listitem>
2689 </varlistentry>
2690 <varlistentry>
2691 <term>
2692 <option>lxc.monitor.signal.pdeath</option>
2693 </term>
2694 <listitem>
2695 <para>
2696 Set the signal to be sent to the container's init when the lxc
2697 monitor exits. By default it is set to SIGKILL which will cause
2698 all container processes to be killed when the lxc monitor process
2699 dies.
2700 To ensure that containers stay alive even if lxc monitor dies set
2701 this to 0.
2702 </para>
2703 </listitem>
2704 </varlistentry>
2705 <varlistentry>
2706 <term>
2707 <option>lxc.group</option>
2708 </term>
2709 <listitem>
2710 <para>
2711 A multi-value key (can be used multiple times) to put the
2712 container in a container group. Those groups can then be
2713 used (amongst other things) to start a series of related
2714 containers.
2715 </para>
2716 </listitem>
2717 </varlistentry>
2718 </variablelist>
2719 </refsect2>
2720
2721 <refsect2>
2722 <title>Autostart and System Boot</title>
2723 <para>
2724 Each container can be part of any number of groups or no group at all.
2725 Two groups are special. One is the NULL group, i.e. the container does
2726 not belong to any group. The other group is the "onboot" group.
2727 </para>
2728
2729 <para>
2730 When the system boots with the LXC service enabled, it will first
2731 attempt to boot any containers with lxc.start.auto == 1 that is a member
2732 of the "onboot" group. The startup will be in order of lxc.start.order.
2733 If an lxc.start.delay has been specified, that delay will be honored
2734 before attempting to start the next container to give the current
2735 container time to begin initialization and reduce overloading the host
2736 system. After starting the members of the "onboot" group, the LXC system
2737 will proceed to boot containers with lxc.start.auto == 1 which are not
2738 members of any group (the NULL group) and proceed as with the onboot
2739 group.
2740 </para>
2741
2742 </refsect2>
2743
2744 <refsect2>
2745 <title>Container Environment</title>
2746 <para>
2747 If you want to pass environment variables into the container (that
2748 is, environment variables which will be available to init and all of
2749 its descendents), you can use <command>lxc.environment</command>
2750 parameters to do so. Be careful that you do not pass in anything
2751 sensitive; any process in the container which doesn't have its
2752 environment scrubbed will have these variables available to it, and
2753 environment variables are always available via
2754 <command>/proc/PID/environ</command>.
2755 </para>
2756
2757 <para>
2758 This configuration parameter can be specified multiple times; once
2759 for each environment variable you wish to configure.
2760 </para>
2761
2762 <variablelist>
2763 <varlistentry>
2764 <term>
2765 <option>lxc.environment</option>
2766 </term>
2767 <listitem>
2768 <para>
2769 Specify an environment variable to pass into the container.
2770 Example:
2771 </para>
2772 <programlisting>
2773 lxc.environment = APP_ENV=production
2774 lxc.environment = SYSLOG_SERVER=192.0.2.42
2775 </programlisting>
2776 <para>
2777 It is possible to inherit host environment variables by setting the
2778 name of the variable without a "=" sign. For example:
2779 </para>
2780 <programlisting>
2781 lxc.environment = PATH
2782 </programlisting>
2783 </listitem>
2784 </varlistentry>
2785 </variablelist>
2786 </refsect2>
2787
2788 </refsect1>
2789
2790 <refsect1>
2791 <title>Examples</title>
2792 <para>
2793 In addition to the few examples given below, you will find
2794 some other examples of configuration file in @DOCDIR@/examples
2795 </para>
2796 <refsect2>
2797 <title>Network</title>
2798 <para>This configuration sets up a container to use a veth pair
2799 device with one side plugged to a bridge br0 (which has been
2800 configured before on the system by the administrator). The
2801 virtual network device visible in the container is renamed to
2802 eth0.</para>
2803 <programlisting>
2804 lxc.uts.name = myhostname
2805 lxc.net.0.type = veth
2806 lxc.net.0.flags = up
2807 lxc.net.0.link = br0
2808 lxc.net.0.name = eth0
2809 lxc.net.0.hwaddr = 4a:49:43:49:79:bf
2810 lxc.net.0.ipv4.address = 10.2.3.5/24 10.2.3.255
2811 lxc.net.0.ipv6.address = 2003:db8:1:0:214:1234:fe0b:3597
2812 </programlisting>
2813 </refsect2>
2814
2815 <refsect2>
2816 <title>UID/GID mapping</title>
2817 <para>This configuration will map both user and group ids in the
2818 range 0-9999 in the container to the ids 100000-109999 on the host.
2819 </para>
2820 <programlisting>
2821 lxc.idmap = u 0 100000 10000
2822 lxc.idmap = g 0 100000 10000
2823 </programlisting>
2824 </refsect2>
2825
2826 <refsect2>
2827 <title>Control group</title>
2828 <para>This configuration will setup several control groups for
2829 the application, cpuset.cpus restricts usage of the defined cpu,
2830 cpus.share prioritize the control group, devices.allow makes
2831 usable the specified devices.</para>
2832 <programlisting>
2833 lxc.cgroup.cpuset.cpus = 0,1
2834 lxc.cgroup.cpu.shares = 1234
2835 lxc.cgroup.devices.deny = a
2836 lxc.cgroup.devices.allow = c 1:3 rw
2837 lxc.cgroup.devices.allow = b 8:0 rw
2838 </programlisting>
2839 </refsect2>
2840
2841 <refsect2>
2842 <title>Complex configuration</title>
2843 <para>This example show a complex configuration making a complex
2844 network stack, using the control groups, setting a new hostname,
2845 mounting some locations and a changing root file system.</para>
2846 <programlisting>
2847 lxc.uts.name = complex
2848 lxc.net.0.type = veth
2849 lxc.net.0.flags = up
2850 lxc.net.0.link = br0
2851 lxc.net.0.hwaddr = 4a:49:43:49:79:bf
2852 lxc.net.0.ipv4.address = 10.2.3.5/24 10.2.3.255
2853 lxc.net.0.ipv6.address = 2003:db8:1:0:214:1234:fe0b:3597
2854 lxc.net.0.ipv6.address = 2003:db8:1:0:214:5432:feab:3588
2855 lxc.net.1.type = macvlan
2856 lxc.net.1.flags = up
2857 lxc.net.1.link = eth0
2858 lxc.net.1.hwaddr = 4a:49:43:49:79:bd
2859 lxc.net.1.ipv4.address = 10.2.3.4/24
2860 lxc.net.1.ipv4.address = 192.168.10.125/24
2861 lxc.net.1.ipv6.address = 2003:db8:1:0:214:1234:fe0b:3596
2862 lxc.net.2.type = phys
2863 lxc.net.2.flags = up
2864 lxc.net.2.link = dummy0
2865 lxc.net.2.hwaddr = 4a:49:43:49:79:ff
2866 lxc.net.2.ipv4.address = 10.2.3.6/24
2867 lxc.net.2.ipv6.address = 2003:db8:1:0:214:1234:fe0b:3297
2868 lxc.cgroup.cpuset.cpus = 0,1
2869 lxc.cgroup.cpu.shares = 1234
2870 lxc.cgroup.devices.deny = a
2871 lxc.cgroup.devices.allow = c 1:3 rw
2872 lxc.cgroup.devices.allow = b 8:0 rw
2873 lxc.mount.fstab = /etc/fstab.complex
2874 lxc.mount.entry = /lib /root/myrootfs/lib none ro,bind 0 0
2875 lxc.rootfs.path = dir:/mnt/rootfs.complex
2876 lxc.cap.drop = sys_module mknod setuid net_raw
2877 lxc.cap.drop = mac_override
2878 </programlisting>
2879 </refsect2>
2880
2881 </refsect1>
2882
2883 <refsect1>
2884 <title>See Also</title>
2885 <simpara>
2886 <citerefentry>
2887 <refentrytitle><command>chroot</command></refentrytitle>
2888 <manvolnum>1</manvolnum>
2889 </citerefentry>,
2890
2891 <citerefentry>
2892 <refentrytitle><command>pivot_root</command></refentrytitle>
2893 <manvolnum>8</manvolnum>
2894 </citerefentry>,
2895
2896 <citerefentry>
2897 <refentrytitle><filename>fstab</filename></refentrytitle>
2898 <manvolnum>5</manvolnum>
2899 </citerefentry>,
2900
2901 <citerefentry>
2902 <refentrytitle><filename>capabilities</filename></refentrytitle>
2903 <manvolnum>7</manvolnum>
2904 </citerefentry>
2905 </simpara>
2906 </refsect1>
2907
2908 &seealso;
2909
2910 <refsect1>
2911 <title>Author</title>
2912 <para>Daniel Lezcano <email>daniel.lezcano@free.fr</email></para>
2913 </refsect1>
2914
2915 </refentry>
2916
2917 <!-- Keep this comment at the end of the file
2918 Local variables:
2919 mode: sgml
2920 sgml-omittag:t
2921 sgml-shorttag:t
2922 sgml-minimize-attributes:nil
2923 sgml-always-quote-attributes:t
2924 sgml-indent-step:2
2925 sgml-indent-data:t
2926 sgml-parent-document:nil
2927 sgml-default-dtd-file:nil
2928 sgml-exposed-tags:nil
2929 sgml-local-catalogs:nil
2930 sgml-local-ecat-files:nil
2931 End:
2932 -->