lxc-device.sgml.in revision 4019712d198a7d50b08b326ade17f5ff1666efbb
99e4008cad9e959b683c6f48411fcf15a92be3b5Michel Normand(C) Copyright Canonical Ltd. 2013
99e4008cad9e959b683c6f48411fcf15a92be3b5Michel NormandStéphane Graber <stgraber@ubuntu.com>
99e4008cad9e959b683c6f48411fcf15a92be3b5Michel NormandThis library is free software; you can redistribute it and/or
99e4008cad9e959b683c6f48411fcf15a92be3b5Michel Normandmodify it under the terms of the GNU Lesser General Public
99e4008cad9e959b683c6f48411fcf15a92be3b5Michel NormandLicense as published by the Free Software Foundation; either
99e4008cad9e959b683c6f48411fcf15a92be3b5Michel Normandversion 2.1 of the License, or (at your option) any later version.
99e4008cad9e959b683c6f48411fcf15a92be3b5Michel NormandThis library is distributed in the hope that it will be useful,
99e4008cad9e959b683c6f48411fcf15a92be3b5Michel Normandbut WITHOUT ANY WARRANTY; without even the implied warranty of
99e4008cad9e959b683c6f48411fcf15a92be3b5Michel NormandMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
99e4008cad9e959b683c6f48411fcf15a92be3b5Michel NormandLesser General Public License for more details.
99e4008cad9e959b683c6f48411fcf15a92be3b5Michel NormandYou should have received a copy of the GNU Lesser General Public
99e4008cad9e959b683c6f48411fcf15a92be3b5Michel NormandLicense along with this library; if not, write to the Free Software
99e4008cad9e959b683c6f48411fcf15a92be3b5Michel NormandFoundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
99e4008cad9e959b683c6f48411fcf15a92be3b5Michel Normand<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
99e4008cad9e959b683c6f48411fcf15a92be3b5Michel Normand<!ENTITY seealso SYSTEM "@builddir@/see_also.sgml">
99e4008cad9e959b683c6f48411fcf15a92be3b5Michel Normand <docinfo><date>@LXC_GENERATE_DATE@</date></docinfo>
99e4008cad9e959b683c6f48411fcf15a92be3b5Michel Normand <refentrytitle>lxc-device</refentrytitle>
99e4008cad9e959b683c6f48411fcf15a92be3b5Michel Normand <manvolnum>1</manvolnum>
99e4008cad9e959b683c6f48411fcf15a92be3b5Michel Normand <refname>lxc-device</refname>
99e4008cad9e959b683c6f48411fcf15a92be3b5Michel Normand manage deices of running containers
99e4008cad9e959b683c6f48411fcf15a92be3b5Michel Normand </refpurpose>
99e4008cad9e959b683c6f48411fcf15a92be3b5Michel Normand </refnamediv>
99e4008cad9e959b683c6f48411fcf15a92be3b5Michel Normand <refsynopsisdiv>
99e4008cad9e959b683c6f48411fcf15a92be3b5Michel Normand <cmdsynopsis>
99e4008cad9e959b683c6f48411fcf15a92be3b5Michel Normand <command>lxc-device</command>
99e4008cad9e959b683c6f48411fcf15a92be3b5Michel Normand <arg choice="opt">-h</arg>
99e4008cad9e959b683c6f48411fcf15a92be3b5Michel Normand <arg choice="opt">-n <replaceable>name</replaceable></arg>
99e4008cad9e959b683c6f48411fcf15a92be3b5Michel Normand <arg choice="opt">add</arg>
99e4008cad9e959b683c6f48411fcf15a92be3b5Michel Normand <arg choice="opt">DEVICE</arg>
99e4008cad9e959b683c6f48411fcf15a92be3b5Michel Normand <arg choice="opt">NAME</arg>
99e4008cad9e959b683c6f48411fcf15a92be3b5Michel Normand </cmdsynopsis>
99e4008cad9e959b683c6f48411fcf15a92be3b5Michel Normand </refsynopsisdiv>
99e4008cad9e959b683c6f48411fcf15a92be3b5Michel Normand <title>Description</title>
e4b3fe5833cf5e8cb85389ceed8a00254c87b01fgkurz@linux.vnet.ibm.com <command>lxc-device</command> manages devices in running container.
99e4008cad9e959b683c6f48411fcf15a92be3b5Michel Normand <title>Options</title>
99e4008cad9e959b683c6f48411fcf15a92be3b5Michel Normand <variablelist>
99e4008cad9e959b683c6f48411fcf15a92be3b5Michel Normand <varlistentry>
99e4008cad9e959b683c6f48411fcf15a92be3b5Michel Normand <option><optional>-h</optional></option>
99e4008cad9e959b683c6f48411fcf15a92be3b5Michel Normand The full command help message.
99e4008cad9e959b683c6f48411fcf15a92be3b5Michel Normand </varlistentry>
99e4008cad9e959b683c6f48411fcf15a92be3b5Michel Normand <varlistentry>
99e4008cad9e959b683c6f48411fcf15a92be3b5Michel Normand <option>-n</option>
99e4008cad9e959b683c6f48411fcf15a92be3b5Michel Normand The name of the target container.
99e4008cad9e959b683c6f48411fcf15a92be3b5Michel Normand </varlistentry>
99e4008cad9e959b683c6f48411fcf15a92be3b5Michel Normand <varlistentry>
99e4008cad9e959b683c6f48411fcf15a92be3b5Michel Normand <option>action</option>
99e4008cad9e959b683c6f48411fcf15a92be3b5Michel Normand What action to perform. Only 'add' is supported at this point.
99e4008cad9e959b683c6f48411fcf15a92be3b5Michel Normand </varlistentry>
99e4008cad9e959b683c6f48411fcf15a92be3b5Michel Normand <varlistentry>
99e4008cad9e959b683c6f48411fcf15a92be3b5Michel Normand <option>DEVICE</option>
99e4008cad9e959b683c6f48411fcf15a92be3b5Michel Normand The device to add to the container.
99e4008cad9e959b683c6f48411fcf15a92be3b5Michel Normand It can either be the path to a device under /dev or a network
99e4008cad9e959b683c6f48411fcf15a92be3b5Michel Normand interface name.
49ee6cdcbf79d8b6fa617479ec8ab753ccca923dChristian Seiler </varlistentry>
49ee6cdcbf79d8b6fa617479ec8ab753ccca923dChristian Seiler <varlistentry>
99e4008cad9e959b683c6f48411fcf15a92be3b5Michel Normand <option><optional>NAME</optional></option>
99e4008cad9e959b683c6f48411fcf15a92be3b5Michel Normand Name for the device within the container.
99e4008cad9e959b683c6f48411fcf15a92be3b5Michel Normand </varlistentry>
<term>lxc-device -n p1 add /dev/video0</term>
Creates a /dev/video0 device in container p1 based on the matching