<div dir="ltr">Closing the loop on this topic, while I still do not fully understand why oVirt and libvirt are behaving differently with respect to MAC address handling (specifically writing the VF MAC address back to the host), that is the source of my problems. After disabling the security feature in the i40e driver, and rebuilding, I no longer have issues passing traffic with macvlan interfaces.<div><br></div><div>- jkt</div></div><br><div class="gmail_quote"><div dir="ltr">On Tue, Feb 23, 2016 at 11:40 PM Edward Haas <<a href="mailto:edwardh@redhat.com">edwardh@redhat.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
<br>
----- Original Message -----<br>
| From: "Jay Turner" <<a href="mailto:jkt@iix.net" target="_blank">jkt@iix.net</a>><br>
| To: <a href="mailto:users@ovirt.org" target="_blank">users@ovirt.org</a><br>
| Sent: Tuesday, February 23, 2016 5:13:21 PM<br>
| Subject: Re: [ovirt-users] macvlan + IPv6<br>
|<br>
| As a follow-up to this, I made some headway in sorting out the source of the<br>
| issue, but hoping someone can give me a pointer to where this is happening<br>
| in the code, as well as some understanding for why.<br>
|<br>
| In oVirt, when I allocate a virtual function to a guest, a new MAC address is<br>
| generated for the VF (as it should be) from the MAC address pool in oVirt,<br>
| and then that MAC address is written to the VF on the hypervisor. Thus I end<br>
| up with something like:<br>
|<br>
| : ens11: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq master i40e<br>
| state UP mode DEFAULT qlen 1000<br>
| link/ether 3c:fd:fe:9d:a1:38 brd ff:ff:ff:ff:ff:ff<br>
| vf 0 MAC 00:1a:4a:16:01:52, spoof checking on, link-state auto<br>
|<br>
| This *is not* how it happens under libvirt/virt-manager, however. When<br>
| allocating a VF to a guest under libvirt, a random MAC address is generated<br>
| and associated with the VF under the guest, but it is not written back to<br>
| the hypervisor, and is instead left as 00:00:00:00:00:00.<br>
|<br>
| I am pretty sure this writing of the MAC address at the hypervisor is causing<br>
| at least some of the issues I'm seeing, as with the Intel cards, that<br>
| prevents the guest from changing/adding a new MAC address, which is what<br>
| happens with the instantiation of a macvlan interface.<br>
|<br>
| So can anyone point me to where in the oVirt code this MAC address assignment<br>
| is occurring? Also curious why oVirt does this assignment, but libvirt does<br>
| not.<br>
|<br>
| Thanks!<br>
|<br>
| - jkt<br>
|<br>
| On Mon, Feb 22, 2016 at 2:51 PM Jay Turner < <a href="mailto:jkt@iix.net" target="_blank">jkt@iix.net</a> > wrote:<br>
|<br>
|<br>
|<br>
| Hoping someone can help with a problem my team is seeing under oVirt.<br>
|<br>
| We are making heavy use of macvlan interfaces (in VEPA mode) on-top of<br>
| virtual functions, under VMs being managed by oVirt. In this scenario IPv6<br>
| is not playing nicely, with no traffic going through, and messages about<br>
| neighbor solicitation. There are some pointers out there indicating the<br>
| issue stems from the fact IPv6 utilizing multicast for neighbor<br>
| solicitation, but nothing we have tried seems to work around this issue.<br>
|<br>
| The problem is made all the most bizarre by the fact that on the same<br>
| hardware libvirt + virt-manager works perfectly fine. I have looked at the<br>
| corresponding xml for the guests, and nothing seems to point to the<br>
| underlying cause for oVirt to fail, but libvirt to succeed.<br>
|<br>
| * Intel XL710 40G NICs (i40e/i40evf drivers)<br>
| * CentOS 7.1 (fully up-to-date)<br>
| * oVirt 3.6<br>
| * libvirt-1.2.17<br>
| * virt-manager-1.2.1-8<br>
|<br>
| Thanks for any pointers folks can provide.<br>
|<br>
| - jkt<br>
|<br>
| _______________________________________________<br>
| Users mailing list<br>
| <a href="mailto:Users@ovirt.org" target="_blank">Users@ovirt.org</a><br>
| <a href="http://lists.ovirt.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.ovirt.org/mailman/listinfo/users</a><br>
|<br>
<br>
Could you please provide the dumpxml for both setups (oVirt and non-oVirt)?<br>
(sudo virsh -r dumpxml <domain>)<br>
<br>
Thanks,<br>
Edy.<br>
<br>
</blockquote></div>