I know a number of people are running TrueNAS on Proxmox, so I thought I’d ask for help here. I did post a version of this in the Proxmox forums this morning, but it hasn’t gotten any attention, and I’m hoping someone might have some ideas. Happy to provide more info as necessary. tl;dr: I have a TrueNAS Scale VM in Proxmox, but when I add a passthrough HBA to it, it fails to boot.
I’ve got a new build, that I was planning to use to run Proxmox with TrueNAS in a VM, along with some other virtualized apps. (I’d previously considered running TrueNAS on bare metal (as I currently do), but I think I’d rather run my other items under Proxmox than use Scale apps.) I’ve successfully installed Proxmox, created some VMs, and generally played around, but I’m now having trouble starting the TrueNAS VM after I added a passthrough HBA to its hardware.
I think I’ve set up PCI passthrough correctly, and IOMMU and vfio are all activated and show up in my dmesg output.
I created a new VM for TrueNAS Scale, and installed Scale into it, and this initially booted quickly and correctly. I then shut down the VM, and added three PCIe hardware devices to it: an HBA (LSA 9211-8i flashed to IT mode) and two other PCIe hard drives (U.2 NVMe drives attached to Oculink x4 ports). After this, the Scale VM has trouble booting. When I watch the console, SeaBIOS hangs for some time (showing the SeaBIOS version line, and the Machine UUID), then gives various messages indicating that it’s having trouble booting. (It might show an “Initializing…” spinner, maybe a Proxmox logo, then something about an iPXE command line, then something about no boot device being available, then it’ll go back to the SeaBIOS version/Machine UUID line.) Sometimes it shows all of the passed-through drives as available, then it can’t find the boot disk. (The VM options in Proxmox show “sci0, net0” for the boot options, but apparently sometimes SeaBIOS is attempting to boot from the passed-through drives, which are not selected as boot options.)
I’ve tried rebooting a number of times; once and only once it did go through to the installed TrueNAS, and everything looked fine–all the passed-through disks were visible in the “storage” area. But when I rebooted the VM, it once again hung for a while and then got stuck in the same loop. I’ve also tried deleting the VM entirely and installing it again, with the same result–it’s fast and successful until I add the passed-through devices, then it gets stuck at boot.
Running TrueNAS is in fact my main purpose for this installation, so I’d love to figure out how to get this to work. I can do my best to provide additional information about my setup. Thank you.