LSI 1068 SAS scsihw

dblacknc

Active Member
Aug 26, 2012
1
0
41
I have a unique FreeBSD VM that will only work with the LSI 1068 SAS qemu virtual device - mptsas1068 or in the build that ships with PVE 8.0, lsisas1068.

I patched PVE to add the device and the VM is working well for my purposes. I'm not sure how stable this device is though, as I also tried booting an Ubuntu 22.04 VM using it for the SCSI adapter, and the mptsas driver paniced late in the boot process. The default LSI SCSI device isn't exactly new code either. ;)

Is there any interest in/willingness to add the LSI 1068 SAS driver to PVE? Happy to provide a complete proposed patch. It's a little different than what I see assumed in the code for current (virtual) SCSI devices: Each of the eight ports per controller can host two LUNs/drives, for a max of 16 per controller. It also requires at least in Linux that each disk has a WWN specified for them to be detected. (FreeBSD doesn't.) I haven't yet looked into whether/how automatically or at least easily adding WWNs to virtual SCSI disks is in PVE. I know they can manually be added.
 
Hi,
I have a unique FreeBSD VM that will only work with the LSI 1068 SAS qemu virtual device - mptsas1068 or in the build that ships with PVE 8.0, lsisas1068.

I patched PVE to add the device and the VM is working well for my purposes. I'm not sure how stable this device is though, as I also tried booting an Ubuntu 22.04 VM using it for the SCSI adapter, and the mptsas driver paniced late in the boot process. The default LSI SCSI device isn't exactly new code either. ;)
yes, but our configuration files are not versioned, so we cannot change the default for backwards compatibility reasons (e.g. for restoring an old backup where the option is not explicitly set, it still needs to use the old default).

Is there any interest in/willingness to add the LSI 1068 SAS driver to PVE? Happy to provide a complete proposed patch.
I'm not aware of anybody else requesting support for this yet and each new feature adds a maintenance burden. You can always add a feature request on the https://bugzilla.proxmox.com/ first and see if anybody else would be interested. If there is enough interest, see https://pve.proxmox.com/wiki/Developer_Documentation for how to submit patches. Then you'd need to sign the harmony CLA too: https://pve.proxmox.com/wiki/Developer_Documentation#Software_License_and_Copyright

It's a little different than what I see assumed in the code for current (virtual) SCSI devices: Each of the eight ports per controller can host two LUNs/drives, for a max of 16 per controller. It also requires at least in Linux that each disk has a WWN specified for them to be detected. (FreeBSD doesn't.) I haven't yet looked into whether/how automatically or at least easily adding WWNs to virtual SCSI disks is in PVE. I know they can manually be added.
It's not yet exposed, as described here: https://bugzilla.proxmox.com/show_bug.cgi?id=4792 and sounds like a prerequisite for us to accept the change if the controller doesn't work with Linux otherwise.
 
it's one of the most popular sas controller / chips in older servers generation and i'm sure this would also simplify physical to virtual migrations from older machines/servers.
Well, I'd only recommend using an emulated controller if it really is needed by the VM. Hardware emulation is more complex and I'd expect less performant than just using a VirtIO SCSI controller.
 
yes, sure.

for example we have some very ancient legacy VMs (centos5) which were migrated from xenserver , and i remember i struggled with virtual scsi controllers for a while to get them boot and run without problem - and i guess i would have loved availability of lsi1068 because that is well known to me
 

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!