Debian Codegraph @

doc/ja/lxc-create.sgml.in

raw
1 <!-- SPDX-License-Identifier: LGPL-2.1+ -->
2
3 <!DOCTYPE refentry PUBLIC @docdtd@ [
4
5 <!ENTITY commonoptions SYSTEM "@builddir@/common_options.sgml">
6 <!ENTITY seealso SYSTEM "@builddir@/see_also.sgml">
7 ]>
8
9 <refentry>
10
11 <docinfo><date>@LXC_GENERATE_DATE@</date></docinfo>
12
13 <refmeta>
14 <refentrytitle>lxc-create</refentrytitle>
15 <manvolnum>1</manvolnum>
16 </refmeta>
17
18 <refnamediv>
19 <refname>lxc-create</refname>
20
21 <refpurpose>
22 <!--
23 creates a container
24 -->
25 コンテナの作成
26 </refpurpose>
27 </refnamediv>
28
29 <refsynopsisdiv>
30 <cmdsynopsis>
31 <command>lxc-create</command>
32 <arg choice="req">-n <replaceable>name</replaceable></arg>
33 <arg choice="opt">-f <replaceable>config_file</replaceable></arg>
34 <arg choice="req">-t <replaceable>template</replaceable></arg>
35 <arg choice="opt">-B <replaceable>backingstore</replaceable></arg>
36 <arg choice="opt">-- <replaceable>template-options</replaceable></arg>
37 </cmdsynopsis>
38 </refsynopsisdiv>
39
40 <refsect1>
41 <title><!-- Description -->説明</title>
42
43 <para>
44 <!--
45 <command>lxc-create</command> creates a system object where is
46 stored the configuration information and where can be stored
47 user information. The identifier <replaceable>name</replaceable>
48 is used to specify the container to be used with the different
49 lxc commands.
50 -->
51 <command>lxc-create</command> は、設定情報とユーザ情報が保存されているシステムオブジェクトを作成します。
52 <replaceable>name</replaceable> で指定された名前が、他の lxc コマンドで、コンテナを特定する名前として使われます。
53 </para>
54 <para>
55 <!--
56 The object is a directory created in <filename>@LXCPATH@</filename>
57 and identified by its name.
58 -->
59 オブジェクトは <filename>@LXCPATH@</filename> 内に作られる、自身の名前がついたディレクトリです。
60 </para>
61
62 <para>
63 <!--
64 The object is the definition of the different resources an
65 application can use or can see. The more the configuration file
66 contains information, the more the container is isolated and
67 the more the application is jailed.
68 -->
69 オブジェクトは、アプリケーションが使用したり、参照したりする様々なリソースの定義です。
70 設定ファイルがより多くの情報を持つほど、コンテナやアプリケーションはより隔離されたものになります。
71 </para>
72
73 <para>
74 <!--
75 If the configuration file <replaceable>config_file</replaceable>
76 is not specified, the container will be created with the default
77 isolation: processes, sysv ipc and mount points.
78 -->
79 設定ファイルが <replaceable>config_file</replaceable> で指定されない場合、コンテナはデフォルトの隔離状態で作られます: プロセス、sysv ipc、マウントポイントです。
80 </para>
81 </refsect1>
82
83 <refsect1>
84 <title><!-- Options -->オプション</title>
85 <variablelist>
86
87 <varlistentry>
88 <term>
89 <option>-f, --config <replaceable>config_file</replaceable></option>
90 </term>
91 <listitem>
92 <para>
93 <!--
94 Specify the configuration file to configure the virtualization
95 and isolation functionalities for the container.
96 -->
97 コンテナの仮想化と隔離機能を設定するための設定ファイルを指定します。
98 </para>
99 </listitem>
100 </varlistentry>
101
102 <varlistentry>
103 <term>
104 <option>-t, --template <replaceable>template</replaceable></option>
105 </term>
106 <listitem>
107 <para>
108 <!--
109 'template' is the short name of an existing 'lxc-template'
110 script that is called by lxc-create,
111 eg. busybox, debian, fedora, ubuntu or sshd.
112 Refer to the examples in <filename>@LXCTEMPLATEDIR@</filename>
113 for details of the expected script structure.
114 Alternatively, the full path to an executable template script
115 can also be passed as a parameter.
116 "none" can be used to force lxc-create to skip rootfs creation.
117 -->
118 <replaceable>template</replaceable> は lxc-create コマンドが呼び出す、存在する 'lxc-template' スクリプトの短い名前です。
119 例えば、busybox, debian, fedora, ubuntu, sshd があります。
120 期待されるスクリプトの構造の詳細は、<filename>@LXCTEMPLATEDIR@</filename> 内の例を参照してください。
121 加えて、実行可能なテンプレートスクリプトへのフルパスも指定することが可能です。rootfs の作成を行わないように "none" を指定することも可能です。
122 </para>
123 </listitem>
124 </varlistentry>
125
126 <varlistentry>
127 <term>
128 <option>-B, --bdev <replaceable>backingstore</replaceable></option>
129 </term>
130 <listitem>
131 <para>
132 <!--
133 'backingstore' is one of 'dir', 'lvm', 'loop', 'btrfs', 'zfs', 'rbd', or 'best'. The
134 default is 'dir', meaning that the container root filesystem
135 will be a directory under <filename>@LXCPATH@/container/rootfs</filename>.
136 This backing store type allows the optional
137 <replaceable>&#045;&#045;dir ROOTFS</replaceable> to be specified, meaning
138 that the container rootfs should be placed under the specified path,
139 rather than the default. (The 'none' backingstore type is an alias for
140 'dir'.) If 'btrfs' is specified, then the
141 target filesystem must be btrfs, and the container rootfs will be
142 created as a new subvolume. This allows snapshotted clones to be
143 created, but also causes rsync &#045;&#045;one-filesystem to treat it as a
144 separate filesystem.
145 If backingstore is 'lvm', then an lvm block device will be
146 used and the following further options are available:
147 <replaceable>&#045;&#045;lvname lvname1</replaceable> will create an LV
148 named <filename>lvname1</filename> rather than the default, which
149 is the container name. <replaceable>&#045;&#045;vgname vgname1</replaceable>
150 will create the LV in volume group <filename>vgname1</filename>
151 rather than the default, <filename>lxc</filename>.
152 <replaceable>&#045;&#045;thinpool thinpool1</replaceable> will create the
153 LV as a thin-provisioned volume in the pool named
154 <filename>thinpool1</filename> rather than the
155 default, <filename>lxc</filename>.
156 <replaceable>&#045;&#045;fstype FSTYPE</replaceable> will create an FSTYPE
157 filesystem on the LV, rather than the default, which is ext4.
158 <replaceable>&#045;&#045;fssize SIZE</replaceable> will create a LV (and
159 filesystem) of size SIZE rather than the default, which is 1G.
160 -->
161 'backingstore' には 'dir', 'lvm', 'loop', 'btrfs', 'zfs', 'rbd', 'best' のいずれかを指定します。
162 デフォルトは 'dir' で、コンテナのルートファイルシステムが <filename>@LXCPATH@/container/rootfs</filename> 以下のディレクトリであることを意味します。
163 'dir' にはオプションとして <replaceable>--dir ROOTFS</replaceable> を指定することも可能です。
164 このオプションは、デフォルトの代わりに特定のパス以下にコンテナの rootfs を置くということになります。
165 ('none' は 'dir' のエイリアスです。)
166 'btrfs' が指定された場合、ターゲットのファイルシステムは btrfs でなければいけません。
167 そして、コンテナの rootfs は新しい subvolume として作製されます。
168 このことにより、スナップショットによるクローンが作製可能になりますが、結果として rsync --one-filesystem が、別々のファイルシステムとして取り扱ってしまうことにもなります。
169 backingstore が 'lvm' である場合、lvm ブロックデバイスを使用します。
170 この時、以下のオプションが有効になります: <replaceable>--lvname lvname1</replaceable> はデフォルト値のコンテナ名の LV の代わりに <filename>lvname1</filename> という名前の LV を作成します。
171 <replaceable>--vgname vgname1</replaceable> は、デフォルト値である <filename>lxc</filename> という volume group の代わりに <filename>vgname1</filename> という名前の volume group 内に LV を作成します。
172 <replaceable>--thinpool thinpool1</replaceable> は、デフォルトである <filename>lxc</filename> のという名前のプールの代わりに <filename>thinpool1</filename> という名前のプール内にシンプロビジョニングされたボリュームとして LV を作成します。
173 <replaceable>--fstype FSTYPE</replaceable> は LV 上のファイルシステムをデフォルト値である ext4 の代わりに FSTYPE で指定したもので作成します。
174 <replaceable>--fssize SIZE</replaceable> はデフォルト値である 1G の代わりに SIZE で指定したサイズで LV を作成します。
175 </para>
176 <para>
177 <!--
178 If backingstore is 'loop', you can use <replaceable>&#045;&#045;fstype FSTYPE</replaceable> and <replaceable>&#045;&#045;fssize SIZE</replaceable> as 'lvm'. The default values for these options are the same as 'lvm'.
179 -->
180 backingstore が 'loop' の場合、'lvm' と同様に <replaceable>--fstype FSTYPE</replaceable> と <replaceable>--fssize SIZE</replaceable> が使えます。これらの値のデフォルト値は 'lvm' の場合と同じです。
181 </para>
182 <para>
183 <!--
184 If backingstore is 'rbd', then you will need to have a valid configuration in <filename>ceph.conf</filename> and a <filename>ceph.client.admin.keyring</filename> defined.
185 You can specify the following options :
186 <replaceable>&#045;&#045;rbdname RBDNAME</replaceable> will create a blockdevice named RBDNAME rather than the default, which is the container name.
187 <replaceable>&#045;&#045;rbdpool POOL</replaceable> will create the blockdevice in the pool named POOL, rather than the default, which is 'lxc'.
188 <replaceable>\-\-rbduser RBDUSER</replaceable> will specify the ceph user RBDUSER creating the blockdevice, rather than the default, which is 'admin'.
189 -->
190 backingstore が 'rbd' の場合、<filename>ceph.conf</filename> に有効な設定がされており、<filename>ceph.client.admin.keyring</filename> が定義されている必要があります。
191 <replaceable>--rbdname RBDNAME</replaceable> を指定すると、RBDNAME という名前のブロックデバイスを作成します。このオプションを指定しない場合のデフォルトのブロックデバイス名はコンテナ名です。
192 <replaceable>--rbdpool POOL</replaceable> を指定すると、POOL という名前のプール内にブロックデバイスを作成します。このオプションを指定しない場合のデフォルトのプール名は 'lxc' です。
193 <replaceable>--rbduser RBDUSER</replaceable> を指定すると、RBDUSER という ceph ユーザを指定してブロックデバイスを作成します。このオプションを指定しない場合のデフォルトのユーザ名は 'admin' です。
194 </para>
195 <para>
196 <!--
197 If backingstore is 'best', then lxc will try, in order, btrfs,
198 zfs, lvm, and finally a directory backing store.
199 -->
200 backingstore が 'best' の時、lxc は btrfs, zfs, lvm, dir の順に試行します。
201 </para>
202 </listitem>
203 </varlistentry>
204
205 <varlistentry>
206 <term>
207 <option>-- <replaceable>template-options</replaceable></option>
208 </term>
209 <listitem>
210 <para>
211 <!--
212 This will pass <replaceable>template-options</replaceable> to the
213 template as arguments. To see the list of options supported by
214 the template, you can run
215 <command>lxc-create -t TEMPLATE -h</command>.
216 -->
217 これは <replaceable>template-options</replaceable> で指定したものをオプションとしてテンプレートへ渡します。
218 テンプレートでサポートされているオプションを調べるには、<command>lxc-create -t TEMPLATE -h</command> というコマンドが使えます。
219 </para>
220 </listitem>
221 </varlistentry>
222
223 </variablelist>
224
225 </refsect1>
226
227 &commonoptions;
228
229 <refsect1>
230 <title><!-- Diagnostic -->診断</title>
231
232 <variablelist>
233
234 <varlistentry>
235 <term>The container already exists</term>
236 <listitem>
237 <para>
238 <!--
239 As the message mention it, you try to create a container
240 but there is a container with the same name. You can use
241 the <command>lxc-ls</command> command to list the
242 available containers on the system.
243 -->
244 メッセージの通り、コンテナを作成しようとしたけれども、同じ名前のコンテナが存在しています。
245 <command>lxc-ls</command> コマンドを使って、システム上に存在する利用可能なコンテナのリストが表示できます。
246 </para>
247 </listitem>
248 </varlistentry>
249
250 </variablelist>
251
252 </refsect1>
253
254 &seealso;
255
256 </refentry>
257
258 <!-- Keep this comment at the end of the file
259 Local variables:
260 mode: sgml
261 sgml-omittag:t
262 sgml-shorttag:t
263 sgml-minimize-attributes:nil
264 sgml-always-quote-attributes:t
265 sgml-indent-step:2
266 sgml-indent-data:t
267 sgml-parent-document:nil
268 sgml-default-dtd-file:nil
269 sgml-exposed-tags:nil
270 sgml-local-catalogs:nil
271 sgml-local-ecat-files:nil
272 End:
273 -->