[TUTORIAL] Guide: Setup ZFS-over-iSCSI with PVE 5x and FreeNAS 11+

You probably have a configuration error. Please post your config
Here is the relevant part of my storage.cfg (pve-manager/9.0.10/deb1ca707ec72a89 (running kernel: 6.14.8-2-pve):
Code:
zfs: trinity-zfs
        blocksize 4k
        iscsiprovider truenas
        pool trinity/pve
        portal 10.47.27.1
        target iqn.2022-07.lan.fms:srv-nas1:storage
        content images
        nowritecache 0
        sparse 0
        truenas_apikey XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
        truenas_use_ssl 1
        truenas_user root
        zfs-base-path /dev/zvol

iSCSI Shares on TrueNAS (SCALE 25.04.2.4):
1760529804068.png

I can see the available space on my iSCSI ZFS storage on Proxmox. But can't create VM. For example:
Warning: volblocksize (4096) is less than the default minimum block size (16384).
To reduce wasted space a volblocksize of 16384 is recommended.
TASK ERROR: unable to create VM 641 - Host is required at /usr/share/perl5/PVE/Storage/LunCmd/TrueNAS.pm line 176.
 
You are missing
Code:
truenas_apiv4_host 10.47.27.1

The host ip can be different than the portal ip so they both need to be set. Also you don't need user with an API key.
 
Last edited: