<div dir="ltr"><div><div><div><div><div>Hi Joe,<br><br></div>First of all, if you using the SR-IOV feature, you should use it only as pci-passthrough vNICs only. Not as host-devices. <br></div>Our documentation is correct and is says : &quot;adding a Network Interface with type PCI Passthrough&quot; <br><br></div>When enabling VFs on the host level, the expected MAC address for the VFs is 02:00:00:00:00:01 and that is the correct behaviour.<br></div>Once you will create a network with &#39;passthrough&#39; vNIC profile and then add this as a vNIC to the guest VM, once the guest will run, you will see that each pci-passthrough vNIC got it&#39;s own unique MAC address. No matter how much VFs you are using, each pci-passthrough vNIC will get it&#39;s own MAC address. <br><br></div>For vlan, you can create the network(passthrough) with the desired vlan tag and it will be passed to the guest on run VM. <br><div><br></div><div>Cheers)<br></div><div><br><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 29, 2018 at 6:00 PM,  <span dir="ltr">&lt;<a href="mailto:joe.paolicelli@keysight.com" target="_blank">joe.paolicelli@keysight.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div link="#0563C1" vlink="#954F72" lang="EN-US">
<div class="m_-572178149751041032WordSection1">
<p class="MsoNormal">I am working with a customer on enabling sriov within oVirt and were noticing a couple of issues.<u></u><u></u></p>
<ol start="1" type="1">
<li class="MsoNormal">
Whenever we assign the Number of VFs to a physical adapter in one of our hosts, it seems to set the mac addresses of each of the VFs to something other than all zeros.  Ex. 02:00:00:00:00:01<u></u><u></u></li><li class="MsoNormal">
The above behavior seems to create duplicate mac addresses when we assign 2 or more VFs to a guest VM.  All zeros will tell the guest VM that it needs to set the mac.  If the guest vm sees something other than all zeros, it will think that it was administratively
 assigned already and leave as is.<u></u><u></u></li><li class="MsoNormal">
We were expecting oVirt to set all of the MAC addresses of the VFs initially to all zeros.  Then when we assign these VFs to the guest VM, the guest VM will assign a unique MAC to each of the VFs.<u></u><u></u></li><li class="MsoNormal">
Please note that we are assigning the VF to the guest VM by adding a Host Device (the specific pci host device for the VF).  This seems to be different than your docs which shows adding a Network Interface with type PCI Passthrough.<u></u><u></u></li><li class="MsoNormal">
If we manually run the following command from an ssh session:  <b><span style="font-size:10.0pt;color:#0070c0">echo 4 &gt; /sys/class/net/ens4f0/device/<wbr>sriov_numvfs</span></b><u></u><u></u></li></ol>
<p class="MsoNormal"><span style="font-size:10.0pt">it will set all of the VFs mac addresses to all zeros.  Then when we assign the pci host device to the guest VM through oVirt, it creates unique macs
 for both vnics.  However, when we reboot the Host, it seems to revert back to the oVirt assigned macs of 02:00:00:00:00:01.</span><u></u><u></u></p>
<p class="MsoNormal">Do know why this might be happening?  Should we be assigning the VFs to the guest VM by adding a network interface with type PCI Passthrough?  Ultimately our goal is to enable sriov
 within oVirt and be able to assign multiple VFs to the guest VMs with each getting a unique mac.  We also want to do the vlan tagging via an application running on the guest VM (not at the Host level.)<u></u><u></u></p>
<p class="MsoNormal">Thank you for any help,<u></u><u></u></p>
<p class="MsoNormal">jp<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal" style="margin-right:0in;margin-bottom:8.0pt;margin-left:0in;line-height:105%">
<b><span style="font-size:10.0pt;line-height:105%;font-family:&quot;Arial&quot;,sans-serif;color:#37b0c9">Joe Paolicelli (JP)<br>
</span></b><span style="font-size:10.0pt;line-height:105%;font-family:&quot;Arial&quot;,sans-serif;color:#5f6369;letter-spacing:.4pt">Virtualization Specialist, Ixia Solutions Group<br>
Keysight Technologies<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:#37b0c9">e:</span><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:#5f6369">
</span><u><span style="font-size:12.0pt;font-family:&quot;Arial&quot;,sans-serif;color:#0563c1"><a href="mailto:jp@keysight.com" target="_blank">jp@keysight.com</a></span></u><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:#5f6369"><br>
</span><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:#37b0c9">t:</span><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:#5f6369"> <a href="tel:(469)%20556-6042" value="+14695566042" target="_blank">469.556.6042</a><br>
</span><a href="http://www.ixiacom.com/" target="_blank"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:#37b0c9">www.ixiacom.com</span></a><u></u><u></u></p>
<p class="MsoNormal"><u><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif;color:#37b0c9;letter-spacing:1.0pt"><br>
</span></u><img style="width:6.4833in;height:.8166in" id="m_-572178149751041032Picture_x0020_6" src="cid:image001.png@01D3C733.EEB671F0" alt="cid:image002.png@01D2DA11.7BFEC8C0" border="0" width="622" height="78"><u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>

<br>______________________________<wbr>_________________<br>
Users mailing list<br>
<a href="mailto:Users@ovirt.org">Users@ovirt.org</a><br>
<a href="http://lists.ovirt.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.ovirt.org/<wbr>mailman/listinfo/users</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>
<p style="font-weight:bold;margin:0;padding:0;font-size:14px;text-transform:uppercase;margin-bottom:0"><span>Michael </span> <span>Burman</span></p>
<p style="font-weight:normal;font-size:10px;margin:0px 0px 4px;text-transform:uppercase"><span>Senior Quality engineer - rhv network - redhat israel </span><span style="font-weight:normal;color:#aaa;margin:0"></span></p>
<p style="font-weight:normal;margin:0;font-size:10px;color:#999"><a style="color:#0088ce;font-size:10px;margin:0;text-decoration:none;font-family:&#39;overpass&#39;,sans-serif" href="https://www.redhat.com" target="_blank">Red Hat <span><br><br></span></a></p>


<p style="font-weight:normal;margin:0px 0px 6px;font-size:10px;color:rgb(153,153,153)"><span style="margin:0px;padding:0px">
<a style="color:#0088ce;font-size:10px;margin:0;text-decoration:none;font-family:&#39;overpass&#39;,sans-serif" href="mailto:mburman@redhat.com" target="_blank">mburman@redhat.com</a>   </span>
<span>M: <a href="tel:0545355725" style="color:#0088ce;font-size:11px;margin:0;text-decoration:none;font-family:&#39;overpass&#39;,sans-serif" target="_blank">0545355725</a>     </span>
<span>IM: <span>mburman</span></span></p>

<table border="0"><tbody><tr><td width="100px"><a href="https://red.ht/sig" target="_blank"> <img src="https://www.redhat.com/files/brand/email/sig-redhat.png" width="90" height="auto"></a> </td>
</tr></tbody></table>

</div></div></div></div></div>
</div>