RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1269221 - SR-IOV on Cisco UCS environment reports "error: unsupported configuration: Interface type hostdev is currently supported on SR-IOV Virtual Functions only" when attempting to start VM with SR-IOV
Summary: SR-IOV on Cisco UCS environment reports "error: unsupported configuration: In...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: libvirt
Version: 7.1
Hardware: All
OS: Linux
high
high
Target Milestone: rc
: ---
Assignee: Pavel Hrdina
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-10-06 17:13 UTC by Allie DeVolder
Modified: 2019-09-12 09:03 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-12-02 12:18:10 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Allie DeVolder 2015-10-06 17:13:41 UTC
Description of problem:
SR-IOV on Cisco UCS environment reports "error: unsupported configuration: Interface type hostdev is currently supported on SR-IOV Virtual Functions only" when attempting to start VM with SR-IOV

Version-Release number of selected component (if applicable):
Red Hat Enterprise Linux Server release 7.1 (Maipo)

How reproducible:
Unknown

Steps to Reproduce:
1. Configure Cisco according to documentation: http://www.cisco.com/c/en/us/td/docs/unified_computing/ucs/sw/vm_fex/kvm/cli/config_guide/2-1/b_CLI_KVM_VM-FEX_UCSM_Configuration_Guide_2_1/b_CLI_KVM_VM-FEX_UCSM_Configuration_Guide_2_1_chapter_010.html
2. Follow documentation at https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/Virtualization_Deployment_and_Administration_Guide/sect-SR_IOV-Using_SR_IOV.html to configure SR-IOV
3. Start the VM

Actual results:
# virsh start test-VM
error: Failed to start domain test-VM
error: unsupported configuration: Interface type hostdev is currently supported on SR-IOV Virtual Functions only

Expected results:
Successful VM start

Additional info:

Comment 3 Pavel Hrdina 2015-10-09 13:28:14 UTC
Hi, I was investigating this issue and it seems, that you've miss-configured the Cisco VIC.  According the sosreport, the eth1-eth4 are "Dynamic Virtual Adapters" cards, not a Virtual Function.  In general, there should be only one physical network card assigned to the host, the card must have enabled Virtual Function and the virtual cards, that are used for SR-IOV hase to by enabled according the Red Hat Deployment Guide by executing:

   "echo {number} > /sys/class/net/{network}/device/sriov_numvfs"

   where {number} is a requested count of Virtual Function cards
   and {network} is the name of network card, so for example:

   "echo 2 > /sys/class/net/eth0/device/sriov_numvfs"

Please review your Cisco VIC settings and also if it's possible to enable the Virtual Function for the network card.

Comment 4 Pavel Hrdina 2015-11-09 11:09:53 UTC
It's been a month without any reaction, is this bug resolved?

Comment 5 hongming 2015-11-11 05:56:09 UTC
Hi Allan 

I have verified the following bug using libvirt-1.2.17-8.el7.x86_64. It works fine.The result is expected. Please refer to the configuration in the bug.

https://bugzilla.redhat.com/show_bug.cgi?id=1257004#c7

Comment 6 hongming 2015-11-12 09:33:11 UTC
Also test SRIOV VF passthrough , The result is expected.

[root@cisco-b230m2-1 ~]# rpm -q libvirt
libvirt-1.2.17-13.el7.x86_64


[root@cisco-b230m2-1 ~]# lspci|grep Eth
06:00.0 Ethernet controller: Cisco Systems Inc VIC Ethernet NIC (rev a2)
06:00.1 Ethernet controller: Cisco Systems Inc VIC SR-IOV VF (rev a2)
06:00.2 Ethernet controller: Cisco Systems Inc VIC SR-IOV VF (rev a2)


[root@cisco-b230m2-1 ~]# virsh nodedev-list --tree
computer
  |
  +- net_lo_00_00_00_00_00_00
  +- net_virbr0_nic_52_54_00_46_be_b8
  +- pci_0000_00_00_0
  +- pci_0000_00_01_0
  +- pci_0000_00_03_0
  |   |
  |   +- pci_0000_02_00_0
  |       |
  |       +- pci_0000_03_00_0
  |           |
  |           +- pci_0000_04_00_0
  |               |
  |               +- pci_0000_05_00_0
  |               |   |
  |               |   +- pci_0000_06_00_0
  |               |   |   |
  |               |   |   +- net_enp6s0f0_00_25_b5_00_00_00
  |               |   |     
  |               |   +- pci_0000_06_00_1
  |               |   |   |
  |               |   |   +- net_enp6s0f1_00_00_00_00_00_00
  |               |   |     
  |               |   +- pci_0000_06_00_2
  |               |       |
  |               |       +- net_enp6s0f2_00_00_00_00_00_00
  |               |         


[root@cisco-b230m2-1 ~]# virsh start r7.1
Domain r7.1 started

[root@cisco-b230m2-1 ~]# virsh dumpxml r7.1|grep /interface -B11
    </controller>
    <interface type='direct'>
      <mac address='52:54:00:d5:37:6a'/>
      <source dev='enp6s0f2' mode='passthrough'/>
      <virtualport type='802.1Qbh'>
        <parameters profileid='hm-test'/>
      </virtualport>
      <target dev='macvtap0'/>
      <model type='virtio'/>
      <alias name='net0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
    </interface>
    <interface type='hostdev' managed='yes'>
      <mac address='52:54:00:d5:af:6d'/>
      <driver name='vfio'/>
      <source>
        <address type='pci' domain='0x0000' bus='0x06' slot='0x00' function='0x1'/>
      </source>
      <virtualport type='802.1Qbh'>
        <parameters profileid='hm-test'/>
      </virtualport>
      <alias name='hostdev0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x08' function='0x0'/>
    </interface>

Comment 7 Pavel Hrdina 2015-12-02 12:18:10 UTC
Since there was no reaction from customer and according to Hongming this works as expected and there is no issue from our side I'm closing this bug.


Note You need to log in before you can comment on or make changes to this bug.