iSCSI connection issue after upgrade to proxmox 9

boomshankerx

New Member
Jun 7, 2024
23
22
3
Earth
I just upgraded from proxmox 8 to 9 and none of my iSCSI LUNs can connect. Everything was working with proxmox 8. I'm using ZFS over iSCSI with TrueNAS 25.04.

Code:
kvm: -blockdev {"detect-zeroes":"unmap","discard":"unmap","driver":"throttle","file":{"cache":{"direct":true,"no-flush":false},"detect-zeroes":"unmap","discard":"unmap","driver":"raw","file":{"aio":"io_uring","cache":{"direct":true,"no-flush":false},"detect-zeroes":"unmap","discard":"unmap","driver":"host_device","filename":"iscsi://10.10.10.10/iqn.2005-01.com.example:proxmox/1","node-name":"OBFUSCATED","read-only":false},"node-name":"OBFUSCATED","read-only":false},"node-name":"drive-scsi0","read-only":false,"throttle-group":"throttle-drive-scsi0"}: Could not open 'iscsi://10.10.10.10/iqn.2005-01.com.example:proxmox/1': No such file or directory

I can ping the target and I can even add the target as iSCSI storage and see all the raw extents.

I could use a bit of help troubleshooting.
 
Last edited:
ChatGPT says "driver":"host_device" is incorrect in this context. Proxmox should be using "driver":"iscsi" for iscsi direct. Is this a bug or a problem with my config some how?

Code:
root@pve1:~# qm showcmd 100 --pretty
TrueNAS [INFO] : Connected
TrueNAS [INFO] : Authenticated
TrueNAS [INFO] : Version: TrueNAS-25.04.2.1
TrueNAS [INFO] : zvol/VMFS1/proxmox/vm-100-disk-0 with key 'path' found : /dev/zvol/VMFS1/proxmox/vm-100-disk-0
TrueNAS [INFO] : zvol/VMFS1/proxmox/vm-100-disk-0 with key 'lunid' found : 13
TrueNAS [INFO] : zvol/VMFS1/proxmox/vm-100-disk-0 with key 'path' found : /dev/zvol/VMFS1/proxmox/vm-100-disk-0
TrueNAS [INFO] : zvol/VMFS1/proxmox/vm-100-disk-0 with key 'lunid' found : 13
/usr/bin/kvm \
  -id 100 \
  -name 'vm100,debug-threads=on' \
  -no-shutdown \
  -chardev 'socket,id=qmp,path=/var/run/qemu-server/100.qmp,server=on,wait=off' \
  -mon 'chardev=qmp,mode=control' \
  -chardev 'socket,id=qmp-event,path=/var/run/qmeventd.sock,reconnect-ms=5000' \
  -mon 'chardev=qmp-event,mode=control' \
  -pidfile /var/run/qemu-server/100.pid \
  -daemonize \
  -smbios 'type=1,uuid=bba49b32-86f0-4ba1-b2af-c9c08b1a706b' \
  -smp '1,sockets=1,cores=1,maxcpus=1' \
  -nodefaults \
  -boot 'menu=on,strict=on,reboot-timeout=1000,splash=/usr/share/qemu-server/bootsplash.jpg' \
  -vnc 'unix:/var/run/qemu-server/100.vnc,password=on' \
  -cpu qemu64,+aes,enforce,+kvm_pv_eoi,+kvm_pv_unhalt,+pni,+popcnt,+sse4.1,+sse4.2,+ssse3 \
  -m 2048 \
  -object 'iothread,id=iothread-virtioscsi0' \
  -object '{"id":"throttle-drive-scsi0","limits":{},"qom-type":"throttle-group"}' \
  -global 'PIIX4_PM.disable_s3=1' \
  -global 'PIIX4_PM.disable_s4=1' \
  -device 'pci-bridge,id=pci.1,chassis_nr=1,bus=pci.0,addr=0x1e' \
  -device 'pci-bridge,id=pci.2,chassis_nr=2,bus=pci.0,addr=0x1f' \
  -device 'pci-bridge,id=pci.3,chassis_nr=3,bus=pci.0,addr=0x5' \
  -device 'vmgenid,guid=8c41062e-c853-4466-ba49-6d09664135de' \
  -device 'piix3-usb-uhci,id=uhci,bus=pci.0,addr=0x1.0x2' \
  -device 'usb-tablet,id=tablet,bus=uhci.0,port=1' \
  -device 'VGA,id=vga,bus=pci.0,addr=0x2' \
  -device 'virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x3,free-page-reporting=on' \
  -iscsi 'initiator-name=iqn.1993-08.org.debian:01:69a8c2425952' \
  -device 'ide-cd,bus=ide.1,unit=0,id=ide2,bootindex=100' \
  -device 'virtio-scsi-pci,id=virtioscsi0,bus=pci.3,addr=0x1,iothread=iothread-virtioscsi0' \
  -blockdev '{"detect-zeroes":"unmap","discard":"unmap","driver":"throttle","file":{"cache":{"direct":true,"no-flush":false},"detect-zeroes":"unmap","discard":"unmap","driver":"raw","file":{"aio":"io_uring","cache":{"direct":true,"no-flush":false},"detect-zeroes":"unmap","discard":"unmap","driver":"host_device","filename":"iscsi://10.11.11.1/iqn.2005-01.com.techgsolutions:proxmox/13","node-name":"e7c1a8f312c63bc226d3b1a6679e37c","read-only":false},"node-name":"f7c1a8f312c63bc226d3b1a6679e37c","read-only":false},"node-name":"drive-scsi0","read-only":false,"throttle-group":"throttle-drive-scsi0"}' \
  -device 'scsi-hd,bus=virtioscsi0.0,channel=0,scsi-id=0,lun=0,drive=drive-scsi0,id=scsi0,device_id=drive-scsi0,write-cache=on' \
  -netdev 'type=tap,id=net0,ifname=tap100i0,script=/usr/libexec/qemu-server/pve-bridge,downscript=/usr/libexec/qemu-server/pve-bridgedown,vhost=on' \
  -device 'virtio-net-pci,mac=BC:24:11:70:A3:6D,netdev=net0,bus=pci.0,addr=0x12,id=net0,rx_queue_size=1024,tx_queue_size=256,bootindex=101' \
  -machine 'type=pc+pve0'
 
Last edited:
** UPDATE **
I managed to get everything working by doing apt reinstall -f proxmox-ve pve-manager libpve-storage-perl
Something was cleary stuck.
 
Last edited:
  • Like
Reactions: uzumo