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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.