]> git.proxmox.com Git - mirror_lxc.git/blob - doc/ko/lxc.container.conf.sgml.in
doc: Add Korean man pages
[mirror_lxc.git] / doc / ko / 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 Translated into Korean
25 by Sungbae Yoo <sungbae.yoo at samsung.com>
26
27 -->
28
29 <!DOCTYPE refentry PUBLIC @docdtd@ [
30
31 <!ENTITY seealso SYSTEM "@builddir@/see_also.sgml">
32 ]>
33
34 <refentry>
35
36 <docinfo><date>@LXC_GENERATE_DATE@</date></docinfo>
37
38 <refmeta>
39 <refentrytitle>lxc.container.conf</refentrytitle>
40 <manvolnum>5</manvolnum>
41 </refmeta>
42
43 <refnamediv>
44 <refname>lxc.container.conf</refname>
45
46 <refpurpose>
47 <!--
48 LXC container configuration file
49 -->
50 LXC 컨테이너 설정파일
51 </refpurpose>
52 </refnamediv>
53
54 <refsect1>
55 <title><!-- Description -->설명</title>
56
57 <para>
58 <!--
59 The linux containers (<command>lxc</command>) are always created
60 before being used. This creation defines a set of system
61 resources to be virtualized / isolated when a process is using
62 the container. By default, the pids, sysv ipc and mount points
63 are virtualized and isolated. The other system resources are
64 shared across containers, until they are explicitly defined in
65 the configuration file. For example, if there is no network
66 configuration, the network will be shared between the creator of
67 the container and the container itself, but if the network is
68 specified, a new network stack is created for the container and
69 the container can no longer use the network of its ancestor.
70 -->
71 linux 컨테이너(<command>lxc</command>)는 항상 사용하기 전에 생성된다.
72 생성 작업은 가상화할 자원 및 컨테이너 내에서 실행되는 프로세스로부터 고립할 시스템 자원들을 정의하는 것이다.
73 기본적으로 pid, sysv ipc, 마운트 포인트가 가상화되고 고립된다. 명시적으로 설정파일에서 정의되기 전까지, 다른 시스템 자원들은 컨테이너 간에 공유된다. 예를 들어, 네트워크 설정이 되어 있지 않다면, 컨테이너 생성한 쪽과 컨테이너 간에 네트워크를 서로 공유할 것이다. 그러나 네트워크가 지정이되었다면, 컨테이너를 위해 새로운 네트워크 스택이 생성된다. 그리고 컨테이너는 더이상 그를 생성한 쪽과 네트워크를 공유하지 않는다.
74 </para>
75
76 <para>
77 <!--
78 The configuration file defines the different system resources to
79 be assigned for the container. At present, the utsname, the
80 network, the mount points, the root file system, the user namespace,
81 and the control groups are supported.
82 -->
83 설정파일은 컨테이너에 할당될 시스템 자원들을 정의한다. 현재는 utsname, 네트워크, 마운트포인트, 루트 파일시스템, 사용자 네임스페이스 그리고 컨트롤 그룹이 지원된다.
84 </para>
85
86 <para>
87 <!--
88 Each option in the configuration file has the form <command>key
89 = value</command> fitting in one line. The '#' character means
90 the line is a comment.
91 -->
92 설정파일의 옵션은 <command>key = value</command>의 한 줄로 이루어져 있다.
93 '#' 문자를 앞에 붙여 주석임을 나타낼 수 있다.
94 </para>
95
96 <refsect2>
97 <title><!-- Configuration -->설정</title>
98 <para>
99 <!--
100 In order to ease administration of multiple related containers, it
101 is possible to have a container configuration file cause another
102 file to be loaded. For instance, network configuration
103 can be defined in one common file which is included by multiple
104 containers. Then, if the containers are moved to another host,
105 only one file may need to be updated.
106 -->
107 연관된 컨테이너들을 쉽게 관리하기 위해서, 컨테이너 설정파일은 다른 파일을 불러올 수 있다. 예를 들어서, 네트워크 설정은 여러 컨테이너들을 위해 공통된 하나의 파일로 정의될 수 있다. 그리고 만약 컨테이너들이 다른 호스트로 이동된다면, 해당 파일 하나만 수정하면 된다.
108 </para>
109
110 <variablelist>
111 <varlistentry>
112 <term>
113 <option>lxc.include</option>
114 </term>
115 <listitem>
116 <para>
117 <!--
118 Specify the file to be included. The included file must be
119 in the same valid lxc configuration file format.
120 -->
121 include할 파일을 지정한다.
122 include할 파일은 lxc 설정파일의 형식에 부합하여야 한다.
123 </para>
124 </listitem>
125 </varlistentry>
126 </variablelist>
127 </refsect2>
128
129 <refsect2>
130 <title><!-- Architecture -->아키텍처</title>
131 <para>
132 <!--
133 Allows one to set the architecture for the container. For example,
134 set a 32bits architecture for a container running 32bits
135 binaries on a 64bits host. That fixes the container scripts
136 which rely on the architecture to do some work like
137 downloading the packages.
138 -->
139 컨테이너에 아키텍처를 지정할 수 있다. 예를 들어, 64비트 호스트에서 32비트 바이너리를 실행하는 컨테이너라면 32비트 아키텍처로 지정할 수 있다. 패키지를 다운로드 받는 등의 작업을 수행하는 아키텍처에 의존적인 컨테이너 스크립트가 잘 동작할 수 있도록 해준다.
140 </para>
141
142 <variablelist>
143 <varlistentry>
144 <term>
145 <option>lxc.arch</option>
146 </term>
147 <listitem>
148 <para>
149 <!--
150 Specify the architecture for the container.
151 -->
152 컨테이너의 아키텍처를 지정한다.
153 </para>
154 <para>
155 <!--
156 Valid options are
157 <option>x86</option>,
158 <option>i686</option>,
159 <option>x86_64</option>,
160 <option>amd64</option>
161 -->
162 가능한 옵션은 아래와 같다.
163 <option>x86</option>,
164 <option>i686</option>,
165 <option>x86_64</option>,
166 <option>amd64</option>
167 </para>
168 </listitem>
169 </varlistentry>
170 </variablelist>
171
172 </refsect2>
173
174 <refsect2>
175 <title><!-- Hostname -->호스트 이름</title>
176 <para>
177 <!--
178 The utsname section defines the hostname to be set for the
179 container. That means the container can set its own hostname
180 without changing the one from the system. That makes the
181 hostname private for the container.
182 -->
183 utsname 섹션은 컨테이너 내에서 설정할 호스트 이름을 정의한다. 컨테이너는 시스템의 호스트 이름을 변경하지 않고도 자신의 호스트 이름을 변경할 수 있다. 즉, 컨테이너마다 호스트 이름을 설정할 수 있다.
184 </para>
185 <variablelist>
186 <varlistentry>
187 <term>
188 <option>lxc.utsname</option>
189 </term>
190 <listitem>
191 <para>
192 <!--
193 specify the hostname for the container
194 -->
195 컨테이너의 호스트 이름을 지정한다.
196 </para>
197 </listitem>
198 </varlistentry>
199 </variablelist>
200 </refsect2>
201
202 <refsect2>
203 <title><!-- Halt signal -->종료 시그널</title>
204 <para>
205 <!--
206 Allows one to specify signal name or number, sent by lxc-stop to the
207 container's init process to cleanly shutdown the container. Different
208 init systems could use different signals to perform clean shutdown
209 sequence. This option allows the signal to be specified in kill(1)
210 fashion, e.g. SIGPWR, SIGRTMIN+14, SIGRTMAX-10 or plain number. The
211 default signal is SIGPWR.
212 -->
213 lxc-stop이 컨테이너를 깨끗이 종료를 시키기 위해서 보낼 시그널의 이름이나 숫자를 지정할 수 있다.
214 init 시스템마다 깨끗한 종료를 위해 각기 다른 시그널을 사용할 수 있다.
215 이 옵션은 kill(1)에서 사용하는 것 처럼 시그널을 지정할 수 있다. 예를 들어 SIGPWR, SIGRTMIN+14, SIGRTMAX-10 또는 숫자를 지정할 수 있다. 기본 시그널은 SIGPWR이다.
216 </para>
217 <variablelist>
218 <varlistentry>
219 <term>
220 <option>lxc.haltsignal</option>
221 </term>
222 <listitem>
223 <para>
224 <!--
225 specify the signal used to halt the container
226 -->
227 컨테이너를 종료할 때 사용할 시그널을 지정한다.
228 </para>
229 </listitem>
230 </varlistentry>
231 </variablelist>
232 </refsect2>
233
234 <refsect2>
235 <title><!-- Reboot signal -->재부팅 시그널</title>
236 <para>
237 <!--
238 Allows one to specify signal name or number, sent by lxc-stop to
239 reboot the container. This option allows signal to be specified in
240 kill(1) fashion, e.g. SIGTERM, SIGRTMIN+14, SIGRTMAX-10 or plain number.
241 The default signal is SIGINT.
242 -->
243 lxc-stop이 컨테이너를 재부팅하기 위해 보낼 시그널의 이름이나 숫자를 지정할 수 있다.
244 이 옵션은 kill(1)에서 사용하는 것 처럼 시그널을 지정할 수 있다. 예를 들어 SIGINT, SIGRTMIN+14, SIGRTMAX-10 또는 숫자를 지정할 수 있다. 기본 시그널은 SIGINT이다.
245 </para>
246 <variablelist>
247 <varlistentry>
248 <term>
249 <option>lxc.rebootsignal</option>
250 </term>
251 <listitem>
252 <para>
253 <!--
254 specify the signal used to reboot the container
255 -->
256 컨테이너를 재부팅할 때 사용할 시그널을 지정한다.
257 </para>
258 </listitem>
259 </varlistentry>
260 </variablelist>
261 </refsect2>
262
263 <refsect2>
264 <title><!-- Stop signal -->강제종료 시그널</title>
265 <para>
266 <!--
267 Allows one to specify signal name or number, sent by lxc-stop to forcibly
268 shutdown the container. This option allows signal to be specified in
269 kill(1) fashion, e.g. SIGKILL, SIGRTMIN+14, SIGRTMAX-10 or plain number.
270 The default signal is SIGKILL.
271 -->
272 lxc-stop이 컨테이너를 강제종료하기 위해 보낼 시그널의 이름이나 숫자를 지정할 수 있다.
273 이 옵션은 kill(1)에서 사용하는 것 처럼 시그널을 지정할 수 있다. 예를 들>어 SIGKILL, SIGRTMIN+14, SIGRTMAX-10 또는 숫자를 지정할 수 있다. 기본 시그널은 SIGKILL이다.
274 </para>
275 <variablelist>
276 <varlistentry>
277 <term>
278 <option>lxc.stopsignal</option>
279 </term>
280 <listitem>
281 <para>
282 <!--
283 specify the signal used to stop the container
284 -->
285 컨테이너를 강제종료할 때 사용할 시그널을 지정한다.
286 </para>
287 </listitem>
288 </varlistentry>
289 </variablelist>
290 </refsect2>
291
292 <refsect2>
293 <title><!-- Init command -->Init 명령어</title>
294 <para>
295 <!--
296 Sets the command to use as the init system for the containers.
297
298 This option is ignored when using lxc-execute.
299
300 Defaults to: /sbin/init
301 -->
302 컨테이너의 init으로 사용할 명령어를 설정한다.
303 이 옵션은 lxc-execute을 사용할 때는 무시된다.
304 기본값은 /sbin/init이다.
305 </para>
306 <variablelist>
307 <varlistentry>
308 <term>
309 <option>lxc.init_cmd</option>
310 </term>
311 <listitem>
312 <para>
313 <!--
314 Absolute path from container rootfs to the binary to use as init.
315 -->
316 init으로 사용할 바이저리의 컨테이너 루트 파일시스템에서의 절대 경로.
317 </para>
318 </listitem>
319 </varlistentry>
320 </variablelist>
321 </refsect2>
322
323 <refsect2>
324 <title><!-- Network -->네트워크</title>
325 <para>
326 <!--
327 The network section defines how the network is virtualized in
328 the container. The network virtualization acts at layer
329 two. In order to use the network virtualization, parameters
330 must be specified to define the network interfaces of the
331 container. Several virtual interfaces can be assigned and used
332 in a container even if the system has only one physical
333 network interface.
334 -->
335 네트워크 섹션은 어떻게 네트워크를 컨테이너 내에서 가상화할지를 정의한다.
336 네트워크 가상화는 2개의 계층으로 동작한다.
337 네트워크 가상화를 위해서, 컨테이너의 네트워크 인터페이스가 인수로 지정되어야 한다. 시스템이 하나의 물리적인 네트워크 인터페이스를 갖고 있어도, 컨테이너 내에서 여러개의 가상화 인터페이스들을 사용할 수 있다.
338 </para>
339 <variablelist>
340 <varlistentry>
341 <term>
342 <option>lxc.network.type</option>
343 </term>
344 <listitem>
345 <para>
346 <!--
347 specify what kind of network virtualization to be used
348 for the container. Each time
349 a <option>lxc.network.type</option> field is found a new
350 round of network configuration begins. In this way,
351 several network virtualization types can be specified
352 for the same container, as well as assigning several
353 network interfaces for one container. The different
354 virtualization types can be:
355 -->
356 컨테이너가 어떤 종류의 네트워크 가상화를 사용할지 지정한다.
357 <option>lxc.network.type</option> 필드부터 새로운 네트워크 설정이 시작된다. 이 방법으로 여러개의 네트워크 가상화 형태를 같은 컨테이너에 지정할 수 있다. 그리고 여러개의 네트워크 인터페이스를 하나의 컨테이너에 지정할 수도 있다.
358 지정 가능한 형태는 아래와 같다.
359 </para>
360
361 <para>
362 <!--
363 <option>none:</option> will cause the container to share
364 the host's network namespace. This means the host
365 network devices are usable in the container. It also
366 means that if both the container and host have upstart as
367 init, 'halt' in a container (for instance) will shut down the
368 host.
369 -->
370 <option>none:</option> 호스트의 네트워크 네임스페이스를 공유한다. 이렇게 하면 호스트의 네트워크 장치를 컨테이너 내에서 사용가능하다.
371 컨테이너와 호스트 둘다 init에서 upstart를 사용하는 경우, (예를 들어) 컨테이너에서 'halt'를 하면, 호스트의 것도 종료된다.
372 </para>
373
374 <para>
375 <!--
376 <option>empty:</option> will create only the loopback
377 interface.
378 -->
379 <option>empty:</option>는 루프백 인터페이스만 생성한다.
380 </para>
381
382 <para>
383 <!--
384 <option>veth:</option> a virtual ethernet pair
385 device is created with one side assigned to the container
386 and the other side attached to a bridge specified by
387 the <option>lxc.network.link</option> option.
388 If the bridge is not specified, then the veth pair device
389 will be created but not attached to any bridge.
390 Otherwise, the bridge has to be created on the system
391 before starting the container.
392 <command>lxc</command> won't handle any
393 configuration outside of the container.
394 By default, <command>lxc</command> chooses a name for the
395 network device belonging to the outside of the
396 container, but if you wish to handle
397 this name yourselves, you can tell <command>lxc</command>
398 to set a specific name with
399 the <option>lxc.network.veth.pair</option> option (except for
400 unprivileged containers where this option is ignored for security
401 reasons).
402 -->
403 <option>veth:</option> 한 쪽은 컨테이너로, 다른 한쪽은 <option>lxc.network.link</option> 옵션으로 지정한 브리지로 붙은 가상 이더넷(veth) 장치 쌍을 생성한다.
404 만약 브리지가 지정되지 않았다면, 어떤 브리지에도 붙지 않은 veth 장치 쌍을 만든다. 브리지는 컨테이너 시작전에 시스템에서 생성해야 한다.
405 <command>lxc</command>는 컨테이너 이외의 설정에 대해서는 다루지 않는다. 기본값으로 <command>lxc</command>는 컨테이너 바깥에 속할 네트워크 디바이스의 이름을 정해준다. 이름을 변경하기 원한다면, <command>lxc</command>가 지정한 이름으로 설정하도록 <option>lxc.network.veth.pair</option> 옵션을 사용하여야 한다. (비특권 컨테이너는 불가능하다. 이 옵션은 보안상의 이유로 무시될 것이다)
406 </para>
407
408 <para>
409 <!--
410 <option>vlan:</option> a vlan interface is linked with
411 the interface specified by
412 the <option>lxc.network.link</option> and assigned to
413 the container. The vlan identifier is specified with the
414 option <option>lxc.network.vlan.id</option>.
415 -->
416 <option>vlan:</option> vlan 인터페이스는 <option>lxc.network.link</option>로 지정한 인터페이스에 연결되고, 컨테이너로 할당된다. vlan의 식별자는 <option>lxc.network.vlan.id</option> 옵션으로 지정한다.
417 </para>
418
419 <para>
420 <!--
421 <option>macvlan:</option> a macvlan interface is linked
422 with the interface specified by
423 the <option>lxc.network.link</option> and assigned to
424 the container.
425 <option>lxc.network.macvlan.mode</option> specifies the
426 mode the macvlan will use to communicate between
427 different macvlan on the same upper device. The accepted
428 modes are <option>private</option>, <option>vepa</option>,
429 <option>bridge</option> and <option>passthru</option>.
430 In <option>private</option> mode, the device never
431 communicates with any other device on the same upper_dev (default).
432 In <option>vepa</option> mode, the new Virtual Ethernet Port
433 Aggregator (VEPA) mode, it assumes that the adjacent
434 bridge returns all frames where both source and
435 destination are local to the macvlan port, i.e. the
436 bridge is set up as a reflective relay. Broadcast
437 frames coming in from the upper_dev get flooded to all
438 macvlan interfaces in VEPA mode, local frames are not
439 delivered locally. In <option>bridge</option> mode, it
440 provides the behavior of a simple bridge between
441 different macvlan interfaces on the same port. Frames
442 from one interface to another one get delivered directly
443 and are not sent out externally. Broadcast frames get
444 flooded to all other bridge ports and to the external
445 interface, but when they come back from a reflective
446 relay, we don't deliver them again. Since we know all
447 the MAC addresses, the macvlan bridge mode does not
448 require learning or STP like the bridge module does. In
449 <option>passthru</option> mode, all frames received by
450 the physical interface are forwarded to the macvlan
451 interface. Only one macvlan interface in <option>passthru</option>
452 mode is possible for one physical interface.
453 -->
454 <option>macvlan:</option> macvlan 인터페이스는 <option>lxc.network.link</option>로 지정한 인터페이스에 연결되고, 컨테이너로 할당된다.
455 <option>lxc.network.macvlan.mode</option>은 같은 상위 디바이스에 있는 다른 macvlan과 통신할 때 사용하는 모드를 지정한다.
456 지정할 수 있는 모드는 <option>private</option>、<option>vepa</option>、<option>bridge</option>、<option>passthru</option>이다.
457 <option>private</option>모드는 디바이스가 같은 상위디바이스의 어떤 장치와도 통신하지 않는다. (기본값)
458 새로운 가상 이더넷 포트 통합모드(Virtual Ethernet Port Aggregator), 즉 <option>vepa</option> 모드는 인접한 브리지가 소스와 목적지가 로컬인 모든 프레임들을 macvlan 포트로 반환한다고 가정한다. 즉, 브리지가 reflective relay로 설정되어 있다는 것이다.
459 상위장치에서 들어오는 브로드캐스트 프레임들은 모든 macvlan 인터페이스에게 보내져버린다. 로컬 프레임들은 로컬로 보내지지 않는다.
460 <option>bridge</option> 모드는 같은 포트의 다른 macvlan 인터페이스 사이에 간단한 브리지를 제공한다.
461 어떤 인터페이스에서 다른 인터페이스로 프레임은 직접 전달된다. 하지만 외부로는 보내지지 않는다.
462 브로드캐스트 프레임들은 모든 다른 브리지 포트들과 외부 인터페이스에 전달된다.
463 그러나 reflective relay로 다시 돌아왔을 때는, 그것들을 다시 전송하지 않는다.
464 모든 MAC 주소를 알기 때문에, macvlan 브리지모드는 브리지 모듈처럼 학습이나 STP를 요구하지 않는다.
465 <option>passthru</option>모드는 물리 인터페이스로 부터 받은 모든 프레임들을 macvlan 인터페이스로 포워딩한다.
466 <option>passthru</option>모드만이 하나의 물리 인터페이스를 설정하는게 가능하다.
467 </para>
468
469 <para>
470 <!--
471 <option>phys:</option> an already existing interface
472 specified by the <option>lxc.network.link</option> is
473 assigned to the container.
474 -->
475 <option>phys:</option> <option>lxc.network.link</option>로 지정한 이미 존재하는 인터페이스를 컨테이너로 할당된다.
476 </para>
477 </listitem>
478 </varlistentry>
479
480 <varlistentry>
481 <term>
482 <option>lxc.network.flags</option>
483 </term>
484 <listitem>
485 <para>
486 <!--
487 specify an action to do for the
488 network.
489 -->
490 네트워크에 수행할 작업을 지정한다.
491 </para>
492
493 <para>
494 <!--
495 <option>up:</option> activates the interface.
496 -->
497 <option>up:</option> 인터페이스를 활성화시킨다.
498 </para>
499 </listitem>
500 </varlistentry>
501
502 <varlistentry>
503 <term>
504 <option>lxc.network.link</option>
505 </term>
506 <listitem>
507 <para>
508 <!--
509 specify the interface to be used for real network
510 traffic.
511 -->
512 실제 네트워크 트래픽에 사용할 인터페이스를 지정한다.
513 </para>
514 </listitem>
515 </varlistentry>
516
517 <varlistentry>
518 <term>
519 <option>lxc.network.mtu</option>
520 </term>
521 <listitem>
522 <para>
523 <!--
524 specify the maximum transfer unit for this interface.
525 -->
526 해당 인터페이스의 최대 전송 단위(MTU)를 지정한다.
527 </para>
528 </listitem>
529 </varlistentry>
530
531 <varlistentry>
532 <term>
533 <option>lxc.network.name</option>
534 </term>
535 <listitem>
536 <para>
537 <!--
538 the interface name is dynamically allocated, but if
539 another name is needed because the configuration files
540 being used by the container use a generic name,
541 eg. eth0, this option will rename the interface in the
542 container.
543 -->
544 인터페이스 이름은 동적으로 할당된다.
545 그러나, 컨테이너가 일반적으로 사용하는 이름과 다른 이름이 필요하다면, (예: eth0) 이 옵션은 컨테이너 내에 있는 인터페이스의 이름을 지정한 것으로 변경할 수 있다.
546 </para>
547 </listitem>
548 </varlistentry>
549
550 <varlistentry>
551 <term>
552 <option>lxc.network.hwaddr</option>
553 </term>
554 <listitem>
555 <para>
556 <!--
557 the interface mac address is dynamically allocated by
558 default to the virtual interface, but in some cases,
559 this is needed to resolve a mac address conflict or to
560 always have the same link-local ipv6 address.
561 Any "x" in address will be replaced by random value,
562 this allows setting hwaddr templates.
563 -->
564 가상 인터페이스의 MAC 주소는 기본적으로 동적 할당된다. 그러나 몇몇가지 이유로 MAC 주소 충돌 문제를 해결하거나, 언제나 같은 링크 로컬 IPv6 주소가 필요하다면, 이 옵션이 필요하다.
565 주소의 "x"는 무작위한 값으로 바뀐다. 템플릿에서 하드웨어 주소를 설정하는데 유용하다.
566 </para>
567 </listitem>
568 </varlistentry>
569
570 <varlistentry>
571 <term>
572 <option>lxc.network.ipv4</option>
573 </term>
574 <listitem>
575 <para>
576 <!--
577 specify the ipv4 address to assign to the virtualized
578 interface. Several lines specify several ipv4 addresses.
579 The address is in format x.y.z.t/m,
580 eg. 192.168.1.123/24.The broadcast address should be
581 specified on the same line, right after the ipv4
582 address.
583 -->
584 가상 인터페이스에서 사용할 IPv4 주소를 지정한다.
585 여러 행으로 여러개의 IPv4 주소를 지정할 수 있다.
586 주소의 형식은 x.y.z.t/m으로, 예를 들어 192.168.1.123/24이다. 브로드 캐스트 주소는 같은 행의 주소 바로 오른쪽에 지정하면 된다.
587 </para>
588 </listitem>
589 </varlistentry>
590
591 <varlistentry>
592 <term>
593 <option>lxc.network.ipv4.gateway</option>
594 </term>
595 <listitem>
596 <para>
597 <!--
598 specify the ipv4 address to use as the gateway inside the
599 container. The address is in format x.y.z.t, eg.
600 192.168.1.123.
601
602 Can also have the special value <option>auto</option>,
603 which means to take the primary address from the bridge
604 interface (as specified by the
605 <option>lxc.network.link</option> option) and use that as
606 the gateway. <option>auto</option> is only available when
607 using the <option>veth</option> and
608 <option>macvlan</option> network types.
609 -->
610 컨테이너 내부에서 게이트웨이로 사용할 IPv4 주소를 지정한다.
611 주소 형식은 x.y.z.t로, 예를 들면 192.168.1.123이다.
612
613 <option>auto</option>라는 특별한 값을 지정할 수있다.
614 이것은 (<option>lxc.network.link</option> 에서 지정된) 브리지 인터페이스의 첫번째 주소를 가져와 게이트 주소로 사용한다.
615 <option>auto</option>는 네트워크 형태가 <option>veth</option>나 <option>macvlan</option>일 때만 지정 가능하다.
616 </para>
617 </listitem>
618 </varlistentry>
619
620
621 <varlistentry>
622 <term>
623 <option>lxc.network.ipv6</option>
624 </term>
625 <listitem>
626 <para>
627 <!--
628 specify the ipv6 address to assign to the virtualized
629 interface. Several lines specify several ipv6 addresses.
630 The address is in format x::y/m,
631 eg. 2003:db8:1:0:214:1234:fe0b:3596/64
632 -->
633 가상 인터페이스에서 사용할 IPv6 주소를 지정한다.
634 여러 행으로 여러개의 IPv6 주소를 지정할 수 있다.
635 주소의 형식은 x::y/m으로, 예를 들어 2003:db8:1:0:214:1234:fe0b:3596/64이다.
636 </para>
637 </listitem>
638 </varlistentry>
639
640 <varlistentry>
641 <term>
642 <option>lxc.network.ipv6.gateway</option>
643 </term>
644 <listitem>
645 <para>
646 <!--
647 specify the ipv6 address to use as the gateway inside the
648 container. The address is in format x::y,
649 eg. 2003:db8:1:0::1
650
651 Can also have the special value <option>auto</option>,
652 which means to take the primary address from the bridge
653 interface (as specified by the
654 <option>lxc.network.link</option> option) and use that as
655 the gateway. <option>auto</option> is only available when
656 using the <option>veth</option> and
657 <option>macvlan</option> network types.
658 -->
659 컨테이너 내부에서 게이트웨이로 사용할 IPv4 주소를 지정한다.
660 주소 형식은 x::y로, 예를 들면 2003:db8:1:0::1이다.
661
662 <option>auto</option>라는 특별한 값을 지정할 수있다.
663 이것은 (<option>lxc.network.link</option> 에서 지정된) 브리지 인터페이스의 첫번째 주소를 가져와 게이트 주소로 사용한다.
664 <option>auto</option>는 네트워크 형태가 <option>veth</option>나 <option>macvlan</option>일 때만 지정 가능하다.
665 </para>
666 </listitem>
667 </varlistentry>
668
669 <varlistentry>
670 <term>
671 <option>lxc.network.script.up</option>
672 </term>
673 <listitem>
674 <para>
675 <!--
676 add a configuration option to specify a script to be
677 executed after creating and configuring the network used
678 from the host side. The following arguments are passed
679 to the script: container name and config section name
680 (net) Additional arguments depend on the config section
681 employing a script hook; the following are used by the
682 network system: execution context (up), network type
683 (empty/veth/macvlan/phys), Depending on the network
684 type, other arguments may be passed:
685 veth/macvlan/phys. And finally (host-sided) device name.
686 -->
687 네트워크를 설정하고 생성한 후에 호스트 쪽에서 실행되는 스크립트를 지정한다.
688 다음 인수들이 스크립트에 넘겨진다 : 컨테이너 이름, 설정 섹션 이름(net). 그 후 인수는 훅 스크립트을 사용하는 설정 섹션에 달려있다. 다음 인수들은 네트워크 시스템에 의해 사용되어진다 : 실행 컨텍스트(up), 네트워크 형태(empty/veth/macvlan/phys). 네트워크 형태에 따라서 다음 인수들이 넘겨진다 : veth/macvlan/phys의 경우, (호스트 쪽의) 장치 이름.
689 </para>
690 <para>
691 <!--
692 Standard output from the script is logged at debug level.
693 Standard error is not logged, but can be captured by the
694 hook redirecting its standard error to standard output.
695 -->
696 스크립트의 표준출력은 debug 수준 로그로 납겨진다.
697 표준 에러는 로그로 남겨지지는 않지만, 표준 에러를 표준 출력으로 리다이렉션하여 로그로 남길 수 있다.
698 </para>
699 </listitem>
700 </varlistentry>
701
702 <varlistentry>
703 <term>
704 <option>lxc.network.script.down</option>
705 </term>
706 <listitem>
707 <para>
708 <!--
709 add a configuration option to specify a script to be
710 executed before destroying the network used from the
711 host side. The following arguments are passed to the
712 script: container name and config section name (net)
713 Additional arguments depend on the config section
714 employing a script hook; the following are used by the
715 network system: execution context (down), network type
716 (empty/veth/macvlan/phys), Depending on the network
717 type, other arguments may be passed:
718 veth/macvlan/phys. And finally (host-sided) device name.
719 -->
720 네트워크를 제거한 후에 호스트 쪽에서 실행되는 스크립트를 지정한다.
721 다음 인수들이 스크립트에 넘겨진다 : 컨테이너 이름, 설정 섹션 이름(net). 그 후 인수는 훅 스크립트을 사용하는 설정 섹션에 달려있다.
722 다음 인수들은 네트워크 시스템에 의해 사용되어진다 : 실행 컨텍스트(down), 네트워크 형태(empty/veth/macvlan/phys). 네트워크 형태에 따라서 다음 인수들이 넘겨진다 : veth/macvlan/phys의 경우, (호스트 쪽의) 장치 이름.
723 </para>
724 <para>
725 <!--
726 Standard output from the script is logged at debug level.
727 Standard error is not logged, but can be captured by the
728 hook redirecting its standard error to standard output.
729 -->
730 스크립트의 표준출력은 debug 수준 로그로 납겨진다.
731 표준 에러는 로그로 남겨지지는 않지만, 표준 에러를 표준 출력으로 리다이렉션하여 로그로 남길 수 있다.
732 </para>
733 </listitem>
734 </varlistentry>
735 </variablelist>
736
737 </refsect2>
738
739 <refsect2>
740 <title><!-- New pseudo tty instance (devpts) -->새로운 pseudo tty 인스턴스(devpts)</title>
741 <para>
742 <!--
743 For stricter isolation the container can have its own private
744 instance of the pseudo tty.
745 -->
746 강한 고립을 위해 컨테이너는 자기자신만의 pseudo tty를 가질 수 있다.
747 </para>
748 <variablelist>
749 <varlistentry>
750 <term>
751 <option>lxc.pts</option>
752 </term>
753 <listitem>
754 <para>
755 <!--
756 If set, the container will have a new pseudo tty
757 instance, making this private to it. The value specifies
758 the maximum number of pseudo ttys allowed for a pts
759 instance (this limitation is not implemented yet).
760 -->
761 만약 지정되었다면, 컨테이너는 새 pseudo tty 인스턴스를 갖는다. 그리고 이것을 자기자신 전용으로 만든다. 지정하는 값은 pseudo tty의 최대 개수를 지정한다. (이 제한은 아직 구현되지 않았다)
762 </para>
763 </listitem>
764 </varlistentry>
765 </variablelist>
766 </refsect2>
767
768 <refsect2>
769 <title><!-- Container system console -->컨테이너 시스템 콘솔</title>
770 <para>
771 <!--
772 If the container is configured with a root filesystem and the
773 inittab file is setup to use the console, you may want to specify
774 where the output of this console goes.
775 -->
776 컨테이너에 루트 파일시스템이 설정되어 있고 inittab 파일에 콘솔을 사용하는 것이 설정되어 있다면, 콘솔의 출력을 어디로 할지 지정할 수 있다.
777 </para>
778 <variablelist>
779 <varlistentry>
780 <term>
781 <option>lxc.console.logfile</option>
782 </term>
783 <listitem>
784 <para>
785 <!--
786 Specify a path to a file where the console output will
787 be written.
788 -->
789 콘솔의 출력을 쓸 파일의 경로를 지정한다.
790 </para>
791 </listitem>
792 </varlistentry>
793 <varlistentry>
794 <term>
795 <option>lxc.console</option>
796 </term>
797 <listitem>
798 <para>
799 <!--
800 Specify a path to a device to which the console will be
801 attached. The keyword 'none' will simply disable the
802 console. This is dangerous once if have a rootfs with a
803 console device file where the application can write, the
804 messages will fall in the host.
805 -->
806 콘솔을 붙일 장치의 경로를 지정한다.
807 'none'이라는 값은 단순히 콘솔을 비활성화 시킨다. 만약 응용 프로그램이 쓸 수 있는 콘솔 장치 파일이 루트 파일시스템에 있으면, 메시지가 호스트 쪽에 출력되므로 이 설정은 위험할 수 있다.
808 </para>
809 </listitem>
810 </varlistentry>
811 </variablelist>
812 </refsect2>
813
814 <refsect2>
815 <title><!-- Console through the ttys -->tty를 통한 콘솔</title>
816 <para>
817 <!--
818 This option is useful if the container is configured with a root
819 filesystem and the inittab file is setup to launch a getty on the
820 ttys. The option specifies the number of ttys to be available for
821 the container. The number of gettys in the inittab file of the
822 container should not be greater than the number of ttys specified
823 in this option, otherwise the excess getty sessions will die and
824 respawn indefinitely giving annoying messages on the console or in
825 <filename>/var/log/messages</filename>.
826 -->
827 컨테이너에 루트 파일시스템이 설정되어 있고 inittab 파일에 tty에서 getty를 실행하는 것이 설정되어 있다면, 이 옵션은 유용하다.
828 이 옵션은 컨테이너에서 사용가능한 tty의 개수를 지정한다.
829 컨테이너의 inittab 파일에 설정된 getty의 개수는 이 옵션에서 정한 tty의 개수보다 크면 안된다. 그렇지 않으면 초과된 getty 세션은 무한히 죽고 다시 살아나기를 반복하며 콘솔이나 <filename>/var/log/messages</filename>에 계속 메시지를 띄울 것이다.
830 </para>
831 <variablelist>
832 <varlistentry>
833 <term>
834 <option>lxc.tty</option>
835 </term>
836 <listitem>
837 <para>
838 <!--
839 Specify the number of tty to make available to the
840 container.
841 -->
842 컨테이너가 만들 수 있는 tty의 개수를 지정한다.
843 </para>
844 </listitem>
845 </varlistentry>
846 </variablelist>
847 </refsect2>
848
849 <refsect2>
850 <title><!-- Console devices location -->콘솔 장치 위치</title>
851 <para>
852 <!--
853 LXC consoles are provided through Unix98 PTYs created on the
854 host and bind-mounted over the expected devices in the container.
855 By default, they are bind-mounted over <filename>/dev/console</filename>
856 and <filename>/dev/ttyN</filename>. This can prevent package upgrades
857 in the guest. Therefore you can specify a directory location (under
858 <filename>/dev</filename> under which LXC will create the files and
859 bind-mount over them. These will then be symbolically linked to
860 <filename>/dev/console</filename> and <filename>/dev/ttyN</filename>.
861 A package upgrade can then succeed as it is able to remove and replace
862 the symbolic links.
863 -->
864 LXC 콘솔은 호스트에서 생성된 Unix98 PTY와 컨테이너 내에 바인드 마운트될 장치들을 통해 제공된다. 기본적으로 <filename>/dev/console</filename>와 <filename>/dev/ttyN</filename>를 바인드 마운트 한다. 이것은 게스트에서 패키지 업그레이드를 방해하는 요인이 된다. 그래서 <filename>/dev</filename> 밑에 LXC가 파일을 생성하고 바인드 마운트할 디렉토리의 위치를 따로 지정해 줄 수 있다.
865 그리고 만들어진 파일들은 <filename>/dev/console</filename>와 <filename>/dev/ttyN</filename>에 심볼릭 링크된다.
866 심볼릭 링크들은 삭제하거나 대체하는 것이 가능하므로 패키지 업그레이드는 성공적으로 이루어질 수 있다.
867 </para>
868 <variablelist>
869 <varlistentry>
870 <term>
871 <option>lxc.devttydir</option>
872 </term>
873 <listitem>
874 <para>
875 <!--
876 Specify a directory under <filename>/dev</filename>
877 under which to create the container console devices.
878 -->
879 컨테이너 콘솔 장치를 생성할 <filename>/dev</filename> 밑의 디렉토리를 지정한다.
880 </para>
881 </listitem>
882 </varlistentry>
883 </variablelist>
884 </refsect2>
885
886 <refsect2>
887 <title><!-- /dev directory -->/dev 디렉토리</title>
888 <para>
889 <!--
890 By default, lxc creates a few symbolic links (fd,stdin,stdout,stderr)
891 in the container's <filename>/dev</filename> directory but does not
892 automatically create device node entries. This allows the container's
893 <filename>/dev</filename> to be set up as needed in the container
894 rootfs. If lxc.autodev is set to 1, then after mounting the container's
895 rootfs LXC will mount a fresh tmpfs under <filename>/dev</filename>
896 (limited to 100k) and fill in a minimal set of initial devices.
897 This is generally required when starting a container containing
898 a "systemd" based "init" but may be optional at other times. Additional
899 devices in the containers /dev directory may be created through the
900 use of the <option>lxc.hook.autodev</option> hook.
901 -->
902 기본적으로 lxc는 약간의 심볼릭 링크(fd, stdin, stdout, stderr)를 컨테이너의 <filename>/dev</filename> 디렉토리에 생성한다. 그러나 자동으로 장치 노드 항목들을 생성해주지 않는다. 컨테이너의 루트 파일시스템에서 필요로하는 <filename>/dev</filename>를 생성할 수 있게 하는 것이다. lxc.autodev가 1로 지정되었다면, 컨테이너 루트 파일시스템을 마운트 한 후, LXC가 <filename>/dev</filename> 밑에 새로운 tmpfs(최대 100k)를 마운트 해준다. 그리고 최소한의 장치만을 채워준다.
903 이것은 "systemd" 기반의 "init" 환경의 컨테이너를 시작할 때 일반적으로 필요하지만, 다른 환경의 경우는 선택적인 요소이다.
904 컨테이너의 부가적인 장치들은 <option>lxc.hook.autodev</option> 훅 스크립트를 사용하여 /dev 디렉토리에 생성할 수 있다.
905 </para>
906 <variablelist>
907 <varlistentry>
908 <term>
909 <option>lxc.autodev</option>
910 </term>
911 <listitem>
912 <para>
913 <!--
914 Set this to 0 to stop LXC from mounting and populating a minimal
915 <filename>/dev</filename> when starting the container.
916 -->
917 컨테이너 시작시 <filename>/dev</filename>을 마운트하고 최소한으로 <filename>/dev</filename>를 구성할지 지정한다. 0이면 해당 동작을 수행하지 않는다.
918 </para>
919 </listitem>
920 </varlistentry>
921 </variablelist>
922 </refsect2>
923
924 <refsect2>
925 <title><!-- Enable kmsg symlink -->kmsg 심볼릭링크 사용</title>
926 <para>
927 <!--
928 Enable creating /dev/kmsg as symlink to /dev/console. This defaults to 0.
929 -->
930 /dev/console에 대한 심볼릭 링크로 /dev/kmsg를 생성한다.
931 </para>
932 <variablelist>
933 <varlistentry>
934 <term>
935 <option>lxc.kmsg</option>
936 </term>
937 <listitem>
938 <para>
939 <!--
940 Set this to 1 to enable /dev/kmsg symlinking.
941 -->
942 이것을 1로 지정하면 /dev/kmsg 심볼릭링크를 사용한다.
943 </para>
944 </listitem>
945 </varlistentry>
946 </variablelist>
947 </refsect2>
948
949 <refsect2>
950 <title><!-- Mount points -->마운트 포인트</title>
951 <para>
952 <!--
953 The mount points section specifies the different places to be
954 mounted. These mount points will be private to the container
955 and won't be visible by the processes running outside of the
956 container. This is useful to mount /etc, /var or /home for
957 examples.
958 -->
959 마운트 포인트 섹션은 마운트가 될 각각의 장소를 지정한다.
960 이 마운트 포인트들은 컨테이너에서만 보이고 외부에서 실행하는 프로세스들에겐 보이지 않는다.
961 이는 예를 들어 /etc, /var, /home을 마운트할 때 유용하다.
962 </para>
963 <variablelist>
964 <varlistentry>
965 <term>
966 <option>lxc.mount</option>
967 </term>
968 <listitem>
969 <para>
970 <!--
971 specify a file location in
972 the <filename>fstab</filename> format, containing the
973 mount information. The mount target location can and in
974 most cases should be a relative path, which will become
975 relative to the mounted container root. For instance,
976 -->
977 마운트 정보를 담은 <filename>fstab</filename> 형식으로 된 파일의 위치를 지정한다.
978 이 마운트 대상 위치들은 대부분 상대경로로 되어 있으며, 이는 마운트된 컨테이너 루트에서의 상대경로를 의미한다.
979 </para>
980 <screen>
981 proc proc proc nodev,noexec,nosuid 0 0
982 </screen>
983 <para>
984 <!--
985 Will mount a proc filesystem under the container's /proc,
986 regardless of where the root filesystem comes from. This
987 is resilient to block device backed filesystems as well as
988 container cloning.
989 -->
990 위의 예는 proc 파일시스템을 컨테이너 루트 파일시스템의 위치와 상관없이 컨테이너의 /proc에 마운트시키는 예제이다. 이는 백엔드 파일시스템 블록 장치뿐만 아니라 컨테이너의 복제에도 유연하게 대처할 수 있다.
991 </para>
992 <para>
993 <!--
994 Note that when mounting a filesystem from an
995 image file or block device the third field (fs_vfstype)
996 cannot be auto as with
997 <citerefentry>
998 <refentrytitle>mount</refentrytitle>
999 <manvolnum>8</manvolnum>
1000 </citerefentry>
1001 but must be explicitly specified.
1002 -->
1003 이미지 파일이나 블록 장치에서 마운트된 파일시스템의 경우, 3번째 필드 (fs_vfstype)는
1004 <citerefentry>
1005 <refentrytitle>mount</refentrytitle>
1006 <manvolnum>8</manvolnum>
1007 </citerefentry>
1008 와 같이 auto를 지정할수 없으며, 명시적으로 지정해야 한다.
1009 </para>
1010 </listitem>
1011 </varlistentry>
1012
1013 <varlistentry>
1014 <term>
1015 <option>lxc.mount.entry</option>
1016 </term>
1017 <listitem>
1018 <para>
1019 <!--
1020 specify a mount point corresponding to a line in the
1021 fstab format.
1022 -->
1023 fstab의 형식으로, 한 줄당 마운트 포인트 하나를 지정한다.
1024 </para>
1025 </listitem>
1026 </varlistentry>
1027
1028 <varlistentry>
1029 <term>
1030 <option>lxc.mount.auto</option>
1031 </term>
1032 <listitem>
1033 <para>
1034 <!--
1035 specify which standard kernel file systems should be
1036 automatically mounted. This may dramatically simplify
1037 the configuration. The file systems are:
1038 -->
1039 일반적인 커널의 파일시스템을 자동으로 마운트할지 지정한다.
1040 이 옵션을 사용하면 설정을 매우 편하게 할 수 있다.
1041 사용할 수 있는 파일시스템들은 아래와 같다.
1042 </para>
1043 <itemizedlist>
1044 <listitem>
1045 <!--
1046 <para>
1047 <option>proc:mixed</option> (or <option>proc</option>):
1048 mount <filename>/proc</filename> as read-write, but
1049 remount <filename>/proc/sys</filename> and
1050 <filename>/proc/sysrq-trigger</filename> read-only
1051 for security / container isolation purposes.
1052 </para>
1053 -->
1054 <para>
1055 <option>proc:mixed</option> (or <option>proc</option>):
1056 <filename>/proc</filename> 을 읽기/쓰기 가능으로 마운트, 그러나 <filename>/proc/sys</filename>과 <filename>/proc/sysrq-trigger</filename>는 읽기 전용으로 다시 마운트 (보안상의 이유 및 컨테이너 고립을 위해)
1057 </para>
1058 </listitem>
1059 <listitem>
1060 <!--
1061 <para>
1062 <option>proc:rw</option>: mount
1063 <filename>/proc</filename> as read-write
1064 </para>
1065 -->
1066 <para>
1067 <option>proc:rw</option>:
1068 <filename>/proc</filename> 전체를 읽기/쓰기 가능으로 마운트
1069 </para>
1070 </listitem>
1071 <listitem>
1072 <!--
1073 <para>
1074 <option>sys:mixed</option> (or <option>sys</option>):
1075 mount <filename>/sys</filename> as read-only but with
1076 /sys/devices/virtual/net writable.
1077 </para>
1078 -->
1079 <para>
1080 <option>sys:mixed</option> (or <option>sys</option>):
1081 /sys/devices/virtual/net는 쓰기 가능으로, <filename>/sys</filename>는 읽기 전용으로 마운트.
1082 </para>
1083 </listitem>
1084 <listitem>
1085 <!--
1086 <para>
1087 <option>sys:ro</option>
1088 mount <filename>/sys</filename> as read-only
1089 for security / container isolation purposes.
1090 </para>
1091 -->
1092 <para>
1093 <option>sys:ro</option>:
1094 <filename>/sys</filename>를 읽기 전용으로 마운트 (보안상의 이유 및 컨테이너 고립을 위해)
1095 </para>
1096 </listitem>
1097 <listitem>
1098 <!--
1099 <para>
1100 <option>sys:rw</option>: mount
1101 <filename>/sys</filename> as read-write
1102 </para>
1103 -->
1104 <para>
1105 <option>sys:rw</option>:
1106 <filename>/sys</filename>를 읽기/쓰기 가능으로 마운트
1107 </para>
1108 </listitem>
1109 <listitem>
1110 <!--
1111 <para>
1112 <option>cgroup:mixed</option>:
1113 mount a tmpfs to <filename>/sys/fs/cgroup</filename>,
1114 create directories for all hierarchies to which
1115 the container is added, create subdirectories
1116 there with the name of the cgroup, and bind-mount
1117 the container's own cgroup into that directory.
1118 The container will be able to write to its own
1119 cgroup directory, but not the parents, since they
1120 will be remounted read-only
1121 </para>
1122 -->
1123 <para>
1124 <option>cgroup:mixed</option>:
1125 <filename>/sys/fs/cgroup</filename>를 tmpfs로 마운트.
1126 컨테이너가 추가될 모든 계층의 디렉토리 생성.
1127 cgroup 이름의 하위 디렉토리 생성.
1128 컨테이너 자신의 cgroup을 해당 디렉토리에 마운트.
1129 컨테이너는 자신의 cgroup 디렉토리에는 쓰기가 가능하지만 부모의 디렉토리는 읽기전용으로 마운트 하므로 쓰기가 불가능하다.
1130 </para>
1131 </listitem>
1132 <listitem>
1133 <!--
1134 <para>
1135 <option>cgroup:ro</option>: similar to
1136 <option>cgroup:mixed</option>, but everything will
1137 be mounted read-only.
1138 </para>
1139 -->
1140 <para>
1141 <option>cgroup:ro</option>:
1142 <option>cgroup:mixed</option>와 유사, 단, 전부 읽기 전용으로 마운트
1143 </para>
1144 </listitem>
1145 <listitem>
1146 <!--
1147 <para>
1148 <option>cgroup:rw</option>: similar to
1149 <option>cgroup:mixed</option>, but everything will
1150 be mounted read-write. Note that the paths leading
1151 up to the container's own cgroup will be writable,
1152 but will not be a cgroup filesystem but just part
1153 of the tmpfs of <filename>/sys/fs/cgroup</filename>
1154 </para>
1155 -->
1156 <para>
1157 <option>cgroup:rw</option>:
1158 <option>cgroup:mixed</option>와 유사, 단, 전부 읽기/쓰기 가능으로 마운트.
1159 컨테이너 자신의 cgroup에 이르기까지의 경로가 모두 쓰기 가능이 되지만, cgroup 파일시스템이 아닌 <filename>/sys/fs/cgroup</filename>의 tmpfs의 일부로써 존재하게 되는 것에 주의해야 한다.
1160 </para>
1161 </listitem>
1162 <listitem>
1163 <para>
1164 <!--
1165 <option>cgroup</option> (without specifier):
1166 defaults to <option>cgroup:rw</option> if the
1167 container retains the CAP_SYS_ADMIN capability,
1168 <option>cgroup:mixed</option> otherwise.
1169 -->
1170 <option>cgroup</option> (별다른 옵션 없이):
1171 컨테이너가 CAP_SYS_ADMIN capability를 유지하고 있는 경우 <option>cgroup:rw</option>을 기본으로 사용한다. 그렇지 않다면 <option>cgroup:mixed</option>를 사용한다.
1172 </para>
1173 </listitem>
1174 <listitem>
1175 <!--
1176 <para>
1177 <option>cgroup-full:mixed</option>:
1178 mount a tmpfs to <filename>/sys/fs/cgroup</filename>,
1179 create directories for all hierarchies to which
1180 the container is added, bind-mount the hierarchies
1181 from the host to the container and make everything
1182 read-only except the container's own cgroup. Note
1183 that compared to <option>cgroup</option>, where
1184 all paths leading up to the container's own cgroup
1185 are just simple directories in the underlying
1186 tmpfs, here
1187 <filename>/sys/fs/cgroup/$hierarchy</filename>
1188 will contain the host's full cgroup hierarchy,
1189 albeit read-only outside the container's own cgroup.
1190 This may leak quite a bit of information into the
1191 container.
1192 </para>
1193 -->
1194 <para>
1195 <option>cgroup-full:mixed</option>:
1196 <filename>/sys/fs/cgroup</filename>을 tmpfs로 마운트.
1197 컨테이너가 추가될 모든 계층의 디렉토리 생성.
1198 호스트의 디렉토리들을 컨테이너로 바인드 마운트하고 컨테이너 자신의 cgroup을 제외한 모든 디렉토리는 읽기 전용으로 변경.
1199 비교하자면, <option>cgroup</option>의 경우에는 컨테이너 자신의 cgroup에 이르기까지 모든 경로는 단순하게 tmpfs 아래에 있는 디렉토리에 불과하다. 하지만, 여기서는 비록 컨테이너 자신의 cgroup 이외에는 모두 읽기 전용이긴 하나 <filename>/sys/fs/cgroup/$hierarchy</filename>이 호스트의 모든 cgroup 계층구조를 포함하고 있다.
1200 이는 컨테이너에게 너무 많은 정보를 노출시킬 수 있다.
1201 </para>
1202 </listitem>
1203 <listitem>
1204 <!--
1205 <para>
1206 <option>cgroup-full:ro</option>: similar to
1207 <option>cgroup-full:mixed</option>, but everything
1208 will be mounted read-only.
1209 </para>
1210 -->
1211 <para>
1212 <option>cgroup-full:ro</option>:
1213 <option>cgroup-full:mixed</option>와 유사, 단, 전부 읽기 전용으로 마운트
1214 </para>
1215 </listitem>
1216 <listitem>
1217 <!--
1218 <para>
1219 <option>cgroup-full:rw</option>: similar to
1220 <option>cgroup-full:mixed</option>, but everything
1221 will be mounted read-write. Note that in this case,
1222 the container may escape its own cgroup. (Note also
1223 that if the container has CAP_SYS_ADMIN support
1224 and can mount the cgroup filesystem itself, it may
1225 do so anyway.)
1226 </para>
1227 -->
1228 <para>
1229 <option>cgroup-full:rw</option>:
1230 <option>cgroup-full:mixed</option>와 유사, 단, 전부 읽기/쓰기 가능으로 마운트.
1231 이 경우는 컨테이너가 자기자신의 cgroup을 벗어날 수 있다. (만약 컨테이너가 CAP_SYS_ADMIN을 갖고 있다면, cgroup 파일시스템 자체를 마운트할 수 있음을 주의해야 한다. 이렇게 하면 같은 결과를 가져올 수 있다)
1232 </para>
1233 </listitem>
1234 <listitem>
1235 <para>
1236 <!--
1237 <option>cgroup-full</option> (without specifier):
1238 defaults to <option>cgroup-full:rw</option> if the
1239 container retains the CAP_SYS_ADMIN capability,
1240 <option>cgroup-full:mixed</option> otherwise.
1241 -->
1242 <option>cgroup-full</option> (별다른 옵션 없이):
1243 컨테이너가 CAP_SYS_ADMIN capability를 유지하고 있는 경우 <option>cgroup-full:rw</option>을 기본으로 사용한다. 그렇지 않다면 <option>cgroup-full:mixed</option>를 사용한다.
1244 </para>
1245 </listitem>
1246 </itemizedlist>
1247 <para>
1248 <!--
1249 Note that if automatic mounting of the cgroup filesystem
1250 is enabled, the tmpfs under
1251 <filename>/sys/fs/cgroup</filename> will always be
1252 mounted read-write (but for the <option>:mixed</option>
1253 and <option>:ro</option> cases, the individual
1254 hierarchies,
1255 <filename>/sys/fs/cgroup/$hierarchy</filename>, will be
1256 read-only). This is in order to work around a quirk in
1257 Ubuntu's
1258 <citerefentry>
1259 <refentrytitle>mountall</refentrytitle>
1260 <manvolnum>8</manvolnum>
1261 </citerefentry>
1262 command that will cause containers to wait for user
1263 input at boot if
1264 <filename>/sys/fs/cgroup</filename> is mounted read-only
1265 and the container can't remount it read-write due to a
1266 lack of CAP_SYS_ADMIN.
1267 -->
1268 cgroup 파일시스템이 자동으로 마운트되는게 활성화되어 있다면, <filename>/sys/fs/cgroup</filename> 밑의 tmpfs는 언제나 읽기/쓰기 가능으로 마운트 된다.(단, <option>:mixed</option>과 <option>:ro</option>의 경우에는 각각 계층 <filename>/sys/fs/cgroup/$hierarchy</filename>이 읽기전용이 될 수는 있다)
1269 아래의 Ubuntu 명령어에 대응하기 위함이다.
1270 <citerefentry>
1271 <refentrytitle>mountall</refentrytitle>
1272 <manvolnum>8</manvolnum>
1273 </citerefentry>
1274 해당 명령어는 컨테이너 부팅시에 <filename>/sys/fs/cgroup</filename>가 읽기전용으로 마운트되어 있고, 컨테이너가 CAP_SYS_ADMIN을 갖고 있지 않아 이를 읽기/쓰기 전용으로 다시 마운트 못할 경우, 부팅시에 사용자의 입력을 기다리게 만들기 때문이다.
1275 </para>
1276 <para>
1277 <!--
1278 Examples:
1279 -->
1280 예제:
1281 </para>
1282 <programlisting>
1283 lxc.mount.auto = proc sys cgroup
1284 lxc.mount.auto = proc:rw sys:rw cgroup-full:rw
1285 </programlisting>
1286 </listitem>
1287 </varlistentry>
1288
1289 </variablelist>
1290 </refsect2>
1291
1292 <refsect2>
1293 <title><!-- Root file system -->루트 파일시스템</title>
1294 <para>
1295 <!--
1296 The root file system of the container can be different than that
1297 of the host system.
1298 -->
1299 컨테이너의 루트 파일시스템은 호스트 시스템과 다르게 구성할 수 있다.
1300 </para>
1301 <variablelist>
1302 <varlistentry>
1303 <term>
1304 <option>lxc.rootfs</option>
1305 </term>
1306 <listitem>
1307 <para>
1308 <!--
1309 specify the root file system for the container. It can
1310 be an image file, a directory or a block device. If not
1311 specified, the container shares its root file system
1312 with the host.
1313 -->
1314 컨테이너의 루트 파일시스템을 지정한다. 이미지 파일 또는 블록 장치의 디렉토리가 될 수도 있다. 만약 지정되지 않으면 컨테이너는 자신의 루트 파일시스템을 호스트와 공유한다.
1315 </para>
1316 <para>
1317 <!--
1318 For directory or simple block-device backed containers,
1319 a pathname can be used. If the rootfs is backed by a nbd
1320 device, then <filename>nbd:file:1</filename> specifies that
1321 <filename>file</filename> should be attached to a nbd device,
1322 and partition 1 should be mounted as the rootfs.
1323 <filename>nbd:file</filename> specifies that the nbd device
1324 itself should be mounted. <filename>overlayfs:/lower:/upper</filename>
1325 specifies that the rootfs should be an overlay with <filename>/upper</filename>
1326 being mounted read-write over a read-only mount of <filename>/lower</filename>.
1327 <filename>aufs:/lower:/upper</filename> does the same using aufs in place
1328 of overlayfs. <filename>loop:/file</filename> tells lxc to attach
1329 <filename>/file</filename> to a loop device and mount the loop device.
1330 -->
1331 디렉토리 또는 간단한 블록 장치로 구성된 컨테이너를 위해서 경로이름이 사용될 수 있다. 만약 루트 파일시스템이 nbd 장치의 경우, <filename>nbd:file:1</filename>는 <filename>file</filename>을 nbd 장치로 사용하고 1번 파티션이 루트 파일시스템으로 마운트되도록 지정한다.
1332 <filename>nbd:file</filename>는 nbd 장치 자체가 마운트되어야 한다고 지정한다.
1333 <filename>overlayfs:/lower:/upper</filename>는 루트 파일시스템이 읽기전용으로 마운트된 <filename>/lower</filename>를 <filename>/upper</filename>가 읽기/쓰기 가능으로 오버레이 마운트되도록 지정한다.
1334 <filename>aufs:/lower:/upper</filename>는 aufs에서 위와같이 지정한다.
1335 <filename>loop:/file</filename>는 lxc가 <filename>/file</filename>을 loop 장치로 사용하고 loop 장치를 마운트하도록 지정한다.
1336 </para>
1337 </listitem>
1338 </varlistentry>
1339
1340 <varlistentry>
1341 <term>
1342 <option>lxc.rootfs.mount</option>
1343 </term>
1344 <listitem>
1345 <para>
1346 <!--
1347 where to recursively bind <option>lxc.rootfs</option>
1348 before pivoting. This is to ensure success of the
1349 <citerefentry>
1350 <refentrytitle><command>pivot_root</command></refentrytitle>
1351 <manvolnum>8</manvolnum>
1352 </citerefentry>
1353 syscall. Any directory suffices, the default should
1354 generally work.
1355 -->
1356 루트파일시스템을 변경하기 전에, <option>lxc.rootfs</option>을 어디에 재귀적으로 바인드할지 정한다. 이는 다음 시스템콜의 성공을 보장한다.
1357 <citerefentry>
1358 <refentrytitle><command>pivot_root</command></refentrytitle>
1359 <manvolnum>8</manvolnum>
1360 </citerefentry>
1361 어떤 디렉토리도 좋으며, 기본값으로도 보통 동작할 것이다.
1362 </para>
1363 </listitem>
1364 </varlistentry>
1365
1366 <varlistentry>
1367 <term>
1368 <option>lxc.rootfs.options</option>
1369 </term>
1370 <listitem>
1371 <para>
1372 <!--
1373 extra mount options to use when mounting the rootfs.
1374 -->
1375 루트 파일시스템을 마운트 할때 사용할 부가적인 마운트 옵션.
1376 </para>
1377 </listitem>
1378 </varlistentry>
1379
1380 </variablelist>
1381 </refsect2>
1382
1383 <refsect2>
1384 <title><!-- Control group -->컨트롤 그룹</title>
1385 <para>
1386 <!--
1387 The control group section contains the configuration for the
1388 different subsystem. <command>lxc</command> does not check the
1389 correctness of the subsystem name. This has the disadvantage
1390 of not detecting configuration errors until the container is
1391 started, but has the advantage of permitting any future
1392 subsystem.
1393 -->
1394 컨트롤 그룹 섹션은 (lxc와는) 다른 서브시스템의 설정을 포함한다.
1395 <command>lxc</command>는 서브시스템의 이름을 정확히 체크하지 않는다.
1396 이는 컨테이너를 시작할 때까지는 설정 상의 에러를 잡아내기 힘들게 한다.
1397 그러나 다른 차후에 들어올 수 있는 서브시스템을 지원할 수 있는 장점도 있다.
1398 </para>
1399 <variablelist>
1400 <varlistentry>
1401 <term>
1402 <option>lxc.cgroup.[subsystem name]</option>
1403 </term>
1404 <listitem>
1405 <para>
1406 <!--
1407 specify the control group value to be set. The
1408 subsystem name is the literal name of the control group
1409 subsystem. The permitted names and the syntax of their
1410 values is not dictated by LXC, instead it depends on the
1411 features of the Linux kernel running at the time the
1412 container is started,
1413 eg. <option>lxc.cgroup.cpuset.cpus</option>
1414 -->
1415 지정한 컨트롤 그룹의 값을 지정한다.
1416 서브시스템의 이름은 컨트롤 그룹에서의 이름이다.
1417 사용가능한 이름이나 값의 문법에 대해서는 LXC에서 따로 신경쓰지 않으며, 컨테이너가 시작하는 시점에 리눅스 커널이 해당 기능을 지원하는지에 달려있다.
1418 예를 들면 <option>lxc.cgroup.cpuset.cpus</option>이다.
1419 </para>
1420 </listitem>
1421 </varlistentry>
1422 </variablelist>
1423 </refsect2>
1424
1425 <refsect2>
1426 <title>Capabilities</title>
1427 <para>
1428 <!--
1429 The capabilities can be dropped in the container if this one
1430 is run as root.
1431 -->
1432 컨테이너가 root로 실행된다면, 컨테이너 내에서 capability를 제거할 수 있다.
1433 </para>
1434 <variablelist>
1435 <varlistentry>
1436 <term>
1437 <option>lxc.cap.drop</option>
1438 </term>
1439 <listitem>
1440 <para>
1441 <!--
1442 Specify the capability to be dropped in the container. A
1443 single line defining several capabilities with a space
1444 separation is allowed. The format is the lower case of
1445 the capability definition without the "CAP_" prefix,
1446 eg. CAP_SYS_MODULE should be specified as
1447 sys_module. See
1448 <citerefentry>
1449 <refentrytitle><command>capabilities</command></refentrytitle>
1450 <manvolnum>7</manvolnum>
1451 </citerefentry>,
1452 -->
1453 컨테이너에서 제거할 capability를 지정한다.
1454 한 줄에 여러개의 capability를 공백(space)으로 구분하여 정의할 수 있다.
1455 형식은 capability 정의에서 "CAP_" 접두사를 빼고 소문자로 작성하는 것이다. 예를들어 CAP_SYS_MODULE의 경우는 sys_module이다.
1456 아래를 참조할 수 있다.
1457 <citerefentry>
1458 <refentrytitle><command>capabilities</command></refentrytitle>
1459 <manvolnum>7</manvolnum>
1460 </citerefentry>
1461 </para>
1462 </listitem>
1463 </varlistentry>
1464 <varlistentry>
1465 <term>
1466 <option>lxc.cap.keep</option>
1467 </term>
1468 <listitem>
1469 <para>
1470 <!--
1471 Specify the capability to be kept in the container. All other
1472 capabilities will be dropped. When a special value of "none" is
1473 encountered, lxc will clear any keep capabilities specified up
1474 to this point. A value of "none" alone can be used to drop all
1475 capabilities.
1476 -->
1477 컨테이너에서 유지할 capability를 지정한다.
1478 다른 capability는 모두 제거될 것이다. "none"이라는 값을 지정하면, lxc는 해당 시점에서 갖고 있던 모든 capability를 제거한다.
1479 모든 capability를 제거하기 위해서는 "none" 하나만 사용하면 된다.
1480 </para>
1481 </listitem>
1482 </varlistentry>
1483 </variablelist>
1484 </refsect2>
1485
1486 <refsect2>
1487 <title><!-- Apparmor profile -->Apparmor 프로파일</title>
1488 <para>
1489 <!--
1490 If lxc was compiled and installed with apparmor support, and the host
1491 system has apparmor enabled, then the apparmor profile under which the
1492 container should be run can be specified in the container
1493 configuration. The default is <command>lxc-container-default</command>.
1494 -->
1495 lxc가 apparmor를 지원하도록 컴파일된 후 설치되었고, 호스트 시스템에서 apparmor가 활성화되었다면, 컨테이너에서 따라야할 apparmor 프로파일을 컨테이너 설정에서 지정할 수 있다. 기본값은 <command>lxc-container-default</command>이다.
1496 </para>
1497 <variablelist>
1498 <varlistentry>
1499 <term>
1500 <option>lxc.aa_profile</option>
1501 </term>
1502 <listitem>
1503 <para>
1504 <!--
1505 Specify the apparmor profile under which the container should
1506 be run. To specify that the container should be unconfined,
1507 use
1508 -->
1509 컨테이너가 따라야할 apparmor 프로파일을 지정한다.
1510 컨테이너가 apparmor로 인한 제한을 받지 않도록 하려면, 아래와 같이 지정하면 된다.
1511 </para>
1512 <programlisting>lxc.aa_profile = unconfined</programlisting>
1513 </listitem>
1514 </varlistentry>
1515 <varlistentry>
1516 <term>
1517 <option>lxc.aa_allow_incomplete</option>
1518 </term>
1519 <listitem>
1520 <para>
1521 <!--
1522 Apparmor profiles are pathname based. Therefore many file
1523 restrictions require mount restrictions to be effective against
1524 a determined attacker. However, these mount restrictions are not
1525 yet implemented in the upstream kernel. Without the mount
1526 restrictions, the apparmor profiles still protect against accidental
1527 damager.
1528 -->
1529 apparmor 프로파일은 경로이름 기반이므로, 공격자로부터 효과적으로 파일 제한을 하기위해서는 마운트 제한이 요구된다.
1530 하지만 이 마운트 제한들은 upstream 커널에서는 구현되어 있지 않다.
1531 마운트 제한 없이도, apparmor 프로파일은 우연한 손상에 대해서 보호가 가능하다.
1532 </para>
1533 <para>
1534 <!--
1535 If this flag is 0 (default), then the container will not be
1536 started if the kernel lacks the apparmor mount features, so that a
1537 regression after a kernel upgrade will be detected. To start the
1538 container under partial apparmor protection, set this flag to 1.
1539 -->
1540 만약 이 플래그가 0(기본값)이라면, 커널에 apparmor의 마운트 기능이 부족했을때 컨테이너가 시작되지 않는다. 커널을 업그레이드한 후에 해당 기능이 빠졌는지 여부를 검사하기 위함이다. 부분적인 apparmor 보호 하에서도 컨테이너를 시작하려면, 플래그를 1로 지정하면 된다.
1541 </para>
1542 </listitem>
1543 </varlistentry>
1544 </variablelist>
1545 </refsect2>
1546
1547 <refsect2>
1548 <title><!-- SELinux context -->SELinux 컨텍스트</title>
1549 <para>
1550 <!--
1551 If lxc was compiled and installed with SELinux support, and the host
1552 system has SELinux enabled, then the SELinux context under which the
1553 container should be run can be specified in the container
1554 configuration. The default is <command>unconfined_t</command>,
1555 which means that lxc will not attempt to change contexts.
1556 See @DATADIR@/lxc/selinux/lxc.te for an example policy and more
1557 information.
1558 -->
1559 lxc가 SELinux를 지원하도록 컴파일된 후 설치되었고, 호스트 시스템에서 SELinux 컨텍스트가 활성화되었다면, 컨테이너에서 따라야할 SELinux 컨텍스트를 컨테이너 설정에서 지정할 수 있다.
1560 기본값은 <command>unconfined_t</command>이다. 이는 lxc는 컨텍스트를 변경하지않음을 의미한다.
1561 정책 예제와 추가적인 정보를 원한다면 @DATADIR@/lxc/selinux/lxc.te를 참고하면 된다.
1562 </para>
1563 <variablelist>
1564 <varlistentry>
1565 <term>
1566 <option>lxc.se_context</option>
1567 </term>
1568 <listitem>
1569 <para>
1570 <!--
1571 Specify the SELinux context under which the container should
1572 be run or <command>unconfined_t</command>. For example
1573 -->
1574 컨테이너가 따라야할 SELinux 컨텍스트를 지정하거나, <command>unconfined_t</command>를 지정할 수 있다. 예를 들어 아래와 같이 지정 가능하다.
1575 </para>
1576 <programlisting>lxc.se_context = system_u:system_r:lxc_t:s0:c22</programlisting>
1577 </listitem>
1578 </varlistentry>
1579 </variablelist>
1580 </refsect2>
1581
1582 <refsect2>
1583 <title><!-- Seccomp configuration -->Seccomp 설정</title>
1584 <para>
1585 <!--
1586 A container can be started with a reduced set of available
1587 system calls by loading a seccomp profile at startup. The
1588 seccomp configuration file must begin with a version number
1589 on the first line, a policy type on the second line, followed
1590 by the configuration.
1591 -->
1592 컨테이너는 seccomp 프로파일을 로드하여 사용가능한 시스템콜의 수를 줄인 체로 실행할 수 있다.
1593 seccomp 설정파일은 첫번째 행이 버전번호, 두번째 행이 정책 타입, 시작하며 그 이후에 설정 사항들이 포함되어야 한다.
1594 </para>
1595 <para>
1596 <!--
1597 Versions 1 and 2 are currently supported. In version 1, the
1598 policy is a simple whitelist. The second line therefore must
1599 read "whitelist", with the rest of the file containing one (numeric)
1600 sycall number per line. Each syscall number is whitelisted,
1601 while every unlisted number is blacklisted for use in the container
1602 -->
1603 현재는 버전1과 2만 지원된다. 버전 1에서는 정책은 단순한 화이트리스트이다. 그러므로 두번째 라인은 반드시 "whitelist"여야 한다. 파일의 나머지 내용은 한 줄에 하나의 시스템콜 번호로 채워진다. 화이트리스트에 없는 번호는 컨테이너에서 블랙리스트로 들어간다.
1604 </para>
1605
1606 <para>
1607 <!--
1608 In version 2, the policy may be blacklist or whitelist,
1609 supports per-rule and per-policy default actions, and supports
1610 per-architecture system call resolution from textual names.
1611 -->
1612 버전 2에서는 폴리시는 블랙리스트 또는 화이트리스트가 될 수 있다. 그리고 각 규칙와 각 정책의 기본 동작, 아키텍쳐별 시스템콜 설정, 텍스트로된 이름을 지원한다.
1613 </para>
1614 <para>
1615 <!--
1616 An example blacklist policy, in which all system calls are
1617 allowed except for mknod, which will simply do nothing and
1618 return 0 (success), looks like:
1619 -->
1620 아래는 블랙리스트 정책 예제이다. 아래 정책에서는 mknod를 제외한 모든 시스템콜이 허용된다. mknod시에는 아무것도 수행하지 않고 0(성공)을 반환한다.
1621 </para>
1622 <screen>
1623 2
1624 blacklist
1625 mknod errno 0
1626 </screen>
1627 <variablelist>
1628 <varlistentry>
1629 <term>
1630 <option>lxc.seccomp</option>
1631 </term>
1632 <listitem>
1633 <para>
1634 <!--
1635 Specify a file containing the seccomp configuration to
1636 load before the container starts.
1637 -->
1638 컨테이너가 시작되기전에 읽어올 seccomp 설정이 담긴 파일을 지정한다.
1639 </para>
1640 </listitem>
1641 </varlistentry>
1642 </variablelist>
1643 </refsect2>
1644
1645 <refsect2>
1646 <title><!-- UID mappings -->UID 매핑</title>
1647 <para>
1648 <!--
1649 A container can be started in a private user namespace with
1650 user and group id mappings. For instance, you can map userid
1651 0 in the container to userid 200000 on the host. The root
1652 user in the container will be privileged in the container,
1653 but unprivileged on the host. Normally a system container
1654 will want a range of ids, so you would map, for instance,
1655 user and group ids 0 through 20,000 in the container to the
1656 ids 200,000 through 220,000.
1657 -->
1658 컨테이너는 사용자와 그룹 ID 매핑을 통해 자신만의 사용자 네임스페이스 내에서 실행될수 있다.
1659 예를 들어서 컨테이너의 UID 0번을 호스트의 UID 200000으로 매핑할 수 있다. 컨테이너의 루트 사용자는 컨테이너에서는 특권을 가지고 있지만, 호스트에서는 특권을 가지고 있지 않게 된다.
1660 보통 시스템 컨테이너는 ID들의 범위를 지정하려 할텐데 그 역시도 지정 가능하다. 예를 들어서, 컨테이너의 UID와 GID를 0 ~ 20,000를 호스트의 200,000 ~ 220,000로 설정 가능하다.
1661 </para>
1662 <variablelist>
1663 <varlistentry>
1664 <term>
1665 <option>lxc.id_map</option>
1666 </term>
1667 <listitem>
1668 <para>
1669 <!--
1670 Four values must be provided. First a character, either
1671 'u', or 'g', to specify whether user or group ids are
1672 being mapped. Next is the first userid as seen in the
1673 user namespace of the container. Next is the userid as
1674 seen on the host. Finally, a range indicating the number
1675 of consecutive ids to map.
1676 -->
1677 4개의 값이 제공되어야 한다. 첫 번째는 'u', 'g', 'b' 문자로 각각 UID, GID, 또는 UID 및 GID 를 가리킨다. 그 다음은 사용자 네임스페이스내에서의 UID, 그다음은 호스트의 UID, 그리고 마지막으로 매핑할 ID의 범위를 지정한다.
1678 </para>
1679 </listitem>
1680 </varlistentry>
1681 </variablelist>
1682 </refsect2>
1683
1684 <refsect2>
1685 <title><!-- Container hooks -->컨테이너 훅</title>
1686 <para>
1687 <!--
1688 Container hooks are programs or scripts which can be executed
1689 at various times in a container's lifetime.
1690 -->
1691 컨테이너 훅은 컨테이너의 생명주기 내에서 다양한 상황에 실행되는 프로그램 또는 스크립트이다.
1692 </para>
1693 <para>
1694 <!--
1695 When a container hook is executed, information is passed both
1696 as command line arguments and through environment variables.
1697 The arguments are:
1698 <itemizedlist>
1699 <listitem><para> Container name. </para></listitem>
1700 <listitem><para> Section (always 'lxc'). </para></listitem>
1701 <listitem><para> The hook type (i.e. 'clone' or 'pre-mount'). </para></listitem>
1702 <listitem><para> Additional arguments In the
1703 case of the clone hook, any extra arguments passed to
1704 lxc-clone will appear as further arguments to the hook. </para></listitem>
1705 </itemizedlist>
1706 The following environment variables are set:
1707 <itemizedlist>
1708 <listitem><para> LXC_NAME: is the container's name. </para></listitem>
1709 <listitem><para> LXC_ROOTFS_MOUNT: the path to the mounted root filesystem. </para></listitem>
1710 <listitem><para> LXC_CONFIG_FILE: the path to the container configuration file. </para></listitem>
1711 <listitem><para> LXC_SRC_NAME: in the case of the clone hook, this is the original container's name. </para></listitem>
1712 <listitem><para> LXC_ROOTFS_PATH: this is the lxc.rootfs entry for the container. Note this is likely not where the mounted rootfs is to be found, use LXC_ROOTFS_MOUNT for that. </para></listitem>
1713 </itemizedlist>
1714 -->
1715 컨테이너 훅이 실행될 때, 정보는 명령어 인수나 환경 변수를 통해 넘겨진다.
1716 인수 :
1717 <itemizedlist>
1718 <listitem><para>컨테이너 이름</para></listitem>
1719 <listitem><para>섹션 (보통 'lxc')</para></listitem>
1720 <listitem><para>훅 종류 ('clone', 'pre-mount' 등)</para></listitem>
1721 <listitem><para>clone 훅일 경우 추가인수. lxc-clone에 전달된 인수가 훅으로 전달된다.</para></listitem>
1722 </itemizedlist>
1723 환경 변수 :
1724 <itemizedlist>
1725 <listitem><para> LXC_NAME: 컨테이너 이름</para></listitem>
1726 <listitem><para> LXC_ROOTFS_MOUNT: 마운트될 루트 파일시스템의 경로</para></listitem>
1727 <listitem><para> LXC_CONFIG_FILE: 컨테이너 설정파일의 경로</para></listitem>
1728 <listitem><para> LXC_SRC_NAME: clone 훅의 경우, 원본 컨테이너의 이름</para></listitem>
1729 <listitem><para> LXC_ROOTFS_PATH: 컨테이너의 lxc.rootfs 항목. 이 것은 마운트된 루트 파일시스템을 나타내지 않음에 주의해야한다. 그 목적을 위해서는 LXC_ROOTFS_MOUNT를 사용해야 한다.</para></listitem>
1730 </itemizedlist>
1731 </para>
1732 <para>
1733 <!--
1734 Standard output from the hooks is logged at debug level.
1735 Standard error is not logged, but can be captured by the
1736 hook redirecting its standard error to standard output.
1737 -->
1738 훅의 표준출력은 debug 수준 로그로 납겨진다.
1739 표준 에러는 로그로 남겨지지는 않지만, 표준 에러를 표준 출력으로 리
1740 다이렉션하여 로그로 남길 수 있다.
1741 </para>
1742 <variablelist>
1743 <varlistentry>
1744 <term>
1745 <option>lxc.hook.pre-start</option>
1746 </term>
1747 <listitem>
1748 <para>
1749 <!--
1750 A hook to be run in the host's namespace before the
1751 container ttys, consoles, or mounts are up.
1752 -->
1753 컨테이너의 tty, 콘솔의 생성 및 마운트가 되기 전에, 호스트의 네임스페이스에서 실행되는 훅.
1754 </para>
1755 </listitem>
1756 </varlistentry>
1757 </variablelist>
1758 <variablelist>
1759 <varlistentry>
1760 <term>
1761 <option>lxc.hook.pre-mount</option>
1762 </term>
1763 <listitem>
1764 <para>
1765 <!--
1766 A hook to be run in the container's fs namespace but before
1767 the rootfs has been set up. This allows for manipulation
1768 of the rootfs, i.e. to mount an encrypted filesystem. Mounts
1769 done in this hook will not be reflected on the host (apart from
1770 mounts propagation), so they will be automatically cleaned up
1771 when the container shuts down.
1772 -->
1773 컨테이너의 마운트 네임스페이스 안에서 루트 파일시스템이 세팅되기 전에 실행되는 훅.
1774 예를 들어 암호화 파일시스템을 마운트 하는 등의 루트 파일시스템을 조작할 수 있게 해준다. 이 훅에서 마운트를 하더라도 호스트에는 반영되지 않는다. (mounts propagation은 제외) 그래서 컨테이너가 종료되면 자동적으로 정리된다.
1775 </para>
1776 </listitem>
1777 </varlistentry>
1778 </variablelist>
1779 <variablelist>
1780 <varlistentry>
1781 <term>
1782 <option>lxc.hook.mount</option>
1783 </term>
1784 <listitem>
1785 <para>
1786 <!--
1787 A hook to be run in the container's namespace after
1788 mounting has been done, but before the pivot_root.
1789 -->
1790 마운트가 완료된 후 pivot_root 전에, 컨테이너의 마운트 네임스페이스에서 실행되는 훅.
1791 </para>
1792 </listitem>
1793 </varlistentry>
1794 </variablelist>
1795 <variablelist>
1796 <varlistentry>
1797 <term>
1798 <option>lxc.hook.autodev</option>
1799 </term>
1800 <listitem>
1801 <para>
1802 <!--
1803 A hook to be run in the container's namespace after
1804 mounting has been done and after any mount hooks have
1805 run, but before the pivot_root, if
1806 <option>lxc.autodev</option> == 1.
1807 The purpose of this hook is to assist in populating the
1808 /dev directory of the container when using the autodev
1809 option for systemd based containers. The container's /dev
1810 directory is relative to the
1811 ${<option>LXC_ROOTFS_MOUNT</option>} environment
1812 variable available when the hook is run.
1813 -->
1814 <option>lxc.autodev</option> == 1가 지정되어 있는 경우에 마운트 완료시 마운트 훅도 실행 된 후 pivot_root전에, 컨테이너의 마운트 네임스페이스에서 실행되는 훅.
1815 이 훅의 목적은 systemd 기반의 컨테이너에서 autodev 옵션을 사용하는 경우 /dev 디렉토리를 구성할 때 도움을 주기위한 것이다.
1816 훅이 실행될 때, 컨테이너의 /dev 경로는 ${<option>LXC_ROOTFS_MOUNT</option>} 환경변수에 대한 경로이다.
1817 </para>
1818 </listitem>
1819 </varlistentry>
1820 </variablelist>
1821 <variablelist>
1822 <varlistentry>
1823 <term>
1824 <option>lxc.hook.start</option>
1825 </term>
1826 <listitem>
1827 <para>
1828 <!--
1829 A hook to be run in the container's namespace immediately
1830 before executing the container's init. This requires the
1831 program to be available in the container.
1832 -->
1833 컨테이너의 init이 실행되기 직전에 컨테이너의 네임스페이스에서 실행되는 훅. 컨테이너 내에서 해당 프로그램이 실행될 수 있는 상태여야 한다.
1834 </para>
1835 </listitem>
1836 </varlistentry>
1837 </variablelist>
1838 <variablelist>
1839 <varlistentry>
1840 <term>
1841 <option>lxc.hook.post-stop</option>
1842 </term>
1843 <listitem>
1844 <para>
1845 <!--
1846 A hook to be run in the host's namespace after the
1847 container has been shut down.
1848 -->
1849 컨테이너가 종료된 후 호스트의 네임스페이스에서 실행되는 훅.
1850 </para>
1851 </listitem>
1852 </varlistentry>
1853 </variablelist>
1854 <variablelist>
1855 <varlistentry>
1856 <term>
1857 <option>lxc.hook.clone</option>
1858 </term>
1859 <listitem>
1860 <para>
1861 <!--
1862 A hook to be run when the container is cloned to a new one.
1863 See <citerefentry><refentrytitle><command>lxc-clone</command></refentrytitle>
1864 <manvolnum>1</manvolnum></citerefentry> for more information.
1865 -->
1866 컨테이너가 새로운 컨테이너로 복제되었을 경우 실행되는 훅. 아래를 참조하면 더 자세한 정보를 얻을 수 있다.
1867 <citerefentry><refentrytitle><command>lxc-clone</command></refentrytitle>
1868 <manvolnum>1</manvolnum></citerefentry>
1869 </para>
1870 </listitem>
1871 </varlistentry>
1872 </variablelist>
1873 <variablelist>
1874 <varlistentry>
1875 <term>
1876 <option>lxc.hook.destroy</option>
1877 </term>
1878 <listitem>
1879 <para>
1880 <!--
1881 A hook to be run when the container is destroyed.
1882 -->
1883 컨테이너가 제거될 때 실행되는 훅.
1884 </para>
1885 </listitem>
1886 </varlistentry>
1887 </variablelist>
1888 </refsect2>
1889
1890 <refsect2>
1891 <title><!-- Container hooks Environment Variables -->컨테이너 훅 환경 변수</title>
1892 <para>
1893 <!--
1894 A number of environment variables are made available to the startup
1895 hooks to provide configuration information and assist in the
1896 functioning of the hooks. Not all variables are valid in all
1897 contexts. In particular, all paths are relative to the host system
1898 and, as such, not valid during the <option>lxc.hook.start</option> hook.
1899 -->
1900 훅이 시작될때 설정 정보를 제공하고 훅의 기능을 돕기 위해 몇가지 환경 변수가 사용 가능하다.
1901 모든 컨텍스트에서 모든 변수가 사용 가능하진 않다. 특히, 모든 경로는 호스트 시스템에서의 경로이며, <option>lxc.hook.start</option> 훅에서는 유효하지 않다.
1902 </para>
1903 <variablelist>
1904 <varlistentry>
1905 <term>
1906 <option>LXC_NAME</option>
1907 </term>
1908 <listitem>
1909 <para>
1910 <!--
1911 The LXC name of the container. Useful for logging messages
1912 in common log environments. [<option>-n</option>]
1913 -->
1914 LXC 컨테이너의 이름. 일반적인 로그 환경에서 로그메시지에 유용하게 사용할 수 있다. [<option>-n</option>]
1915 </para>
1916 </listitem>
1917 </varlistentry>
1918 </variablelist>
1919 <variablelist>
1920 <varlistentry>
1921 <term>
1922 <option>LXC_CONFIG_FILE</option>
1923 </term>
1924 <listitem>
1925 <para>
1926 <!--
1927 Host relative path to the container configuration file. This
1928 gives the container to reference the original, top level,
1929 configuration file for the container in order to locate any
1930 additional configuration information not otherwise made
1931 available. [<option>-f</option>]
1932 -->
1933 컨테이너 설정파일의 호스트에서의 경로.
1934 이것은 다른 방법으로는 얻을 수 없는 추가적인 정보룰 찾을 수 있도록, 컨테이너가 참조하는 원래의 최상위 설정파일의 경로를 제공한다. [<option>-f</option>]
1935 </para>
1936 </listitem>
1937 </varlistentry>
1938 </variablelist>
1939 <variablelist>
1940 <varlistentry>
1941 <term>
1942 <option>LXC_CONSOLE</option>
1943 </term>
1944 <listitem>
1945 <para>
1946 <!--
1947 The path to the console output of the container if not NULL.
1948 [<option>-c</option>] [<option>lxc.console</option>]
1949 -->
1950 NULL이 아니라면, 컨테이너의 콘솔의 출력이 저장될 경로.
1951 [<option>-c</option>] [<option>lxc.console</option>]
1952 </para>
1953 </listitem>
1954 </varlistentry>
1955 </variablelist>
1956 <variablelist>
1957 <varlistentry>
1958 <term>
1959 <option>LXC_CONSOLE_LOGPATH</option>
1960 </term>
1961 <listitem>
1962 <para>
1963 <!--
1964 The path to the console log output of the container if not NULL.
1965 [<option>-L</option>]
1966 -->
1967 NULL이 아니라면, 컨테이너의 콘솔의 로그 출력이 저장될 경로.
1968 [<option>-L</option>]
1969 </para>
1970 </listitem>
1971 </varlistentry>
1972 </variablelist>
1973 <variablelist>
1974 <varlistentry>
1975 <term>
1976 <option>LXC_ROOTFS_MOUNT</option>
1977 </term>
1978 <listitem>
1979 <para>
1980 <!--
1981 The mount location to which the container is initially bound.
1982 This will be the host relative path to the container rootfs
1983 for the container instance being started and is where changes
1984 should be made for that instance.
1985 [<option>lxc.rootfs.mount</option>]
1986 -->
1987 처음에 컨테이너가 마운트 되는 장소.
1988 이것은 시작되는 컨테이너 인스턴스를 위한 루트 파일시스템의 호스트에서의 경로이다. 해당 인스턴스에 대한 변경이 이루어져야 하는 장소이다.
1989 [<option>lxc.rootfs.mount</option>]
1990 </para>
1991 </listitem>
1992 </varlistentry>
1993 </variablelist>
1994 <variablelist>
1995 <varlistentry>
1996 <term>
1997 <option>LXC_ROOTFS_PATH</option>
1998 </term>
1999 <listitem>
2000 <para>
2001 <!--
2002 The host relative path to the container root which has been
2003 mounted to the rootfs.mount location.
2004 [<option>lxc.rootfs</option>]
2005 -->
2006 rootfs.mount에 마운트된 컨테이너 루트의 호스트에서의 경로이다.
2007 [<option>lxc.rootfs</option>]
2008 </para>
2009 </listitem>
2010 </varlistentry>
2011 </variablelist>
2012
2013 </refsect2>
2014
2015 <refsect2>
2016 <title><!-- Logging -->로그</title>
2017 <para>
2018 <!--
2019 Logging can be configured on a per-container basis. By default,
2020 depending upon how the lxc package was compiled, container startup
2021 is logged only at the ERROR level, and logged to a file named after
2022 the container (with '.log' appended) either under the container path,
2023 or under @LOGPATH@.
2024 -->
2025 로그는 각 컨테이너마다 설정할 수 있다.
2026 기본적으로 lxc 패키지가 어떻게 컴파일되었는지에 달려있지만, 컨테이너 시작시에는 error 수준 로그만 기록된다. 컨테이너 경로나 @LOGPATH@ 밑에 컨테이너의 이름을 따서(뒤에 '.log'를 붙여서) 로그 파일을 생성한다.
2027 </para>
2028 <para>
2029 <!--
2030 Both the default log level and the log file can be specified in the
2031 container configuration file, overriding the default behavior. Note
2032 that the configuration file entries can in turn be overridden by the
2033 command line options to <command>lxc-start</command>.
2034 -->
2035 기본 로그 수준과 로그파일은 컨테이너 설정파일로 지정 가능하며, 기본 동작을 덮어버린다. 마찬가지로 설 정파일 항목들은 <command>lxc-start</command> 명령어의 옵션으로 덮어쓸 수 있다.
2036 </para>
2037 <variablelist>
2038 <varlistentry>
2039 <term>
2040 <option>lxc.loglevel</option>
2041 </term>
2042 <listitem>
2043 <para>
2044 <!--
2045 The level at which to log. The log level is an integer in
2046 the range of 0..8 inclusive, where a lower number means more
2047 verbose debugging. In particular 0 = trace, 1 = debug, 2 =
2048 info, 3 = notice, 4 = warn, 5 = error, 6 = critical, 7 =
2049 alert, and 8 = fatal. If unspecified, the level defaults
2050 to 5 (error), so that only errors and above are logged.
2051 -->
2052 기록할 로그 수준.
2053 로그 수준은 0 ~ 8 사이의 정수이다.
2054 숫자가 작을수록 더 자세히 로그를 기록한다.
2055 구체적으로는 0 = trace, 1 = debug, 2 = info, 3 = notice, 4 = warn, 5 = error, 6 = critical, 7 = alert, 8 = fatal이다.
2056 지정하지 않은 경우, 기본값은 5 (error)로, 에러 이거나 그보다 심각한 상황의 로그를 기록한다.
2057 </para>
2058 <para>
2059 <!--
2060 Note that when a script (such as either a hook script or a
2061 network interface up or down script) is called, the script's
2062 standard output is logged at level 1, debug.
2063 -->
2064 (훅 스크립트 및 네트워크 인터페이스 up/down 스크립트 같은) 스크립트가 호출이되면, 스크립트의 표준 입출력은 1 번, debug 수준으로 기록된다.
2065 </para>
2066 </listitem>
2067 </varlistentry>
2068 <varlistentry>
2069 <term>
2070 <option>lxc.logfile</option>
2071 </term>
2072 <listitem>
2073 <para>
2074 <!--
2075 The file to which logging info should be written.
2076 -->
2077 로그 정보를 쓸 파일.
2078 </para>
2079 </listitem>
2080 </varlistentry>
2081 </variablelist>
2082 </refsect2>
2083
2084 <refsect2>
2085 <title><!-- Autostart -->자동시작</title>
2086 <para>
2087 <!--
2088 The autostart options support marking which containers should be
2089 auto-started and in what order. These options may be used by LXC tools
2090 directly or by external tooling provided by the distributions.
2091 -->
2092 자동시작 옵션들은 자동시작할 컨테이너 지정 및 순서 설정이 가능하다.
2093 이 옵션들은 LXC 도구로 직접 사용하거나 배포판들이 제공하는 외부 도구에 의해 사용될 수도 있다.
2094 </para>
2095
2096 <variablelist>
2097 <varlistentry>
2098 <term>
2099 <option>lxc.start.auto</option>
2100 </term>
2101 <listitem>
2102 <para>
2103 <!--
2104 Whether the container should be auto-started.
2105 Valid values are 0 (off) and 1 (on).
2106 -->
2107 컨테이너가 자동으로 시작될지 여부.
2108 유효한 값은 0 (off) 또는 1 (on)이다.
2109 </para>
2110 </listitem>
2111 </varlistentry>
2112 <varlistentry>
2113 <term>
2114 <option>lxc.start.delay</option>
2115 </term>
2116 <listitem>
2117 <para>
2118 <!--
2119 How long to wait (in seconds) after the container is
2120 started before starting the next one.
2121 -->
2122 컨테이너가 시작된 후 다음 컨테이너가 시작되기 전까지 기다릴 시간(초).
2123 </para>
2124 </listitem>
2125 </varlistentry>
2126 <varlistentry>
2127 <term>
2128 <option>lxc.start.order</option>
2129 </term>
2130 <listitem>
2131 <para>
2132 <!--
2133 An integer used to sort the containers when auto-starting
2134 a series of containers at once.
2135 -->
2136 다수의 컨테이너를 한번에 자동시작할 때, 컨테이너의 부팅 순서를 결정할 때 사용하는 정수를 지정한다.
2137 </para>
2138 </listitem>
2139 </varlistentry>
2140 <varlistentry>
2141 <term>
2142 <option>lxc.group</option>
2143 </term>
2144 <listitem>
2145 <para>
2146 <!--
2147 A multi-value key (can be used multiple times) to put the
2148 container in a container group. Those groups can then be
2149 used (amongst other things) to start a series of related
2150 containers.
2151 -->
2152 컨테이너를 추가할 컨테이너 그룹을 지정한다. 여러값을 설정할 수 있으며, 여러번 지정 가능하다.
2153 설정된 그룹은 연관된 컨테이너들을 시작할 때 사용된다.
2154 </para>
2155 </listitem>
2156 </varlistentry>
2157 </variablelist>
2158 </refsect2>
2159
2160 <refsect2>
2161 <title><!-- Autostart and System Boot -->자동시작과 시스템 부팅</title>
2162 <para>
2163 <!--
2164 Each container can be part of any number of groups or no group at all.
2165 Two groups are special. One is the NULL group, i.e. the container does
2166 not belong to any group. The other group is the "onboot" group.
2167 -->
2168 각각의 컨테이너는 여러 그룹에 속할수도 있고 아무그룹에도 속하지 않을 수 있다. 두개의 그룹은 특수한데, 하나는 NULL 그룹이고 컨테이너가 아무그룹에도 속하지 않을때 사용된다. 그리고 나머지 하나는 "onboot" 그룹이다.
2169 </para>
2170
2171 <para>
2172 <!--
2173 When the system boots with the LXC service enabled, it will first
2174 attempt to boot any containers with lxc.start.auto == 1 that is a member
2175 of the "onboot" group. The startup will be in order of lxc.start.order.
2176 If an lxc.start.delay has been specified, that delay will be honored
2177 before attempting to start the next container to give the current
2178 container time to begin initialization and reduce overloading the host
2179 system. After starting the members of the "onboot" group, the LXC system
2180 will proceed to boot containers with lxc.start.auto == 1 which are not
2181 members of any group (the NULL group) and proceed as with the onboot
2182 group.
2183 -->
2184 LXC 서비스가 활성화된 상태로 시스템이 부팅될 때, 먼저 lxc.start.auto == 1이고 "onboot" 그룹인 컨테이너들을 시작하려고 시도한다. 시작과정은 lxc.start.order의 순서대로 이루어진다.
2185 만약 lxc.start.delay가 지정 되었다면, 다음 컨테이너를 시작하려고 시도>하기 전, 현재 컨테이너의 초기화 및 호스트 시스템의 부하를 줄이기 위해서 지연시간을 준다.
2186 "onboot" 그룹의 멤버들을 시작시킨 후, LXC 시스템은 lxc.start.auto == 1이고 어떤 그룹에도 속하지 않은(NULL 그룹) 컨테이너들을 시작한다.
2187 </para>
2188
2189 </refsect2>
2190
2191 <refsect2>
2192 <title><!-- Container Environment -->컨테이너 환경변수</title>
2193 <para>
2194 <!--
2195 If you want to pass environment variables into the container (that
2196 is, environment variables which will be available to init and all of
2197 its descendents), you can use <command>lxc.environment</command>
2198 parameters to do so. Be careful that you do not pass in anything
2199 sensitive; any process in the container which doesn't have its
2200 environment scrubbed will have these variables available to it, and
2201 environment variables are always available via
2202 <command>/proc/PID/environ</command>.
2203 -->
2204 컨테이너에 환경변수를 념겨주고 싶다면(환경변수를 컨테이너의 init과 그 자손 전체가 사용할 수 있다), <command>lxc.environment</command>를 사용할 수 있다.
2205 민감한 정보를 넘기지 않도록 주의해야 한다. 왜냐면 컨테이너의 모든 프로세스가 이 환경변수를 획득할 수 있기 때문이다. 환경변수는 항상 <command>/proc/PID/environ</command>를 통해 획득할 수 있다.
2206 </para>
2207
2208 <para>
2209 <!--
2210 This configuration parameter can be specified multiple times; once
2211 for each environment variable you wish to configure.
2212 -->
2213 이 설정항목은 여러번을 지정할 수 있으며, 설정하려는 환경변수마다 한번씩 지정한다.
2214 </para>
2215
2216 <variablelist>
2217 <varlistentry>
2218 <term>
2219 <option>lxc.environment</option>
2220 </term>
2221 <listitem>
2222 <para>
2223 <!--
2224 Specify an environment variable to pass into the container.
2225 Example:
2226 -->
2227 컨테이너로 전달될 환경변수를 지정한다.
2228 예제:
2229 </para>
2230 <programlisting>
2231 lxc.environment = APP_ENV=production
2232 lxc.environment = SYSLOG_SERVER=192.0.2.42
2233 </programlisting>
2234 </listitem>
2235 </varlistentry>
2236 </variablelist>
2237 </refsect2>
2238
2239 </refsect1>
2240
2241 <refsect1>
2242 <title><!-- Examples -->예제</title>
2243 <para>
2244 <!--
2245 In addition to the few examples given below, you will find
2246 some other examples of configuration file in @DOCDIR@/examples
2247 -->
2248 아래에 소개하는 몇가지 예제말고도 다른 예제들이 @DOCDIR@/examples에 위치하고 있다.
2249 </para>
2250 <refsect2>
2251 <title><!-- Network -->네트워크</title>
2252 <para>
2253 <!--
2254 This configuration sets up a container to use a veth pair
2255 device with one side plugged to a bridge br0 (which has been
2256 configured before on the system by the administrator). The
2257 virtual network device visible in the container is renamed to
2258 eth0.
2259 -->
2260 이 설정은 컨테이너가 한 쪽은 (이전에 시스템에 이미 생성된) br0 브리지에 연결되어 있는 veth 장치 쌍을 사용하도록 세팅한다. 가상 네트워크 장치는 컨테이너 내에서 eth0라는 이름을 갖는다.
2261 </para>
2262 <programlisting>
2263 lxc.utsname = myhostname
2264 lxc.network.type = veth
2265 lxc.network.flags = up
2266 lxc.network.link = br0
2267 lxc.network.name = eth0
2268 lxc.network.hwaddr = 4a:49:43:49:79:bf
2269 lxc.network.ipv4 = 1.2.3.5/24 1.2.3.255
2270 lxc.network.ipv6 = 2003:db8:1:0:214:1234:fe0b:3597
2271 </programlisting>
2272 </refsect2>
2273
2274 <refsect2>
2275 <title><!-- UID/GID mapping -->UID/GID 매핑</title>
2276 <para><!-- This configuration will map both user and group ids in the
2277 range 0-9999 in the container to the ids 100000-109999 on the host. -->
2278 이 설정은 UID와 GID 둘다를 컨테이너의 0 ~ 9999를 호스트의 100000 ~ 109999로 매핑한다.
2279 </para>
2280 <programlisting>
2281 lxc.id_map = u 0 100000 10000
2282 lxc.id_map = g 0 100000 10000
2283 </programlisting>
2284 </refsect2>
2285
2286 <refsect2>
2287 <title><!-- Control group -->컨트롤 그룹</title>
2288 <para>
2289 <!-- This configuration will setup several control groups for
2290 the application, cpuset.cpus restricts usage of the defined cpu,
2291 cpus.share prioritize the control group, devices.allow makes
2292 usable the specified devices.-->
2293 이 설정은 어플리케이션을 위해 몇가지 컨트롤 그룹을 설정한다. cpuset.cpus는 정의된 cpu만 사용하도록 제한한다. cpus.share은 컨트롤 그룹(cpu) 우선순위를 지정한다. devices.allow는 특정 장치를 사용 가능하게 한다.
2294 </para>
2295 <programlisting>
2296 lxc.cgroup.cpuset.cpus = 0,1
2297 lxc.cgroup.cpu.shares = 1234
2298 lxc.cgroup.devices.deny = a
2299 lxc.cgroup.devices.allow = c 1:3 rw
2300 lxc.cgroup.devices.allow = b 8:0 rw
2301 </programlisting>
2302 </refsect2>
2303
2304 <refsect2>
2305 <title><!-- Complex configuration -->복잡한 설정</title>
2306 <para>
2307 <!-- This example show a complex configuration making a complex
2308 network stack, using the control groups, setting a new hostname,
2309 mounting some locations and a changing root file system. -->
2310 아래의 예제는 복잡한 네트워크 스택, 컨트롤 그룹 사용, 호스트 이름 설정, 몇몇 장소 마운트, 루트 파일시스템 변경 등의 복잡한 설정을 보여준다.
2311 </para>
2312 <programlisting>
2313 lxc.utsname = complex
2314 lxc.network.type = veth
2315 lxc.network.flags = up
2316 lxc.network.link = br0
2317 lxc.network.hwaddr = 4a:49:43:49:79:bf
2318 lxc.network.ipv4 = 10.2.3.5/24 10.2.3.255
2319 lxc.network.ipv6 = 2003:db8:1:0:214:1234:fe0b:3597
2320 lxc.network.ipv6 = 2003:db8:1:0:214:5432:feab:3588
2321 lxc.network.type = macvlan
2322 lxc.network.flags = up
2323 lxc.network.link = eth0
2324 lxc.network.hwaddr = 4a:49:43:49:79:bd
2325 lxc.network.ipv4 = 10.2.3.4/24
2326 lxc.network.ipv4 = 192.168.10.125/24
2327 lxc.network.ipv6 = 2003:db8:1:0:214:1234:fe0b:3596
2328 lxc.network.type = phys
2329 lxc.network.flags = up
2330 lxc.network.link = dummy0
2331 lxc.network.hwaddr = 4a:49:43:49:79:ff
2332 lxc.network.ipv4 = 10.2.3.6/24
2333 lxc.network.ipv6 = 2003:db8:1:0:214:1234:fe0b:3297
2334 lxc.cgroup.cpuset.cpus = 0,1
2335 lxc.cgroup.cpu.shares = 1234
2336 lxc.cgroup.devices.deny = a
2337 lxc.cgroup.devices.allow = c 1:3 rw
2338 lxc.cgroup.devices.allow = b 8:0 rw
2339 lxc.mount = /etc/fstab.complex
2340 lxc.mount.entry = /lib /root/myrootfs/lib none ro,bind 0 0
2341 lxc.rootfs = /mnt/rootfs.complex
2342 lxc.cap.drop = sys_module mknod setuid net_raw
2343 lxc.cap.drop = mac_override
2344 </programlisting>
2345 </refsect2>
2346
2347 </refsect1>
2348
2349 <refsect1>
2350 <title><!-- See Also -->참조</title>
2351 <simpara>
2352 <citerefentry>
2353 <refentrytitle><command>chroot</command></refentrytitle>
2354 <manvolnum>1</manvolnum>
2355 </citerefentry>,
2356
2357 <citerefentry>
2358 <refentrytitle><command>pivot_root</command></refentrytitle>
2359 <manvolnum>8</manvolnum>
2360 </citerefentry>,
2361
2362 <citerefentry>
2363 <refentrytitle><filename>fstab</filename></refentrytitle>
2364 <manvolnum>5</manvolnum>
2365 </citerefentry>
2366
2367 <citerefentry>
2368 <refentrytitle><filename>capabilities</filename></refentrytitle>
2369 <manvolnum>7</manvolnum>
2370 </citerefentry>
2371
2372 </simpara>
2373 </refsect1>
2374
2375 &seealso;
2376
2377 <refsect1>
2378 <title><!-- Author -->저자</title>
2379 <para>Daniel Lezcano <email>daniel.lezcano@free.fr</email></para>
2380 </refsect1>
2381
2382 </refentry>
2383
2384 <!-- Keep this comment at the end of the file
2385 Local variables:
2386 mode: sgml
2387 sgml-omittag:t
2388 sgml-shorttag:t
2389 sgml-minimize-attributes:nil
2390 sgml-always-quote-attributes:t
2391 sgml-indent-step:2
2392 sgml-indent-data:t
2393 sgml-parent-document:nil
2394 sgml-default-dtd-file:nil
2395 sgml-exposed-tags:nil
2396 sgml-local-catalogs:nil
2397 sgml-local-ecat-files:nil
2398 End:
2399 -->