m00nraker
Dabbler
- Joined
- Apr 12, 2015
- Messages
- 13
Hi guys.
I'm new to this forum and I would like to jump on the train and wanted to setup a virtualized FreeNAS. Please don't put me in a hole and throw stones on me. English is not my native language, so I try to do my best. First I have to say, that I read a lot about setting up FreeNAS in the last weeks. I read all the recommendations and guides (e.g. key concepts, or "guide...to not completely losing your data") here and I hope I am aware what I'm doing. FreeNAS natively runs fine on my hardware but this is not my way.
So I decided to go the PCIe-passthrough way with an additional LSI HBA controller in IT-Mode.
I did also made a post in the Proxmox-forum, but I think the problem is related to FreeNAS itself and not to Proxmox as I thought before. I also hope that I don't miss a forum post that could solve my problem. Then forgive me.
# Both SSDs are attached directly to the Supermicro SATA onboad ports
# All other SATA Seagate 4TB drives are attached to the LSI 9300 HBA (IT-mode = Raid functions disabled).
# Supermicro BIOS settings: AHCI enabled for SATA, Intel-Software-Raid disabled for all 6 onboard-ports.
# LSI-Controller-BIOS: Adapter BIOS disabled (= all boot-functions disabled), so HBA only (no booting from attached drives).
So 01:00.0 has to be to passthroughed to the VM. For that this is the relevant part of the VM config-file:
(BTW, for the onboard SATA controller/SSD I use virtio. That works fine, also for other VMs)
Booting gets stucked then.
(I get the same result, when booting the VM into the installer-ISO with previously enabled PCIe-passthrough.)
So what's the problem? I really don't know. In the first run I thought I had some issues with my Proxmox setup (IRQs, settings, whatever). I tested around and I go through the Proxmox forum and all the wikis, read a lot, and so on. But with nothing I had success. Then I changed a lot in the Supermicro Bios-Settings. All I did, no success, even when switching from AHCI to IDE. Then I had the idea, to try the latest FreeNAS 10.1 Milestone. And voila: success. I configured the VM to use 10.1-ISO-Installer and I started the VM with passthrough enabled. All hardware gets detected at the first run, the onboard SATA controller, the passthrough'ed LSI and all attached HDDS. After finishing setup, the FreeNAS-10.1M1 boots normally and eveything was detected.
I think there must be an issue with the FreeNAS-9.3 stable.
Before I start a bug-report for 9.3, has anybody any clue what I can do to enable PCIe-passthrough with 9.3 to work with my setup or at least what I can do to workaround the problem? Is it really FreeNAS related or could it be possible, that a setting in my hypervisor setup has to be changed?
I read something about the SATA timeout in the forums, and other people also have this prolem, but not related to pcie-passthrough. But I only run into trouble, when PCIe-passthrough was enabled before. 10.1M1 doesn't have these problems. 10.1 is not for production. So this is not an option for me.
I attached some files with additional information:
# lspci -vv on Proxmox host
# FreeNAS /var/run/dmesg.boot for 9.3 without passthrough and for 10.1 with passthrough
# qm monitor output for running VMs (9.3 and 10.1)
Please, I need some advice, help, whatever....? Thanks for any tipps and don't anger about my basic english skills.
Kai
I'm new to this forum and I would like to jump on the train and wanted to setup a virtualized FreeNAS. Please don't put me in a hole and throw stones on me. English is not my native language, so I try to do my best. First I have to say, that I read a lot about setting up FreeNAS in the last weeks. I read all the recommendations and guides (e.g. key concepts, or "guide...to not completely losing your data") here and I hope I am aware what I'm doing. FreeNAS natively runs fine on my hardware but this is not my way.
So I decided to go the PCIe-passthrough way with an additional LSI HBA controller in IT-Mode.
I did also made a post in the Proxmox-forum, but I think the problem is related to FreeNAS itself and not to Proxmox as I thought before. I also hope that I don't miss a forum post that could solve my problem. Then forgive me.
Code:
Hardware: Supermicro X10SLH-F Intel Xeon E3-1275Lv3 32GB Samsung ECC-RAM (4x8GB sticks) Host Bus Adapter LSI 9300-8i (in IT-Fimware mode, latest Bios and Firmware updated) HDD: 2x Samsung 850 Pro 256GB SSD HDD: 3x Seagate 4TB NAS HDD (= total 12TB) Intel I350 Quad NIC (in addition to the 2 Intel I210 onboard NICs) Digital Devices Cine S2 Twin-Sat-Card
# Both SSDs are attached directly to the Supermicro SATA onboad ports
# All other SATA Seagate 4TB drives are attached to the LSI 9300 HBA (IT-mode = Raid functions disabled).
# Supermicro BIOS settings: AHCI enabled for SATA, Intel-Software-Raid disabled for all 6 onboard-ports.
# LSI-Controller-BIOS: Adapter BIOS disabled (= all boot-functions disabled), so HBA only (no booting from attached drives).
- Install Proxmox 3.4 with ZFSonLinux as the bare-metal hypervisor for virtualization
(I know ESXi is preferred here, but I fall in love with Proxmox and wanted to go the KVM/QEMU way) - During Proxmox setup I configured both SSDs as a redundant Raid 1 ZFS-pool, so in this ZFS-pool all VM's will find their place alongside Proxmox itself, everything on SSD storage is under control by ZFSonLinux.
- Under Proxmox create a new VM for FreeNAS with FreeNAS-9.3-stable-ISO as the CD-ROM boot medium for the VM (I followed the guidlines here. FreeNAS gets 16GB RAM. For the first run, I don't configure any PCIe-passthrough, so this is a relatively normal setup.)
- After setup, FreeNAS-9.3-VM boots normally and eveything is fine.
- After testing around a little bit I stop the VM and get into the Proxmox config-file for FreeNAS-VM to enable vt-d PCI-Express passthrough for the LSI controller. I followed the PCIe-passthrough guidelines for Proxmox (wiki pages). I also enabled Intel iommu=on in Proxmox-Grub, blacklisted mpt3sas module on host, etc.
Code:
lspci on the Proxmox host: 00:1f.2 SATA controller: Intel Corporation 8 Series/C220 Series Chipset Family 6-port SATA Controller 1 [AHCI mode] (rev 05) ... 01:00.0 Serial Attached SCSI controller: LSI Logic / Symbios Logic SAS3008 PCI-Express Fusion-MPT SAS-3 (rev 02
So 01:00.0 has to be to passthroughed to the VM. For that this is the relevant part of the VM config-file:
Code:
hostpci=01:00.0,pcie=1,driver=virtio machine: q35 ... scsihw: virtio-scsi-pci virtio0: zfs-rpool:vm-100-disk-1,cache=writethrough,backup=no,size=6G
(BTW, for the onboard SATA controller/SSD I use virtio. That works fine, also for other VMs)
- When I now start booting the FreeNAS VM with enabled PCIe-passthrough ,I get some issues.
- The boot process starts normal, the LSI-Controller shows up during POST in VM-Bios (passthrough seems to work).
- Then after booting a while the boot process stopped when FreeNAS detects the onboard SATA controller/ports.
Code:
Output from the console boot screen (also see attached files) ... ... ahcich0: AHCI reset... ahcich0: SATA connect timeout time=10000us status=00000000 ahcich0: AHCI reset: device not found ahcich1: AHCI reset... ahcich1: SATA connect time time=0us status=00000113 ahcich1: AHCI reset: device found ahcich1: AHCI reset: device ready after 0ms ahcich2: AHCI reset... ahcich2: SATA connect timeout time=10000us status=00000000 ahcich2: AHCI reset: device not found ahcich3: AHCI reset... ahcich3: SATA connect timeout time=10000us status=00000000 ahcich3: AHCI reset: device not found ahcich4: AHCI reset... ahcich4: SATA connect timeout time=10000us status=00000000 ahcich4: AHCI reset: device not found ahcich5: AHCI reset... ahcich5: SATA connect timeout time=10000us status=00000000 ahcich5: AHCI reset: device not found
Booting gets stucked then.
(I get the same result, when booting the VM into the installer-ISO with previously enabled PCIe-passthrough.)
So what's the problem? I really don't know. In the first run I thought I had some issues with my Proxmox setup (IRQs, settings, whatever). I tested around and I go through the Proxmox forum and all the wikis, read a lot, and so on. But with nothing I had success. Then I changed a lot in the Supermicro Bios-Settings. All I did, no success, even when switching from AHCI to IDE. Then I had the idea, to try the latest FreeNAS 10.1 Milestone. And voila: success. I configured the VM to use 10.1-ISO-Installer and I started the VM with passthrough enabled. All hardware gets detected at the first run, the onboard SATA controller, the passthrough'ed LSI and all attached HDDS. After finishing setup, the FreeNAS-10.1M1 boots normally and eveything was detected.
I think there must be an issue with the FreeNAS-9.3 stable.
Before I start a bug-report for 9.3, has anybody any clue what I can do to enable PCIe-passthrough with 9.3 to work with my setup or at least what I can do to workaround the problem? Is it really FreeNAS related or could it be possible, that a setting in my hypervisor setup has to be changed?
I read something about the SATA timeout in the forums, and other people also have this prolem, but not related to pcie-passthrough. But I only run into trouble, when PCIe-passthrough was enabled before. 10.1M1 doesn't have these problems. 10.1 is not for production. So this is not an option for me.
I attached some files with additional information:
# lspci -vv on Proxmox host
# FreeNAS /var/run/dmesg.boot for 9.3 without passthrough and for 10.1 with passthrough
# qm monitor output for running VMs (9.3 and 10.1)
Please, I need some advice, help, whatever....? Thanks for any tipps and don't anger about my basic english skills.
Kai
Attachments
-
lspci -vv output on Proxmox host.txt67.2 KB · Views: 539
-
dmesg.boot from running VM FreeNAS-9.3-without pcie-passthrough.txt36.2 KB · Views: 521
-
dmesg.boot from running VM FreeNAS-10.1M1-with pcie-passthrough.txt64.6 KB · Views: 588
-
FreeNAS-9.3-with pcie-passthrough enabled-screenshot boot stop.jpg109.1 KB · Views: 864
-
qm monitor - info pci for running VM FreeNAS 9.3 no pcie-passthrough.txt1.6 KB · Views: 446
-
qm monitor - info pci for running VM FreeNAS 10.1M1 with pcie-passthrough.txt5.5 KB · Views: 461