[libvirt] [PATCH 3/3] lxc network device names change documentation

Cédric Bosdonnat cbosdonnat at suse.com
Wed Jul 2 13:57:22 UTC 2014


---
 docs/formatdomain.html.in | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/docs/formatdomain.html.in b/docs/formatdomain.html.in
index 3075e16..b23736e 100644
--- a/docs/formatdomain.html.in
+++ b/docs/formatdomain.html.in
@@ -3767,6 +3767,23 @@ qemu-kvm -net nic,model=? /dev/null
       targets using these prefixes will be ignored.
     </p>
 
+    <p>
+      Note that for LXC containers, this defines the name of the interface
+      on the host side. <span class="since">Since 1.2.7</span>, to define
+      the name of the device on the guest side, the <code>guest</code>
+      element should be used, as in the following snippet:
+    </p>
+
+<pre>
+  ...
+  <devices>
+    <interface type='network'>
+      <source network='default'/>
+      <b><guest dev='myeth'/></b>
+    </interface>
+  </devices>
+  ...</pre>
+
     <h5><a name="elementsNICSBoot">Specifying boot order</a></h5>
 
 <pre>
-- 
1.8.4.5




More information about the libvir-list mailing list