2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoolxc: linux Container library
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo(C) Copyright IBM Corp. 2007, 2008
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae YooDaniel Lezcano <daniel.lezcano at free.fr>
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae YooSerge Hallyn <serge.hallyn at ubuntu.com>
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae YooThis library is free software; you can redistribute it and/or
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoomodify it under the terms of the GNU Lesser General Public
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae YooLicense as published by the Free Software Foundation; either
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yooversion 2.1 of the License, or (at your option) any later version.
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae YooThis library is distributed in the hope that it will be useful,
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoobut WITHOUT ANY WARRANTY; without even the implied warranty of
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae YooMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae YooLesser General Public License for more details.
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae YooYou should have received a copy of the GNU Lesser General Public
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae YooLicense along with this library; if not, write to the Free Software
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae YooFoundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae YooTranslated into Korean
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yooby Sungbae Yoo <sungbae.yoo at samsung.com>
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo<!ENTITY commonoptions SYSTEM "@builddir@/common_options.sgml">
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo<!ENTITY seealso SYSTEM "@builddir@/see_also.sgml">
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo <docinfo><date>@LXC_GENERATE_DATE@</date></docinfo>
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo <refnamediv>
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo <refpurpose>
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo clone a new container from an existing one.
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo 존재하는 컨테이너를 새로운 컨테이너로 복제
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo </refpurpose>
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo </refnamediv>
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo <refsynopsisdiv>
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo <cmdsynopsis>
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo <arg choice="opt">-B <replaceable>backingstore</replaceable></arg>
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo <arg choice="opt">-L <replaceable>fssize</replaceable></arg>
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo <arg choice="opt">-p <replaceable>lxcpath</replaceable></arg>
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo <arg choice="opt">-P <replaceable>newlxcpath</replaceable></arg>
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo <arg choice="req">-o <replaceable>orig</replaceable></arg>
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo <arg choice="req">-n <replaceable>new</replaceable></arg>
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo </cmdsynopsis>
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo <cmdsynopsis>
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo <arg choice="opt">-B <replaceable>backingstore</replaceable></arg>
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo <arg choice="opt">-L <replaceable>fssize</replaceable></arg>
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo <arg choice="opt">-p <replaceable>lxcpath</replaceable></arg>
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo <arg choice="opt">-P <replaceable>newlxcpath</replaceable></arg>
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo </cmdsynopsis>
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo </refsynopsisdiv>
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo <command>lxc-clone</command> Creates a new container as a clone of an existing
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo container. Two types of clones are supported: copy and snapshot. A copy
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo clone copies the root filessytem from the original container to the new. A
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo snapshot filesystem uses the backing store's snapshot functionality to create
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo a very small copy-on-write snapshot of the original container. Snapshot
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo clones require the new container backing store to support snapshotting. Currently
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo this includes only aufs, btrfs, lvm, overlayfs and zfs. LVM devices do not support
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo snapshots of snapshots.
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo <command>lxc-clone</command>는 존재하는 컨테이너를 복제하여 새로운 컨테이너를 생성한다. 복사, 스냅샷의 두가지 형태의 복제가 지원된다.
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo 복사는 원본 컨테이너의 루트 파일시스템을 그대로 새 컨테이너로 복사한다..
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo 스냅샷은 저장소의 스냅샷 기능을 이용하여 원본 컨테이너의 copy-on-write 형태로 매우 작은 스냅샷을 생성한다. 스냅샷을 사용하기 위해서는 새 컨테이너의 저장소가 스냅샷 기능을 지원하여야 한다. 현재 스냅샷 기능을 지원하는 것은 aufs, btrfs, lvm, overlayfs, zfs 정도이다. lvm은 스냅샷의 스냅샷은 지원하지 않는다.
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo The backing store of the new container will be the same type as the
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo original container, with one exception, overlay containers.
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo aufs and overlayfs snapshots can be created of directory backed
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo containers. This can be requested by using (for overlayfs) the
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo <replaceable>-B overlayfs</replaceable> arguments.
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo 오버레이 컨테이너들을 제외하면, 새 컨테이너의 저장소는 원본과 같은 종류를 사용한다.
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo aufs와 overlayfs의 스냅샷은 디렉토리로 구성된 컨테이너로 생성할 수 있다. overlayfs의 경우 <replaceable>-B overlayfs</replaceable> 인수를 통해 이를 지정할 수 있다.
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo The names of the original and new container can be given (in that order)
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo after all options, or can be specified with the
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo <replaceable>-o</replaceable> and <replaceable>-n</replaceable> options,
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo respectively.
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo 원본 컨테이너와 새 컨테이너의 이름은 모든 옵션 뒤에 원본, 새 컨테이너 순으로 지정할 수 있다. 또는 <replaceable>-o</replaceable>과 <replaceable>-n</replaceable> 옵션을 사용하여 지정할 수 있다.
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo <variablelist>
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo <varlistentry>
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo The new container's rootfs will be a snapshot of the original. This option can be specified when the backing store is LVM, btrfs or zfs, and must be specified when you want to snapshot using aufs or overlayfs.
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo 새로 생성하는 컨테이너의 루트 파일시스템은 원본의 스냅샷으로 한다. 이 옵션은 저장소가 lvm, btrfs, zfs 일때 지정할 수 있다. 또한 aufs나 overlayfs를 이용한 스냅샷을 원할때만 지정해야 한다.
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo </varlistentry>
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo <varlistentry>
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo Do not change the hostname of the container (in the root
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo filesystem).
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo (루트 파일시스템에서) 컨테이너의 호스트 이름을 변경하지 않는다.
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo </varlistentry>
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo <varlistentry>
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo Use the same MAC address as the original container, rather than
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo generating a new random one.
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo 새로 무작위한 주소를 만들지 않고, 원본과 같은 MAC 주소를 사용한다.
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo </varlistentry>
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo <varlistentry>
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo Copy all mount hooks into the new container's directory, and
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo update any lxcpaths and container names as needed.
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo 모든 마운트 훅들을 새 컨테이너의 디렉토리로 복사한다. 그리고 lxcpath와 컨테이너 이름을 필요에 따라 갱신한다.
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo </varlistentry>
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo <varlistentry>
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo <option>-L, --fssize <replaceable>fssize</replaceable></option>
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo In the case of a block device backed container, a size for the new
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo block device. By default, the new device will be made the
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo same size as the original.
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo 블록장치로 구성된 컨테이너의 경우, 새로운 블록 장치의 크기.
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo 기본으로 새 디바이스는 원본과 같은 크기로 만들어진다.
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo </varlistentry>
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo <varlistentry>
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo <option>-p, --lxcpath <replaceable>lxcpath</replaceable></option>
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo The lxcpath of the original container. By default, the system
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo wide configured lxcpath will be used.
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo 원본 컨테이너의 lxcpath. 기본값은 시스템 전역으로 설정되어 잇는 lxcpath를 사용한다.
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo </varlistentry>
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo <varlistentry>
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo <option>-P, --newpath <replaceable>newlxcpath</replaceable></option>
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo The lxcpath for the new container. By default the same lxcpath
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo as the original will be used. Note that with btrfs snapshots,
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo changing lxcpaths may not be possible, as subvolume snapshots
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo must be in the same btrfs filesystem.
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo 새로 생성될 컨테이너의 lxcpath.
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo 기본값은 원본 컨테이너의 lxcpath와 같다.
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo btrfs의 스냅샷의 경우 lxcpath 변경이 불가능 할 수 있음을 주의해야 한다. 왜냐하면 서브볼륨 스냅샷이 같은 btrfs 파일시스템 내에 있어야 하기 때문이다.
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo </varlistentry>
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo <varlistentry>
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo <option>-B, --backingstore <replaceable>backingstore</replaceable></option>
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo Select a different backing store for the new container. By
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo default the same as the original container's is used. Note that
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo currently changing the backingstore is only supported for
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo aufs and overlayfs snapshots of directory backed containers. Valid
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo backing stores include dir (directory), aufs, btrfs, lvm, zfs, loop
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo and overlayfs.
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo 새 컨테이너의 저장소를 선택한다.
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo 기본 값은 원본 컨테이너가 쓰던 것과 같은 것으로 되어 있다.
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo 현재 저장소를 다른 것으로 변경하는 것은 디렉토리로 구성된 컨테이너의 aufs와 overlayfs 스냅샷에서만 지원된다.
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo 가능한 값은 dir(디렉토리), aufs, btrfs, lvm zfs, loop 그리고 ovelayfs 이다.
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo </varlistentry>
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo <varlistentry>
0a05624e82005bd85086964559446d603ee57b34Sungbae Yoo Rename an existing container.
0a05624e82005bd85086964559446d603ee57b34Sungbae Yoo <replaceable>orig</replaceable> is renamed <replaceable>new</replaceable>.
0a05624e82005bd85086964559446d603ee57b34Sungbae Yoo 컨테이너의 이름을 변경한다. <replaceable>orig</replaceable>를 <replaceable>new</replaceable>로 이름을 바꾼다.
0a05624e82005bd85086964559446d603ee57b34Sungbae Yoo </varlistentry>
0a05624e82005bd85086964559446d603ee57b34Sungbae Yoo <varlistentry>
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo <option>-o, --orig <replaceable>orig</replaceable></option>
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo The name of the original container to clone.
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo 복제할 원본 컨테이너의 이름.
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo </varlistentry>
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo <varlistentry>
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo <option>-n, --new <replaceable>new</replaceable></option>
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo The name of the new container to create.
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo 생성할 새 컨테이너의 이름.
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo </varlistentry>
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo </variablelist>
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo If the container being cloned has one or more <filename>lxc.hook.clone</filename>
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo specified, then the specified hooks will be called for the new container. The
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo first 3 arguments passed to the clone hook will be the container name, a section
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo ('lxc'), and the hook type ('clone'). Extra arguments passed
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo <command>lxc-clone</command> will be passed to the hook program starting at
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo argument 4. The <filename>LXC_ROOTFS_MOUNT</filename> environment variable gives
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo the path under which the container's root filesystem is mounted. The
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo configuration file pathname is stored in <filename>LXC_CONFIG_FILE</filename>, the
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo new container name in <filename>LXC_NAME</filename>, the old container name in
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo <filename>LXC_SRC_NAME</filename>, and the path or device on which
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo the rootfs is located is in <filename>LXC_ROOTFS_PATH</filename>.
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo 만약 복제되는 컨테이너가 1개 이상의 <filename>lxc.hook.clone</filename>을 지정했다면, 지정된 훅은 새 컨테이너가 생성될 때 실행될 것이다.
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo 먼저 컨테이너 이름, 섹션('lxc'), 훅 종류('clone') 3개의 인수가 복제 훅에 전달 된다. 그리고 4번째 인수 부터는 <command>lxc-clone</command>로 넘겨줄 수 있다.
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo <filename>LXC_ROOTFS_MOUNT</filename> 환경변수는 컨테이너의 루트 파일시스템이 마운트되어 있는 경로를 넘겨준다.
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo 새 컨테이너의 이름은 <filename>LXC_NAME</filename> 변수에, 이전 컨테이너의 이름은 <filename>LXC_SRC_NAME</filename> 환경변수에 담겨 있다. 그리고 루트 파일시스템이 위치하고 있는 곳은 <filename>LXC_ROOTFS_PATH</filename>로 넘겨준다.
77fbb4d2d9580887b984ee29cf36042d1384de06Sungbae Yoo <command>lxc-clone</command> is deprecated in favor of
77fbb4d2d9580887b984ee29cf36042d1384de06Sungbae Yoo <command>lxc-copy</command>.
77fbb4d2d9580887b984ee29cf36042d1384de06Sungbae Yoo <command>lxc-clone</command>는 <command>lxc-copy</command>로 대체되었으며, 제거될 예정이다.
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo <para>Serge Hallyn <email>serge.hallyn@ubuntu.com</email></para>
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoo<!-- Keep this comment at the end of the file
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae YooLocal variables:
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoosgml-omittag:t
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoosgml-shorttag:t
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoosgml-minimize-attributes:nil
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoosgml-always-quote-attributes:t
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoosgml-indent-step:2
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoosgml-indent-data:t
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoosgml-parent-document:nil
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoosgml-default-dtd-file:nil
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoosgml-exposed-tags:nil
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoosgml-local-catalogs:nil
2b371b262f7272266ff18cc2aff65176a2c16383Sungbae Yoosgml-local-ecat-files:nil