From: Serge Hallyn <serge.hallyn(a)canonical.com>
* docs/drvlxc.html.in: Use correct VM name, and mention that
libvirt_lxc might be in an alternate location.
---
[Reviving an old thread]
On 06/16/2010 12:02 PM, Serge E. Hallyn wrote:
Quoting Eric Blake (eblake(a)redhat.com):
> On 06/07/2010 08:55 AM, Serge Hallyn wrote:
>> Here is a new drvlxc.html.in file to make the first example work. I'll
>> play with the second example next.
>
> Thanks for the sample text; it looked good to me on a first read.
So when I get the second part of drvlxc.html.in updated, I'll send a
git diff for the whole thing.
I never saw a followup to this, but see no reason why it should not stop
applying the fixes we do have.
ACK to your original patch, and I'm pushing this:
AUTHORS | 1 +
docs/drvlxc.html.in | 14 +++++++++++---
2 files changed, 12 insertions(+), 3 deletions(-)
diff --git a/AUTHORS b/AUTHORS
index 8b037a1..0521b3d 100644
--- a/AUTHORS
+++ b/AUTHORS
diff --git a/docs/drvlxc.html.in b/docs/drvlxc.html.in
index cfcfdab..35058c4 100644
--- a/docs/drvlxc.html.in
+++ b/docs/drvlxc.html.in
@@ -35,6 +35,11 @@ start it using
</pre>
<p>
+In the <emulator> element, be sure you specify the correct path
+to libvirt_lxc, if it does not live in /usr/libexec on your system.
+</p>
+
+<p>
The next example assumes there is a private root filesystem
(perhaps hand-crafted using busybox, or installed from media,
debootstrap, whatever) under /opt/vm-1-root:
@@ -71,14 +76,17 @@ debootstrap, whatever) under /opt/vm-1-root:
In both cases, you can define and start a container using:</p>
<pre>
virsh --connect lxc:/// define v1.xml
-virsh --connect lxc:/// start v1.xml
+virsh --connect lxc:/// start vm1
</pre>
and then get a console using:
<pre>
-virsh --connect lxc:/// console v1
+virsh --connect lxc:/// console vm1
</pre>
<p>Now doing 'ps -ef' will only show processes in the container, for
-instance.
+instance. You can undefine it using
</p>
+<pre>
+virsh --connect lxc:/// undefine vm1
+</pre>
</body>
</html>
--
1.7.2.1