PCI Passthrough
-
Dear All
I am new to XCP-ng and after a lot of research and digging around I managed to passthrough a very old PCI card on windows 7. I have now been struggling for 3 weeks to get this working in my Lab. I have run out of ideas. The PCI card is a PCMCIA Card that has two card slots. When I use the command "lspci" I can see 4 entries, if I pass the PCMCIA card the VM does not start but if I Pass the actual card itself, I can see it as Base System Device. When I go into Device Manager and install the drivers (given my the manufacturer using the CD), the installation hangs. I go into task manager and close the windows. I can now see the device with an Warning(Exclamation Sign) and the message "Device Manager can't start the device (Code 10)". I thought it was my PCI slot so I changed the slot, then I thought it might be the card PCI card itself so I installed it on a physical machine and the card works just fine. I have run out of ideas and on the verge of breaking the card into pieces
Any help would be highly appreciated. From the little knowledge that I have I am suspecting that the card is not liking the Passthrough. Are there any other settings that I need to enable or disable or anything.
It cant be the drivers - Because it works on a Physical Machine
It cant be the PCI card - Because XCP-ng can see it using the command "lspci"
it cant be the PCI Slot - Because I changed the slots.I have wasted a month troubleshooting and almost given up.
Appreciate any suggestions and help.
PS. I am not that great in xen linux so go easy on me
-
I am very much guessing here, but: I don't think you're looking at a single card in this case. Rather must be a switch of some kind involved, which translates between PCI and PCIe and also allows more than one PCI device to be connected to the PCIe bus.
And you'd have to
- remove all devices from the Dom0 (host)
- add all devices to the DomU (guest) VM (as a list in a single command)
lshw may help you figure out the bus topology and device IDs, although none of the Linux tools seem to come close to how HWinfo displays things on Windows. It should definitely help you see things more clearly on the Windows VM, once devices arrive there.
If you have any other device, say a spare NIC to test on first, you may be able to save yourself pulling from pulling your hair out.