]> git.proxmox.com Git - mirror_lxc.git/blame - doc/lxc-console.sgml.in
spelling: successfully
[mirror_lxc.git] / doc / lxc-console.sgml.in
CommitLineData
f79d43bb 1<!--
b0a33c1e 2
3lxc: linux Container library
4
5(C) Copyright IBM Corp. 2007, 2008
6
7Authors:
9afe19d6 8Daniel Lezcano <daniel.lezcano at free.fr>
b0a33c1e 9
10This library is free software; you can redistribute it and/or
11modify it under the terms of the GNU Lesser General Public
12License as published by the Free Software Foundation; either
13version 2.1 of the License, or (at your option) any later version.
14
15This library is distributed in the hope that it will be useful,
16but WITHOUT ANY WARRANTY; without even the implied warranty of
17MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18Lesser General Public License for more details.
19
20You should have received a copy of the GNU Lesser General Public
21License along with this library; if not, write to the Free Software
250b1eec 22Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
b0a33c1e 23
24-->
25
7f951458 26<!DOCTYPE refentry PUBLIC @docdtd@ [
99e4008c 27
10fba81b 28<!ENTITY commonoptions SYSTEM "@builddir@/common_options.sgml">
99e4008c
MN
29<!ENTITY seealso SYSTEM "@builddir@/see_also.sgml">
30]>
b0a33c1e 31
32<refentry>
33
34 <docinfo><date>@LXC_GENERATE_DATE@</date></docinfo>
35
36 <refmeta>
37 <refentrytitle>lxc-console</refentrytitle>
38 <manvolnum>1</manvolnum>
39 </refmeta>
40
41 <refnamediv>
42 <refname>lxc-console</refname>
43
44 <refpurpose>
45 Launch a console for the specified container
46 </refpurpose>
47 </refnamediv>
48
49 <refsynopsisdiv>
50 <cmdsynopsis>
b4578c5b
DE
51 <command>lxc-console</command>
52 <arg choice="req">-n <replaceable>name</replaceable></arg>
76848789 53 <arg choice="opt">-e <replaceable>escape character</replaceable></arg>
b4578c5b 54 <arg choice="opt">-t <replaceable>ttynum</replaceable></arg>
b0a33c1e 55 </cmdsynopsis>
56 </refsynopsisdiv>
57
58 <refsect1>
59 <title>Description</title>
60
61 <para>
62 If the tty service has been configured and is available for the
63 container specified as parameter, this command will launch a
be43f17e 64 console allowing to log on the container.
b0a33c1e 65 </para>
66
67 <para>
68 The available tty are free slots taken by this command. That
69 means if the container has four ttys available and the command
76848789
DE
70 has been launched four times each taking a different tty, the
71 fifth command will fail because no console will be available.
b0a33c1e 72 </para>
73
74 <para>
75 The command will connect to a tty. If the connection is lost or
76 broken, the command can be launched again and regain the tty at
77 the state it was before the disconnection.
78 </para>
79
b5159817
DE
80 <para>
81 A <replaceable>ttynum</replaceable> of 0 may be given to attach
82 to the container's /dev/console instead of its
83 dev/tty&lt;<replaceable>ttynum</replaceable>&gt;.
84 </para>
85
76848789
DE
86 <para>
87 A keyboard escape sequence may be used to disconnect from the tty
88 and quit lxc-console. The default escape sequence is &lt;Ctrl+a q&gt;.
89 </para>
90
b0a33c1e 91 </refsect1>
92
93 <refsect1>
94 <title>Options</title>
95 <variablelist>
96
76848789
DE
97 <varlistentry>
98 <term>
1bc07a5b 99 <option>-e, --escape <replaceable>escape character</replaceable></option>
76848789
DE
100 </term>
101 <listitem>
102 <para>
103 Specify the escape sequence prefix to use instead of
104 &lt;Ctrl a&gt;.
105 This may be given as '^letter' or just 'letter'. For example
106 to use &lt;Ctrl+b q&gt; as the escape sequence use -e '^b'.
107 </para>
108 </listitem>
109 </varlistentry>
b0a33c1e 110 <varlistentry>
111 <term>
1bc07a5b 112 <option>-t, --tty <replaceable>ttynum</replaceable></option>
b0a33c1e 113 </term>
114 <listitem>
115 <para>
b5159817
DE
116 Specify the tty number to connect to or 0 for the console. If not
117 specified the next available tty number will be automatically
36b33520 118 chosen by the container.
b0a33c1e 119 </para>
120 </listitem>
121 </varlistentry>
122
123 </variablelist>
124
125 </refsect1>
126
10fba81b
MN
127 &commonoptions;
128
b0a33c1e 129 <refsect1>
130 <title>Diagnostic</title>
131
132 <variablelist>
133
134 <varlistentry>
135 <term>tty service denied</term>
136 <listitem>
137 <para>
138 No tty is available or there is not enough privilege to
139 use the console. For example, the container belongs to
140 user "foo" and "bar" is trying to open a console to it.
141 </para>
142 </listitem>
f79d43bb 143 </varlistentry>
b0a33c1e 144
145 </variablelist>
146
147 </refsect1>
148
99e4008c 149 &seealso;
b0a33c1e 150
151 <refsect1>
152 <title>Author</title>
153 <para>Daniel Lezcano <email>daniel.lezcano@free.fr</email></para>
154 </refsect1>
155
156</refentry>
157
158<!-- Keep this comment at the end of the file
159Local variables:
160mode: sgml
161sgml-omittag:t
162sgml-shorttag:t
163sgml-minimize-attributes:nil
164sgml-always-quote-attributes:t
165sgml-indent-step:2
166sgml-indent-data:t
167sgml-parent-document:nil
168sgml-default-dtd-file:nil
169sgml-exposed-tags:nil
170sgml-local-catalogs:nil
171sgml-local-ecat-files:nil
172End:
173-->