How to assign persistent MAC address to a virtual function on a KVM guest?

Solution Verified - Updated -

Issue

  • An SR-IOV capable Ethernet card is being used on a KVM host.KVM guests use some of the virtual functions(VF).
    The VF interfaces get randomly generated MAC addresss on every reboot.How can a persistent MAC address be assigned to a virtual function being used on a KVM guest?
  • What does the interface type=hostdev element in the guest configuration of a KVM guest signify?

Environment

  • Red Hat Enterprise Linux 6.3
  • KVM

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content