I’m soooo close to geting ZFS over iSCSI to work on proxomox.
To do ZFS over iSCSI, proxmox needs ssh root access to scale…
So I added my ed25519 public key in root credentials
Then I created the ed25519 private key in proxmox but I had to name it “rsa” since it only looks for the rsa key.
So you put the private key in /etc/pve/priv/zfs/192.168.1.115_id_rsa
because that’s the only key it will use. so it’s mislabelled (since it’s an ed25519 key), but that doesn’t matter. It works.
I used “Modern storage” when creating the volume on the truenas side.
The HUGE clue was picking the new zfs storage and then picking the vm disks and that told me that it was failing on the ssh command and it was only trying the rsa key.
I’m close but no cigar yet. Get error message:
Here is my storage.cfg file:
zfs: iscsi-test-2
blocksize 4k
iscsiprovider LIO
pool main
portal 192.168.1.115
target iqn.2005-10.org.freenas.ctl:iscsi
content images
lio_tpg tpg2
nowritecache 1
sparse 0
Note
- You must use provider=LIO
- the tpg has to have tpg before the number, you can just say 2, you have to say:
tpg2
I get the error message because targetcli
simply doesn’t exist on Truenas scale.
Either this is an oversight, or it is done for security reasons so Scale is managing things.
So I’m I’ve hit a brick wall that I’m supposed to hit and should just use iSCSI without the ZFS abilities like this which is a piece of cake because as soon as you type the hostname, you get a list of all the targets!