lxc-clone.sgml.in revision f7f1ba77b76e4d4dc18638cfdc859c3dc1750a9e
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen<!--
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainenlxc: linux Container library
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen(C) Copyright IBM Corp. 2007, 2008
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo SirainenAuthors:
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo SirainenDaniel Lezcano <daniel.lezcano at free.fr>
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo SirainenSerge Hallyn <serge.hallyn at ubuntu.com>
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo SirainenThis library is free software; you can redistribute it and/or
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainenmodify it under the terms of the GNU Lesser General Public
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo SirainenLicense as published by the Free Software Foundation; either
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainenversion 2.1 of the License, or (at your option) any later version.
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo SirainenThis library is distributed in the hope that it will be useful,
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainenbut WITHOUT ANY WARRANTY; without even the implied warranty of
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo SirainenMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo SirainenLesser General Public License for more details.
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo SirainenYou should have received a copy of the GNU Lesser General Public
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo SirainenLicense along with this library; if not, write to the Free Software
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo SirainenFoundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo SirainenTranslated into Japanese
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainenby KATOH Yasufumi <karma at jazz.email.ne.jp>
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen-->
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen<!DOCTYPE refentry PUBLIC @docdtd@ [
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen<!ENTITY commonoptions SYSTEM "@builddir@/common_options.sgml">
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen<!ENTITY seealso SYSTEM "@builddir@/see_also.sgml">
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen]>
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen<refentry>
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen <docinfo><date>@LXC_GENERATE_DATE@</date></docinfo>
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen <refmeta>
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen <refentrytitle>lxc-clone</refentrytitle>
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen <manvolnum>1</manvolnum>
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen </refmeta>
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen <refnamediv>
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen <refname>lxc-clone</refname>
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen <refpurpose>
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen <!--
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen clone a new container from an existing one.
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen -->
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen 既存のコンテナからの新しいコンテナのクローン
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen </refpurpose>
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen </refnamediv>
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen <refsynopsisdiv>
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen <cmdsynopsis>
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen <command>lxc-clone</command>
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen <arg choice="opt">-s </arg>
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen <arg choice="opt">-K </arg>
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen <arg choice="opt">-M </arg>
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen <arg choice="opt">-H </arg>
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen <arg choice="opt">-B <replaceable>backingstore</replaceable></arg>
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen <arg choice="opt">-L <replaceable>fssize</replaceable></arg>
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen <arg choice="opt">-p <replaceable>lxcpath</replaceable></arg>
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen <arg choice="opt">-P <replaceable>newlxcpath</replaceable></arg>
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen <arg choice="req">-o <replaceable>orig</replaceable></arg>
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen <arg choice="req">-n <replaceable>new</replaceable></arg>
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen <arg choice="opt">-- hook arguments</arg>
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen </cmdsynopsis>
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen <cmdsynopsis>
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen <command>lxc-clone</command>
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen <arg choice="opt">-s </arg>
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen <arg choice="opt">-K </arg>
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen <arg choice="opt">-M </arg>
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen <arg choice="opt">-H </arg>
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen <arg choice="opt">-B <replaceable>backingstore</replaceable></arg>
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen <arg choice="opt">-L <replaceable>fssize</replaceable></arg>
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen <arg choice="opt">-p <replaceable>lxcpath</replaceable></arg>
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen <arg choice="opt">-P <replaceable>newlxcpath</replaceable></arg>
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen <arg choice="req">orig</arg>
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen <arg choice="req">new</arg>
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen <arg choice="opt">-- hook arguments</arg>
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen </cmdsynopsis>
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen </refsynopsisdiv>
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen <refsect1>
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen <title><!-- Description -->説明</title>
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen <para>
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen <!--
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen <command>lxc-clone</command> Creates a new container as a clone of an existing
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen container. Two types of clones are supported: copy and snapshot. A copy
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen clone copies the root filessytem from the original container to the new. A
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen snapshot filesystem uses the backing store's snapshot functionality to create
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen a very small copy-on-write snapshot of the original container. Snapshot
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen clones require the new container backing store to support snapshotting. Currently
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen this includes only btrfs, lvm, overlayfs and zfs. LVM devices do not support
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen snapshots of snapshots.
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen -->
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen <command>lxc-clone</command> は,新しいコンテナを既に存在するコンテナのクローンとして作製します.クローンは 2 つのタイプをサポートします: コピーとスナップショットです.コピータイプのクローンは元のコンテナから新しいコンテナへ root ファイルシステムをコピーします.スナップショットファイルシステムは,バッキングストアのスナップショット機能を使い,元のコンテナの非常に小さな copy-on-write でのスナップショットを作製します.スナップショットでのクローンは,新しいコンテナのバッキングストアとしてスナップショット機能のサポートが必要になります.現時点では,このようなバッキングストアとしては btrfs, lvm, overlayfs, zfs のみをサポートします.LVM デバイスはスナップショットのスナップショットはサポートしていません.
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen </para>
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen <para>
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen <!--
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen The backing store of the new container will be the same type as the
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen original container,
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen with one exception: overlayfs snapshots can be created of directory backed
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen containers. This can be requested by using the <replaceable>-B overlayfs</replaceable>
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen arguments.
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen -->
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen 新しいコンテナのバッキングストアは,一つの例外を除いては,元のコンテナのタイプと同じになります: overlayfs では,ディレクトリバックエンドのコンテナのスナップショットを作製することが可能です.これは,<replaceable>-B overlayfs</replaceable> という引数を使って指定することが可能です.
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen </para>
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen <para>
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen <!--
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen The names of the original and new container can be given (in that order)
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen after all options, or can be specified with the
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen <replaceable>-o</replaceable> and <replaceable>-n</replaceable> options,
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen respectively.
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen -->
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen 元のコンテナと新しいコンテナの名前は,全てのオプションの後に順番に与えることも,<replaceable>-o</replaceable> と <replaceable>-n</replaceable> オプションを使ってそれぞれ指定することも可能です.
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen </para>
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen </refsect1>
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen <refsect1>
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen <title><!-- Options -->オプション</title>
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen <variablelist>
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen <varlistentry>
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen <term>
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen <option>-s, --snapshot</option>
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen </term>
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen <listitem>
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen <para>
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen <!--
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen The new container's rootfs should be a LVM or btrfs snapshot of the original.
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen -->
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen 新しいコンテナの rootfs は,オリジナルの LVM か btrfs のスナップショットになります.
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen </para>
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen </listitem>
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen </varlistentry>
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen <varlistentry>
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen <term>
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen <option>-K, --keepname</option>
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen </term>
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen <listitem>
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen <para>
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen <!--
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen Do not change the hostname of the container (in the root
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen filesystem).
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen -->
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen コンテナのホスト名を変更しません (root ファイルシステム内では).
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen </para>
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen </listitem>
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen </varlistentry>
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen <varlistentry>
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen <term>
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen <option>-M, --keepmac</option>
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen </term>
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen <listitem>
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen <para>
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen <!--
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen Use the same MAC address as the original container, rather than
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen generating a new random one.
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen -->
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen 新しい MAC アドレスをランダムに生成せずに,元のコンテナと同じ MAC アドレスを使用します.
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen </para>
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen </listitem>
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen </varlistentry>
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen <varlistentry>
2670cd577aa57eb9f915a4f4220ae48c9b4fc5fbTimo Sirainen <term>
<option>-H, --copyhooks</option>
</term>
<listitem>
<para>
<!--
Copy all mount hooks into the new container's directory, and
update any lxcpaths and container names as needed.
-->
全てのマウントフックを新しいコンテナのディレクトリにコピーします.そして,lxcpath とコンテナ名を必要に応じて更新します.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>
<option>-L, --fssize <replaceable>fssize</replaceable></option>
</term>
<listitem>
<para>
<!--
In the case of a block device backed container, a size for the new
block device. By default, the new device will be made the
same size as the original.
-->
ブロックデバイスのバックエンドのコンテナの場合,新しいブロックデバイスのサイズ.デフォルトでは,新しいデバイスは元のデバイスと同じサイズとなります.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>
<option>-p, --lxcpath <replaceable>fssize</replaceable></option>
</term>
<listitem>
<para>
<!--
The lxcpath of the original container. By default, the system
wide configured lxcpath will be used.
-->
オリジナルのコンテナの lxcpath.デフォルトでは,システム全体で設定された lxcpath が使われます.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>
<option>-P, --newpath <replaceable>fssize</replaceable></option>
</term>
<listitem>
<para>
<!--
The lxcpath for the new container. By default the same lxcpath
as the original will be used. Note that with btrfs snapshots,
changing lxcpaths may not be possible, as subvolume snapshots
must be in the same btrfs filesystem.
-->
新しいコンテナの lxcpath.デフォルトでは,オリジナルの lxcpath と同じものが使われます.btrfs のスナップショットの場合は注意が必要で,lxcpath の変更はできない可能性があります.これは subvolume のスナップショットが,同じ btrfs ファイルシステム上に存在しなければならないからです.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>
<option>-B, --backingstore <replaceable>fssize</replaceable></option>
</term>
<listitem>
<para>
<!--
Select a different backing store for the new container. By
default the same as the original container's is used. Note that
currently changing the backingstore is only supported for
overlayfs snapshots of directory backed containers. Valid
backing stores include dir (directory), btrfs, lvm, zfs, loop
and overlayfs.
-->
新しいコンテナで元のコンテナと違うバッキングストアを使う場合のバッキングストアを選択します.デフォルトでは元のコンテナと同じものが使われます.現時点では,バッキングストアの変更は,ディレクトリバックエンドのコンテナに対する overlayfs スナップショットに対してのみサポートされます.有効なバッキングストアは dir(directory), btrfs, lvm, zfs, loop, overlayfs を含みます.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>
<option>-o, --orig <replaceable>orig</replaceable></option>
</term>
<listitem>
<para>
<!--
The name of the original container to clone.
-->
クローンしたい元のコンテナの名前.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>
<option>-n, --new <replaceable>new</replaceable></option>
</term>
<listitem>
<para>
<!--
The name of the new container to create.
-->
作製する新しいコンテナの名前.
</para>
</listitem>
</varlistentry>
</variablelist>
</refsect1>
<refsect1>
<title>Clone hook</title>
<para>
<!--
If the container being cloned has one or more <filename>lxc.hook.clone</filename>
specified, then the specified hooks will be called for the new container. The
first 3 arguments passed to the clone hook will be the container name, a section
('lxc'), and the hook type ('clone'). Extra arguments passed
<command>lxc-clone</command> will be passed to the hook program starting at
argument 4. The <filename>LXC_ROOTFS_MOUNT</filename> environment variable gives
the path under which the container's root filesystem is mounted. The
configuration file pathname is stored in <filename>LXC_CONFIG_FILE</filename>, the
new container name in <filename>LXC_NAME</filename>, the old container name in
<filename>LXC_SRC_NAME</filename>, and the path or device on which
the rootfs is located is in <filename>LXC_ROOTFS_PATH</filename>.
-->
クローンされたコンテナに 1 つ以上の <filename>lxc.hook.clone</filename> の指定が存在する場合,指定されたフックは新しいコンテナに対して呼ばれます.クローンフックに渡される最初の 3 つの引数は,コンテナ名,セクション ('lxc'),フックタイプ ('clone') となります.<command>lxc-clone</command> に渡される追加の引数は,フックプログラムに渡される引数の 4 番目以降となります.<filename>LXC_ROOTFS_MOUNT</filename> 環境変数には,コンテナの root ファイルシステムがマウントされるパスが与えられます.設定ファイルのパス名は <filename>LXC_CONFIG_FILE</filename> に,新しいコンテナ名は <filename>LXC_NAME</filename>,古いコンテナ名は <filename>LXC_SRC_NAME</filename> に,rootfs のあるパスまたはデバイスは <filename>LXC_ROOTFS_PATH</filename> に保存されます.
</para>
</refsect1>
&seealso;
<refsect1>
<title><!-- Author -->作者</title>
<para>Serge Hallyn <email>serge.hallyn@ubuntu.com</email></para>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:2
sgml-indent-data:t
sgml-parent-document:nil
sgml-default-dtd-file:nil
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
-->