NIC Passthrough doesnt seem right


Recommended Posts

Heya Lovely People

 

I'm trying to pass through my NIC to my pfsense VM and am having some issues.

 

The VM see's the nic, and when I put the specific switchport as access for a VLAN, it works fine with network traffic all OK; however, if I set the switchport to trunk, it doesn't pick up the VLAN's in the VM at all... I'm kinda grasping at straws at this stage, so any help would be appreciated.

 

 

I've taken a look at the logs for the VM and I'm seeing these errors:

2019-05-30T22:34:59.710617Z qemu-system-x86_64: vfio-pci: Cannot read device rom at 0000:09:00.0
Device option ROM contents are probably invalid (check dmesg).
Skip option ROM probe with rombar=0, or load from file with romfile=
2019-05-30T22:34:59.717422Z qemu-system-x86_64: vfio-pci: Cannot read device rom at 0000:09:00.1
Device option ROM contents are probably invalid (check dmesg).
Skip option ROM probe with rombar=0, or load from file with romfile=

This is the excerpt in my VM file for the actual NIC:

    <hostdev mode='subsystem' type='pci' managed='yes'>
      <driver name='vfio'/>
      <source>
        <address domain='0x0000' bus='0x09' slot='0x00' function='0x0'/>
      </source>
      <alias name='hostdev0'/>
      <address type='pci' domain='0x0000' bus='0x03' slot='0x00' function='0x0'/>
    </hostdev>
    <hostdev mode='subsystem' type='pci' managed='yes'>
      <driver name='vfio'/>
      <source>
        <address domain='0x0000' bus='0x09' slot='0x00' function='0x1'/>
      </source>
      <alias name='hostdev1'/>
      <address type='pci' domain='0x0000' bus='0x04' slot='0x00' function='0x0'/>
    </hostdev>

and the related lspci excerpts

09:00.0 Ethernet controller: Intel Corporation 82576 Gigabit Network Connection (rev 01)
09:00.1 Ethernet controller: Intel Corporation 82576 Gigabit Network Connection (rev 01)

09:00.0 0200: 8086:10c9 (rev 01)
09:00.1 0200: 8086:10c9 (rev 01)

And ofcourse, the addition to my syslinux.cfg

label Unraid OS
  menu default
  kernel /bzimage
  append pci-stub.ids=8086:10c9 initrd=/bzroot

Thanks heaps!

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.