4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber<!--
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber(C) Copyright Canonical Ltd. 2013
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane GraberAuthors:
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane GraberStéphane Graber <stgraber@ubuntu.com>
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane GraberThis library is free software; you can redistribute it and/or
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Grabermodify it under the terms of the GNU Lesser General Public
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane GraberLicense as published by the Free Software Foundation; either
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graberversion 2.1 of the License, or (at your option) any later version.
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane GraberThis library is distributed in the hope that it will be useful,
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graberbut WITHOUT ANY WARRANTY; without even the implied warranty of
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane GraberMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane GraberLesser General Public License for more details.
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane GraberYou should have received a copy of the GNU Lesser General Public
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane GraberLicense along with this library; if not, write to the Free Software
250b1eec71b074acdff1c5f6b5a1f0d7d2c20b77Stéphane GraberFoundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber-->
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber
7f95145833bb24f54e037f73ecc37444d6635697Dwight Engen<!DOCTYPE refentry PUBLIC @docdtd@ [
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber<!ENTITY seealso SYSTEM "@builddir@/see_also.sgml">
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber]>
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber<refentry>
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber <docinfo><date>@LXC_GENERATE_DATE@</date></docinfo>
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber <refmeta>
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber <refentrytitle>lxc-device</refentrytitle>
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber <manvolnum>1</manvolnum>
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber </refmeta>
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber <refnamediv>
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber <refname>lxc-device</refname>
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber <refpurpose>
dd97408ae27220ceccf21357421e390345f3a688Stéphane Graber manage devices of running containers
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber </refpurpose>
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber </refnamediv>
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber <refsynopsisdiv>
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber <cmdsynopsis>
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber <command>lxc-device</command>
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber <arg choice="opt">-h</arg>
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber <arg choice="opt">-n <replaceable>name</replaceable></arg>
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber <arg choice="opt">add</arg>
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber <arg choice="opt">DEVICE</arg>
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber <arg choice="opt">NAME</arg>
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber </cmdsynopsis>
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber </refsynopsisdiv>
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber <refsect1>
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber <title>Description</title>
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber <para>
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber <command>lxc-device</command> manages devices in running container.
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber </para>
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber </refsect1>
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber <refsect1>
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber <title>Options</title>
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber <variablelist>
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber <varlistentry>
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber <term>
1bc07a5b8dbaef4b6eb6d30a260e9c2153ed368bKATOH Yasufumi <option>-h</option>
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber </term>
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber <listitem>
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber <para>
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber The full command help message.
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber </para>
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber </listitem>
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber </varlistentry>
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber <varlistentry>
1bc07a5b8dbaef4b6eb6d30a260e9c2153ed368bKATOH Yasufumi <term><option>-n, --name=<replaceable>NAME</replaceable></option></term>
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber <listitem>
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber <para>
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber The name of the target container.
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber </para>
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber </listitem>
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber </varlistentry>
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber <varlistentry>
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber <term>
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber <option>action</option>
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber </term>
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber <listitem>
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber <para>
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber What action to perform. Only 'add' is supported at this point.
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber </para>
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber </listitem>
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber </varlistentry>
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber <varlistentry>
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber <term>
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber <option>DEVICE</option>
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber </term>
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber <listitem>
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber <para>
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber The device to add to the container.
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber It can either be the path to a device under /dev or a network
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber interface name.
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber </para>
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber </listitem>
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber </varlistentry>
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber <varlistentry>
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber <term>
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber <option><optional>NAME</optional></option>
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber </term>
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber <listitem>
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber <para>
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber Name for the device within the container.
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber </para>
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber </listitem>
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber </varlistentry>
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber </variablelist>
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber </refsect1>
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber <refsect1>
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber <title>Examples</title>
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber <variablelist>
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber <varlistentry>
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber <term>lxc-device -n p1 add /dev/video0</term>
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber <listitem>
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber <para>
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber Creates a /dev/video0 device in container p1 based on the matching
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber device on the host.
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber </para>
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber </listitem>
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber </varlistentry>
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber <varlistentry>
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber <term>lxc-device -n p1 add eth0 eth1</term>
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber <listitem>
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber <para>
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber Moves eth0 from the host as eth1 in p1.
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber </para>
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber </listitem>
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber </varlistentry>
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber </variablelist>
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber </refsect1>
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber &seealso;
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber <refsect1>
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber <title>Author</title>
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber <para>Stéphane Graber <email>stgraber@ubuntu.com</email></para>
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber </refsect1>
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber</refentry>
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber<!-- Keep this comment at the end of the file
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane GraberLocal variables:
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Grabermode: sgml
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Grabersgml-omittag:t
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Grabersgml-shorttag:t
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Grabersgml-minimize-attributes:nil
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Grabersgml-always-quote-attributes:t
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Grabersgml-indent-step:2
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Grabersgml-indent-data:t
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Grabersgml-parent-document:nil
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Grabersgml-default-dtd-file:nil
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Grabersgml-exposed-tags:nil
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Grabersgml-local-catalogs:nil
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Grabersgml-local-ecat-files:nil
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane GraberEnd:
4019712d198a7d50b08b326ade17f5ff1666efbbStéphane Graber-->