3 lxc: linux Container library
5 (C) Copyright IBM Corp. 2007, 2008
8 Daniel Lezcano <dlezcano at fr.ibm.com>
10 This library is free software; you can redistribute it and/or
11 modify it under the terms of the GNU Lesser General Public
12 License as published by the Free Software Foundation; either
13 version 2.1 of the License, or (at your option) any later version.
15 This library is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 Lesser General Public License for more details.
20 You should have received a copy of the GNU Lesser General Public
21 License along with this library; if not, write to the Free Software
22 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
26 <!DOCTYPE refentry PUBLIC "-//Davenport//DTD DocBook V3.0//EN" [
28 <!ENTITY commonoptions SYSTEM "@builddir@/common_options.sgml">
29 <!ENTITY seealso SYSTEM "@builddir@/see_also.sgml">
34 <docinfo><date>@LXC_GENERATE_DATE@</date></docinfo>
37 <refentrytitle>lxc-console</refentrytitle>
38 <manvolnum>1</manvolnum>
42 <refname>lxc-console</refname>
45 Launch a console for the specified container
51 <command>lxc-console <replaceable>-n name</replaceable>
52 <optional>-t ttynum</optional>
58 <title>Description</title>
61 If the tty service has been configured and is available for the
62 container specified as parameter, this command will launch a
63 console allowing to log on the container.
67 The available tty are free slots taken by this command. That
68 means if the container has four ttys available and the command
69 has been launched four times taking the different tty, the fifth
70 command will fail because no console will be available.
74 The command will connect to a tty. If the connection is lost or
75 broken, the command can be launched again and regain the tty at
76 the state it was before the disconnection.
82 <title>Options</title>
87 <option>-t <optional>ttynum</optional></option>
91 Specify the tty number to connect, if not specified a tty
92 number will be automatically choosen by the container.
104 <title>Diagnostic</title>
109 <term>tty service denied</term>
112 No tty is available or there is not enough privilege to
113 use the console. For example, the container belongs to
114 user "foo" and "bar" is trying to open a console to it.
126 <title>Author</title>
127 <para>Daniel Lezcano <email>daniel.lezcano@free.fr</email></para>
132 <!-- Keep this comment at the end of the file
137 sgml-minimize-attributes:nil
138 sgml-always-quote-attributes:t
141 sgml-parent-document:nil
142 sgml-default-dtd-file:nil
143 sgml-exposed-tags:nil
144 sgml-local-catalogs:nil
145 sgml-local-ecat-files:nil