[SOLVED] iSCSI share from Proxmox

rcd

Active Member
Jul 12, 2019
245
23
38
62
How can i configure Proxmox to share an iSCSI (or other block level share) to be mounted on a PC)?
I can only find descriptions for mounting iSCSI shares exported from other servers onto Proxmox.
 
Uh, another rabbithole ...

The Debian page is quite limited. I found a better guide on Server World. Still, after installing, trying to run targetcli i get this error:

Code:
b"modprobe: ERROR: ../libkmod/libkmod.c:586 kmod_search_moddep() could not open moddep file '/lib/modules/5.4.41-1-pve/modules.dep.bin'\nmodprobe: FATAL: Module target_core_mod not found in directory /lib/modules/5.4.41-1-pve\n"
root@nas:/data#

I'm guessing this means it won't run in a CT, so is there a best practice for this? Run it on the host? I'd rather not have to start yet another VM for this.

What about Ceph? It seems to also be some way of providing clustered block-level storage? Could it be used as a newer version of iSCSI?
 
What about Ceph? It seems to also be some way of providing clustered block-level storage? Could it be used as a newer version of iSCSI?

No, CEPH is distributed shared storage, whereas iSCSI is exporting storage from one endpoint and providing dedicated shared storage.

I'm guessing this means it won't run in a CT, so is there a best practice for this? Run it on the host?

Of course on the host. Targetcli-fb works fine directly on the PVE host, @fireon has also written a german howto.
 
Ok, I just thought it was generally discouraged to run services on the host.
 
Ok, I just thought it was generally discouraged to run services on the host.

That depends on what you want to share. If you e.g. want to share ZFS via NFS, Samba, iSCSI or FC, you need to have it on your host. It'll also yield the best performance.
You can however do everything inside of a VM (not CT), but that depends also on the use case.
 
Ok, installed on the host using the guide mentioned earlier works fine.
 

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!