To test, create an iSCSI target on your SAN/NAS or use tgt under Linux to share a LVM disk over iSCSI.
Create a VM, preferably with an OS which can be quickly tested to confirm write issues such as FreeDOS, then attach iSCSI using the following command:
Code: Select all
VBoxManage storageattach "FreeDOS" --storagectl "IDE" --port 0 --device 0 --type hdd --medium iscsi --server san.local --target "iqn.2018-01.veroneau.net:vm.freedos" --tport 3260 --lun 1 --mtype multiattach
If you search the machine's usual snapshot directory, you will see a fresh 2.0M differential VDI image sitting there with nothing written to it. The VirtualBox log for the VM does not say anything helpful about it having trouble to write to the snapshot as it should be expected.
The idea behind doing this, is to have a central repository of disk images shared through iSCSI on a SAN, and various workstations can use these disk images over the network, but their specific changes are stored locally on their workstation in the VirtualBox snapshot directory.
I am planning on testing a VBox snapshot while using a read-write iSCSI disk on the SAN to see if any snapshot support is even working for iSCSI disks. I will update this post with those results shortly, as that will be a workaround, but if a snapshot isn't made before booting the VM, then it compromises the original iSCSI disk image.
Update as promised: I made the iSCSI disk read-write, and created a snapshot before booting the VM within the VBox GUI, and it also hung when I attempted to write to the disk. Just as a test, I deleted the snapshot from the GUI, and booted it back up, and tried to write a file with no snapshot and it wrote back to the iSCSI disk with no issues. So snapshotting with iSCSI backed disks is not currently working.