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

Oddly though, the error says Undefined 'freenas_user" and/or "freenas_password"
but, in the storage.cfg, the variables are labeled as 'freenas_user' and 'truenas_secret'
should that 'truenas_secret' be labeled as 'freenas_password'?
Thats a good guess and easy to try. You can examine the plugin source to see what values are actually used.
Did you install the plugin from official source or one of the clones? If its the former, you should file a bug with developer.


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
 
Thats a good guess and easy to try. You can examine the plugin source to see what values are actually used.
Did you install the plugin from official source or one of the clones? If its the former, you should file a bug with developer.


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
Official source, but now I receive the error I updated above.
If I view line 389 I see this.
freenas_api_log_error($freenas_server_list->{$apihost});
die "Unable to connect to the FreeNAS API service at '" . $apihost . vvv.
I'm not sure where to find the freenas_server_list to manually modify it though.
I believe that because I am connecting to the target with an initiator with a /30 network, I need to somehow tell this too look for that targets ip?
 
Last edited:
Hi, I just wanted to share the error I encountered and the solution that worked for me.

Code:
update VM 183: -scsi1 iscsi-pve2-truenas:32,iothread=on
Use of uninitialized value $extent_id in concatenation (.) or string at /usr/share/perl5/PVE/Storage/LunCmd/FreeNAS.pm line 651.
TASK ERROR: Unable to create lun /dev/zvol/*****************/recursos-iscsi/pve-dataset/disk-images-pve2/vm-183-disk-0 at /usr/share/perl5/PVE/Storage/LunCmd/FreeNAS.pm line 270

This error occurred because the name of the pool exceeded 64 characters.

Solution:I shortened the pool name to meet the 64-character limit, and the issue was resolved.

Best regards!
 
It worked on mine PVE 8.2.7.

"You dont need to create any extents as the FreeNAS-API plugin will do this automatically when the drive is created on the VM."

But I made my extent myself.

Thanks!

P.S I'm playing Proxmox in my lab (under free EXSi) and I really like PVE & PBS!
 
Last edited:
I got this error when I try to use the ISCSI...

1732163227886.png

My storage config:

1732163270190.png

1732163301369.png

On truenas (tail -f /var/log/auth.log), appears only:

1732163393873.png

I don't know more what to do :/

Somebody could help me, please? Thanks! :)
 
Try to run that command manually (up to "zfs list" the rest you can drop). You may get a more verbose error. If it works, the SSH is working, keep adding portions of the command until you hit an error. Troubleshoot from there.
If the ssh fails, then examine your password, ssh key etc. If you cant ssh - nothing will work.

Good luck


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!