Attempt to connect to Synology NAS with iSCSI fails
Posted: 21. Aug 2020, 03:41
I'm having trouble establishing a connection from a VM to a Synology DS418 NAS using iscsi. I’m a novice at both VirtualBox and iscsi, but have managed to successfully use iscsi on the Debian Buster Host using open-scsci successfully many times.
The Gory Details:
While trying to connect a Debian Buster Guest VM, the iscsi targets on the Host are disconnected and removed to make sure the guest VM is the only device trying to connect to the target. The iscsi target is known and has been connected to, and used by the Host successfully many times.
When running the VBoxManage storageattach command, the VboxSVC.log fills up with failed attempts to connect to the target. This can last over an hour and It continues until I manually intervene by disconnecting the ethernet cable. I’ve observed that the port search starts at port 32768 and will search every other port in sequence up until port 60998, then recycle back to 32768.
In my first attempts I was using VboxManage storageattach without specifying the –lun and and –tport parameters but further research suggested that it may be necessary to specify the LUN using whatever was assigned on the NAS. Checking my NAS revealed that the LUN for this particular target was not 0, but 1. I assumed that the VBox initiator would use the standard iscsi target port of 3260 but after seeing the thousands of connection attempts in the log I tried to be specific about it. Each attempt to connect with VboxManage storageattach will pick up port searching where the last search left off.
What am I doing wrong?
Pleased see attached output of storageattach console output, showvminfo, systemproperties, version, and annotated VBoxSVC.log (look for ###) and screenshots.
The Gory Details:
While trying to connect a Debian Buster Guest VM, the iscsi targets on the Host are disconnected and removed to make sure the guest VM is the only device trying to connect to the target. The iscsi target is known and has been connected to, and used by the Host successfully many times.
When running the VBoxManage storageattach command, the VboxSVC.log fills up with failed attempts to connect to the target. This can last over an hour and It continues until I manually intervene by disconnecting the ethernet cable. I’ve observed that the port search starts at port 32768 and will search every other port in sequence up until port 60998, then recycle back to 32768.
In my first attempts I was using VboxManage storageattach without specifying the –lun and and –tport parameters but further research suggested that it may be necessary to specify the LUN using whatever was assigned on the NAS. Checking my NAS revealed that the LUN for this particular target was not 0, but 1. I assumed that the VBox initiator would use the standard iscsi target port of 3260 but after seeing the thousands of connection attempts in the log I tried to be specific about it. Each attempt to connect with VboxManage storageattach will pick up port searching where the last search left off.
What am I doing wrong?
Pleased see attached output of storageattach console output, showvminfo, systemproperties, version, and annotated VBoxSVC.log (look for ###) and screenshots.