[libvirt] openvz support in libvirt

Anton Protopopov aspsk2 at gmail.com
Thu Sep 25 14:23:57 UTC 2008


Hi, Evgeniy


>
>                <interface type='bridge'>
>                        <source bridge='eth10'/>
>                </interface>
>                <interface type='ethernet'>
>                         <mac address='00:16:3e:34:21:9e'/>
>                         <ip address="192.168.122.3" />
>                </interface>


First, this should be
   <interface type='bridge'>
     <mac address='00:16:3e:34:21:9e'/>
     <source bridge='eth10'/>
   </interface>
   <interface type='ethernet'>
     <ip address="192.168.122.3" />
   </interface>
instead.

Second. If I understood it right, the following description
   <interface type='bridge'>
     <mac address='00:16:3e:34:21:9e'/>
     <source bridge='eth10'/>
   </interface>
will result in the (approximataly) following:
     # vzctl --netiff_add eth10,00:16:3e:34:21:9e
This behaviour contradicts with description found in docs (in which
<source> tag specify interface in host, not in container). I think,
the previous bridge must be specified as
   <interface type='bridge'>
     <mac address='00:16:3e:34:21:9e'/>
-     <source bridge='eth10'/>
+     <target dev='eth10'/>
   </interface>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20080925/3b8cd1ba/attachment-0001.htm>


More information about the libvir-list mailing list