<div dir="ltr"><br><br><div class="gmail_quote">2008/9/29 Evgeniy Sokolov <span dir="ltr"><<a href="mailto:evg@openvz.org" target="_blank">evg@openvz.org</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">


<div><div></div><div><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Mon, Sep 29, 2008 at 04:11:39PM +0400, Evgeniy Sokolov wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">



2008/9/29 Evgeniy V. Sokolov <<a href="mailto:evg@parallels.com" target="_blank">evg@parallels.com</a> <mailto:<a href="mailto:evg@parallels.com" target="_blank">evg@parallels.com</a>>><br>
<br>
<br>
<br>
              This behaviour contradicts with description found in docs<br>
       (in which<br>
              <source> tag specify interface in host, not in<br>
       container). I think,<br>
              the previous bridge must be specified as<br>
                <interface type='bridge'><br>
                  <mac address='00:16:3e:34:21:9e'/><br>
              -     <source bridge='eth10'/><br>
              +     <target dev='eth10'/><br>
                </interface><br>
<br>
          You are right. It is bug.<br>
<br>
       Well, here is the patch, that fixes that behaviour.<br>
<br>
<br>
   Your patch is half of fix. It require to fix openvzReadNetworkConf() in<br>
   openvz_conf.c.<br>
<br>
<br>
Here is a new one. Check it, please.<br>
</blockquote>
Patch looks good.<br>
But currently it will work strange because of all drivers (except OpenVZ) in libvirt require specified <source bridge=""/> - it is generic.<br>
With patch you need to specify both<br>
<source bridge='eth10'/> - to satisfy common requirements<br>
<target dev='eth10'/> - to create network<br>
</blockquote>
<br>
That is not right. The <target> element *must* be optional when creating<br>
a new domain. If omitted, the driver must generated a suitable target<br>
dev according to its desired naming scheme. Only the <source> element<br>
can be compulsory<br>
</blockquote>
<br></div></div>
Agree with you. You say about "how should it be". I say about "how is it now".<br>
Currenty OpenVZ driver don't generate device name - my mistake.</blockquote><div>Is vnet$i (where $i is the number of automatically generated interface<br>name for this container) appropriate?<br><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">


<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
<br>
Daniel.<br>
</blockquote>
<br>
</blockquote></div><br></div>