[ovirt-users] SR-IOV and oVirt
Michael Burman
mburman at redhat.com
Mon Apr 2 10:56:51 UTC 2018
Hi Joe,
First of all, if you using the SR-IOV feature, you should use it only as
pci-passthrough vNICs only. Not as host-devices.
Our documentation is correct and is says : "adding a Network Interface with
type PCI Passthrough"
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.
Once you will create a network with 'passthrough' 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's own unique MAC address. No matter how
much VFs you are using, each pci-passthrough vNIC will get it's own MAC
address.
For vlan, you can create the network(passthrough) with the desired vlan tag
and it will be passed to the guest on run VM.
Cheers)
On Thu, Mar 29, 2018 at 6:00 PM, <joe.paolicelli at keysight.com> wrote:
> I am working with a customer on enabling sriov within oVirt and were
> noticing a couple of issues.
>
> 1. 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
> 2. 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.
> 3. 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.
> 4. 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.
> 5. If we manually run the following command from an ssh session: *echo
> 4 > /sys/class/net/ens4f0/device/sriov_numvfs*
>
> 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.
>
> 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.)
>
> Thank you for any help,
>
> jp
>
>
>
>
>
>
> *Joe Paolicelli (JP) *Virtualization Specialist, Ixia Solutions Group
> Keysight Technologies
>
> e: *jp at keysight.com <jp at keysight.com>*
> t: 469.556.6042 <(469)%20556-6042>
> www.ixiacom.com
>
>
> [image: cid:image002.png at 01D2DA11.7BFEC8C0]
>
>
>
>
>
> _______________________________________________
> Users mailing list
> Users at ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
>
>
--
Michael Burman
Senior Quality engineer - rhv network - redhat israel
Red Hat
<https://www.redhat.com>
mburman at redhat.com M: 0545355725 IM: mburman
<https://red.ht/sig>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ovirt.org/pipermail/users/attachments/20180402/6f23b9ab/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 20599 bytes
Desc: not available
URL: <http://lists.ovirt.org/pipermail/users/attachments/20180402/6f23b9ab/attachment.png>
More information about the Users
mailing list