From 8560093394624559368e4a0ac3b4cd1ef8378b83 Mon Sep 17 00:00:00 2001 From: Chen Hanxiao Date: Wed, 8 Jan 2014 11:17:38 +0800 Subject: [PATCH] docs: add LXC multi console command docs and a example Signed-off-by: Chen Hanxiao --- 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 7494eb3880..0f3efb0ec9 100644 --- a/docs/drvlxc.html.in +++ b/docs/drvlxc.html.in @@ -659,16 +659,25 @@ running, this will turn it into a "transient" guest.

The virsh console 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 ---devname argument can be used to choose the -console to connect to +to the text console associated with a container.

 # virsh -c lxc:/// console myguest
 
+

+If the container has been configured with multiple console devices, +then the --devname argument can be used to choose the +console to connect to. +In LXC, multiple consoles will be named +as 'console0', 'console1', 'console2', etc. +

+ +
+# virsh -c lxc:/// console myguest --devname console1
+
+

Running commands in a container

-- GitLab