Problem with pci passthrough of lsi sas controller

marteng

Renowned Member
Dec 30, 2015
1
0
66
45
Hi there,

I've got a strange problem with pci passthrough:

I'm using the newest proxmox ve version 4.1 with a vanilla build kernel 4.4-rc7 (same behavier with the stock kernel 4.2.6). The root system is located on a LSI 9260-8i (LSI2108) Megaraid controller (RAID5) which is working without problems. It is using correctly the "megaraid_sas" module for that controller.

The motherboard (Asus P9D-C, Intel C222 chipsetz) and the cpu (Xeon E3-1231 V3) support VT-d in hardware. The setup is working without problems under vmware esxi 5.5 and 6.0.

When I passthrough a pci-e network card to a vm (Intel i218) there is no problem and everything is working correctly.

But here's the problem:

For the backup vm I want to passthrough the 2nd SAS-controller (LSI2008) for a ZFS setup. After starting the backup vm the host instantly looses its connection to the root fs from the LSI2108 controller. I get i/o errors and can only hard reset the proxmox system.

I tried everything correct:
- with and without "machine q35"
- vfind-bind -script to unbind the LSI2008 controller before starting the backup vm

The problem must belong to the "megaraid_sas" module. Is there any known incompatibility of these two LSI sas controllers with pci passthrough? (Without passthrough they are both working concurrently 100% correctly.) I'm

I'm aware of the kernel bug with pci passthrough since kernel version 4.2. This is why I tried the newest kernel version 4.4-rc7 which should have solved the problem. For my understanding the problem belongs to another subject between the lsi drivers "megaraid_sas" (for Fusion cards LSI2108) and "mpt3sas" (for MPT cards LSI2008). Although i'm blacklisting the mpt3sas driver and pci-stubbing the device id. I have successfully confirmed that afterwoods the mpt3sas driver isn't loaded anymore an the connected drives the the LSI2008 SAS-controller arent' recognized anymore which should be correctly.

Thank you for your help.

Martin
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!