4 (C) Copyright Canonical Ltd. 2013
7 Stéphane Graber <stgraber@ubuntu.com>
9 This library is free software; you can redistribute it and/or
10 modify it under the terms of the GNU Lesser General Public
11 License as published by the Free Software Foundation; either
12 version 2.1 of the License, or (at your option) any later version.
14 This library is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 Lesser General Public License for more details.
19 You should have received a copy of the GNU Lesser General Public
20 License along with this library; if not, write to the Free Software
21 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
25 <!DOCTYPE refentry PUBLIC @docdtd@ [
27 <!ENTITY seealso SYSTEM "@builddir@/see_also.sgml">
32 <docinfo><date>@LXC_GENERATE_DATE@</date></docinfo>
35 <refentrytitle>lxc-device</refentrytitle>
36 <manvolnum>1</manvolnum>
40 <refname>lxc-device</refname>
43 manage devices of running containers
49 <command>lxc-device</command>
50 <arg choice="opt">-h</arg>
51 <arg choice="opt">-n <replaceable>name</replaceable></arg>
52 <arg choice="opt">add</arg>
53 <arg choice="opt">DEVICE</arg>
54 <arg choice="opt">NAME</arg>
59 <title>Description</title>
61 <command>lxc-device</command> manages devices in running container.
66 <title>Options</title>
74 The full command help message.
80 <term><option>-n, --name=<replaceable>NAME</replaceable></option></term>
83 The name of the target container.
90 <option>action</option>
94 What action to perform. Only 'add' is supported at this point.
101 <option>DEVICE</option>
105 The device to add to the container.
106 It can either be the path to a device under /dev or a network
114 <option><optional>NAME</optional></option>
118 Name for the device within the container.
126 <title>Examples</title>
129 <term>lxc-device -n p1 add /dev/video0</term>
132 Creates a /dev/video0 device in container p1 based on the matching
139 <term>lxc-device -n p1 add eth0 eth1</term>
142 Moves eth0 from the host as eth1 in p1.
152 <title>Author</title>
153 <para>Stéphane Graber <email>stgraber@ubuntu.com</email></para>
157 <!-- Keep this comment at the end of the file
162 sgml-minimize-attributes:nil
163 sgml-always-quote-attributes:t
166 sgml-parent-document:nil
167 sgml-default-dtd-file:nil
168 sgml-exposed-tags:nil
169 sgml-local-catalogs:nil
170 sgml-local-ecat-files:nil