<div dir="ltr">Under virt-manager, the vf inside macvlan-test-2 does get a different MAC address with each boot. However that MAC address does not appear back on the host. In fact no MAC addresses appear on the VFs themselves (which is a difference in behavior as compared to oVirt):<div><br></div><div><div>5: ens4: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT qlen 1000</div><div> link/ether e4:1d:2d:fd:8b:9a brd ff:ff:ff:ff:ff:ff</div><div> vf 0 MAC 00:00:00:00:00:00, spoof checking off, link-state auto</div><div> vf 1 MAC 00:00:00:00:00:00, spoof checking off, link-state auto</div><div> vf 2 MAC 00:00:00:00:00:00, spoof checking off, link-state auto</div><div> vf 3 MAC 00:00:00:00:00:00, spoof checking off, link-state auto</div><div> vf 4 MAC 00:00:00:00:00:00, spoof checking off, link-state auto</div><div> vf 5 MAC 00:00:00:00:00:00, spoof checking off, link-state auto</div><div> vf 6 MAC 00:00:00:00:00:00, spoof checking off, link-state auto</div><div> vf 7 MAC 00:00:00:00:00:00, spoof checking off, link-state auto</div></div><div><br></div><div>- jkt</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr">On Sun, Feb 28, 2016 at 12:13 AM Dan Kenigsberg <<a href="mailto:danken@redhat.com">danken@redhat.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Thu, Feb 25, 2016 at 06:28:30PM +0000, Jay Turner wrote:<br>
> Attached.<br>
><br>
> macvlan-1.xml is from oVirt (and includes the VF MAC address)<br>
> macvlan-test-2.xml is from virt-manager (and does not include the VF MAC<br>
> address)<br>
<br>
<br>
> <domain type='kvm' id='2'><br>
...<br>
> <interface type='bridge'><br>
> <mac address='00:1a:4a:16:01:51'/><br>
> <source bridge='ovirtmgmt'/><br>
> <target dev='vnet0'/><br>
> <model type='virtio'/><br>
> <filterref filter='vdsm-no-mac-spoofing'/><br>
> <link state='up'/><br>
> <alias name='net0'/><br>
> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/><br>
> </interface><br>
> <interface type='hostdev'><br>
> <mac address='00:1a:4a:16:01:52'/><br>
> <driver name='vfio'/><br>
> <source><br>
> <address type='pci' domain='0x0000' bus='0x02' slot='0x00' function='0x1'/><br>
> </source><br>
> <alias name='hostdev0'/><br>
> <address type='pci' domain='0x0000' bus='0x00' slot='0x08' function='0x0'/><br>
> </interface><br>
...<br>
> </domain><br>
<br>
> <domain type='kvm' id='12'><br>
...<br>
> <interface type='network'><br>
> <mac address='52:54:00:22:54:ba'/><br>
> <source network='default' bridge='virbr0'/><br>
> <target dev='vnet0'/><br>
> <model type='virtio'/><br>
> <alias name='net0'/><br>
> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/><br>
> </interface><br>
...<br>
> <hostdev mode='subsystem' type='pci' managed='yes'><br>
> <driver name='vfio'/><br>
> <source><br>
> <address domain='0x0000' bus='0x02' slot='0x01' function='0x2'/><br>
> </source><br>
> <alias name='hostdev0'/><br>
> <address type='pci' domain='0x0000' bus='0x00' slot='0x08' function='0x0'/><br>
> </hostdev><br>
...<br>
> </domain><br>
<br>
<br>
Thanks.<br>
<br>
Does the guest of your macvlan-test-2 see the random mac address<br>
assigned to the host VF? If so, it means that it would have another mac<br>
address on the next time it starts, which is violate the IaaS that oVirt<br>
would like to expose to its guests.<br>
<br>
</blockquote></div>