@adaptive_chance asked for more info on the state of using ZFS over iSCSI in Proxmox with a target on TrueNAS SCALE/Community Edition. Here’s a brief summary based on what I understand so far.
This is specifically for ZFS over iSCSI in Proxmox, which allows you to mount an iSCSI target from Proxmox and use it as a ZFS storage device–allowing, e.g., storing RAW virtual disk images that can be properly snapshotted, among other benefits c.f. NFS-backed storage. (This is separate from per-VM individual iSCSI block devices.) Here’s the Feature Request: Add LIO or IET iSCSI target compatibility to SCALE so Proxmox "ZFS over ISCSI" can work natively - Feature Requests - TrueNAS Community Forums
Problem/Justification
SCALE doesn’t implement LIO or IET which are required by Proxmox. Storage: ZFS over ISCSI - Proxmox VEThere is a workaround by using a sometimes buggy API. The ask here is to allow Proxmox to more natively be integrated into TrueNAS.
LIO or IET are iSCSI target protocols that TrueNAS doesn’t support.
From that thread, an iX Systems employee:
I don’t understand why, but apparently implementing either one of these would break too much internally to be practicable.
Meanwhile, on the Proxmox side, the community plugin that’s maintained by PVE users to indirectly implement ZFS over iSCSI via API calls and SSH root access is currently being rewritten to squash some bugs and get around the old TrueNAS API being depreciated (and breaking) and the new API websockets being buggy in TrueNAS 25.04.0. Something about depreciating the API also broke the plugin in 24.10.2, so that also had to be fixed.
iX has indicated that the old method that the FOSS project uses (just logging in via SSH and executing raw ZFS commands) is a non-starter going forward and needs to be replaced with the correct API calls, but the latest word on the GitHub for the FOSS project is that the API doesn’t implement everythng they need to actually do that, so they’re on to … plan C at this point.
It keeps getting more complicated, but they’re not giving up. It’s spawned a couple of JIRA issues to get the TrueNAS API and documentation for the API fixed up a bit.
I don’t know enough about iSCSI target technologies to have an opinion about iX not wanting to implement the target protocols that Proxmox actually supports, but they’re not into doing that, so we’re taking the long way around the mountain.
Here’s the Proxmox issue: Making sure you're not a bot!
And the 3rd party FOSS plugin currently being worked on to get it working again with the 25.04 API: Truenas Scale 2025.04 api error · Issue #205 · TheGrandWazoo/freenas-proxmox · GitHub
EDIT:
Apparently, there’s been a breakthrough on the 25.04 websocket-based API compatible plugin.
The community over on the Freenas-Proxmox GitHub has really been tearing into this over the last couple weeks. It’s been awesome to see. At this rate, iX might not have to do anything to get this working correctly.