Closed jeremfg closed 3 years ago
I use PCI Passthrough on XCP-NG 81 whitout problems. lspci shows the the pci raid device, but disks on this device are only visible to assigned VM. (FreeBSD) In case of network device, i think you need a physical cable as virtual switch on host cannot connect to the interface.
In case of network device, i think you need a physical cable as virtual switch on host cannot connect to the interface.
What do you mean? I've successfully passed NICs before in Xen Server 6.5. I expect the host to NOT see the interfaces I'm trying to pass to a VM. I'm not trying to do anything "virtual" here.
In my experience using PCI passthrough with XenServer/XCP-ng, the devices will still show on the host. However, instead of having the normal kernel driver that you'd expect i.e. "igb" for the Intel i350, it shows "pciback".
Running dmesg | grep pciback
should show all the BDFs you added to xen-pciback.hide=
Running lspci -s 66:00.0 -v
should show Kernel driver in use: pciback
More in depth info here: https://wiki.xenproject.org/wiki/Xen_PCI_Passthrough
Have you tested another OS to confirm using PCI Passthrough is working successfully with the i350?
Closing as the initial question received an answer.
Fresh install of xcp-ng 8.1.0 on a X11SDV-8C-TP8F motherboard from supermicro
I'm trying to setup PCI passthrough for a few devices I want to pass to VMs. However, there seems to be a conflict between host and guest, both "seeing" the devices and thus not working.
I'm focusing on three 1GbE NICs here, denoted by IDs (0000:66:00.1)(0000:66:00.2)(0000:66:00.3)
Here is what I see on the host:
As you can see, lspci still show those devices, even though they should have been "hidden" thanks to xen-pciback.hide. As further proof, these devices appear in command xl pci-assignable-list. I've also checked the content of /boot/grub/grub.cfg and everything seems fine.
XCP-ng Center and XOCE both show the NICs, even properly identifying their status if a cable is plugged in or not. The VM I've assigned these devices (a fresh install of OPNsense) also see these interfaces, as if the PCI Passthrough was successful. But I can't ping or open the webUI even after ensuring the proper interface assignment is good. So while FreeBSD can see them, they aren't working.
I've been able to pass regular virtual interfaces, or even been able to make SR-IOV work with this VM. But PCI Passthrough doesn't seem to work as expected.
Any ideas? The behavior seems really weird to me, that both host and guest see the devices.