[libvirt] [PATCH] docs: add LXC multi console command docs and a example

From: Chen Hanxiao <chenhanxiao@cn.fujitsu.com> Signed-off-by: Chen Hanxiao <chenhanxiao@cn.fujitsu.com> --- docs/drvlxc.html.in | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/docs/drvlxc.html.in b/docs/drvlxc.html.in index 7494eb3..0f3efb0 100644 --- a/docs/drvlxc.html.in +++ b/docs/drvlxc.html.in @@ -659,16 +659,25 @@ running, this will turn it into a "transient" guest. <p> The <code>virsh console</code> command can be used to connect -to the text console associated with a container. If the container -has been configured with multiple console devices, then the -<code>--devname</code> argument can be used to choose the -console to connect to +to the text console associated with a container. </p> <pre> # virsh -c lxc:/// console myguest </pre> +<p> +If the container has been configured with multiple console devices, +then the <code>--devname</code> argument can be used to choose the +console to connect to. +In LXC, multiple consoles will be named +as 'console0', 'console1', 'console2', etc. +</p> + +<pre> +# virsh -c lxc:/// console myguest --devname console1 +</pre> + <h3><a name="usageEnter">Running commands in a container</a></h3> <p> -- 1.8.2.1

On 01/08/2014 11:17 AM, Chen Hanxiao wrote:
From: Chen Hanxiao <chenhanxiao@cn.fujitsu.com>
Signed-off-by: Chen Hanxiao <chenhanxiao@cn.fujitsu.com> --- docs/drvlxc.html.in | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-)
diff --git a/docs/drvlxc.html.in b/docs/drvlxc.html.in index 7494eb3..0f3efb0 100644 --- a/docs/drvlxc.html.in +++ b/docs/drvlxc.html.in @@ -659,16 +659,25 @@ running, this will turn it into a "transient" guest.
<p> The <code>virsh console</code> command can be used to connect -to the text console associated with a container. If the container -has been configured with multiple console devices, then the -<code>--devname</code> argument can be used to choose the -console to connect to +to the text console associated with a container. </p>
<pre> # virsh -c lxc:/// console myguest </pre>
+<p> +If the container has been configured with multiple console devices, +then the <code>--devname</code> argument can be used to choose the +console to connect to. +In LXC, multiple consoles will be named +as 'console0', 'console1', 'console2', etc. +</p> + +<pre> +# virsh -c lxc:/// console myguest --devname console1 +</pre> + <h3><a name="usageEnter">Running commands in a container</a></h3>
<p>
ACK

On 08.01.2014 08:58, Gao feng wrote:
On 01/08/2014 11:17 AM, Chen Hanxiao wrote:
From: Chen Hanxiao <chenhanxiao@cn.fujitsu.com>
Signed-off-by: Chen Hanxiao <chenhanxiao@cn.fujitsu.com> --- docs/drvlxc.html.in | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-)
ACK
Pushed now. Michal
participants (3)
-
Chen Hanxiao
-
Gao feng
-
Michal Privoznik