Opened 10 years ago
Last modified 7 years ago
#12567 reopened defect
snapshot to a remote iSCSI volume (builtin initiator) broken since 4.3.0 (verified on Windows and Mac hosts) — at Version 1
Reported by: | Alban | Owned by: | |
---|---|---|---|
Component: | other | Version: | VirtualBox 4.3.6 |
Keywords: | snapshot iSCSI | Cc: | |
Guest type: | all | Host type: | all |
Description (last modified by )
Hello,
I used to have workstations running local VirtualBox VMs which base disk are connected to the same remote iSCSI read-only lun. It use to work because each VM also have a default snapshot to the base disk meaning disk writes are redirected to the local differential disk created by the snapshot.
This worked correctly from version 4.0 to latest 4.2.20 and seems broken starting from 4.3.0, including latest 4.3.6.
I could verify this on a Mac host (OSX 10.9) and a Windows host (Windows 7 Prof.). I expect it to be the same on a Linux Host but didn't have a chance to verify.
How to reproduce:
machine 1: iSCSI server (I used ietd on SLES). IP address 192.168.0.19
machine 2: VirtualBox host (Windows or OSX using Virtualbox 4.3.6). IP address 192.168.0.23
- machine 1:
- create an iSCSI target and a read-write 20GB Lun
target: iqn.1995-09.fr.univ-lr:storage.win7
lun: 2
- create an iSCSI target and a read-write 20GB Lun
- machine 2:
- create a VB VM 'win7' without a hard disk
- attach the iSCSI volume from machine 1 with VBoxManage:
VBoxManage storageattach "win7" --storagectl IDE --port 0 --device 1 --type hdd --medium iscsi --mtype normal --server "192.168.0.19" --target "iqn.1995-09.fr.univ-lr:storage.win7" --lun 2
- install the guest OS (Windows 7 Pro.)
- start the guest OS once after install to make sure booting read-write from the remote target works fine
- poweroff the VM and create a snapshot
- machine 1:
- make the previous Lun 2 read-only
- machine 2:
- start the VM
With VirtualBox 4.3.6, the VM hangs just after starting and the associated host process is using 100% CPU time. The diffential disk never grows and there isn't any iSCSI network traffic on machine 1. Unfortunately, nothing interresting in the VM log file (Windows host or Mac host).
With VirtualBox 4.2.20, the guest OS starts and differential disk of the snapshot starts to grow while block are written
If I downgrade from 4.3.6 to 4.2.20 everything works fine again. So it's clearly related to something changed starting from 4.3.0 Note, I also tried with immutable disk wich avoid creating a snapshot manually and makes the VM revert to its pristine state at each start (which is the desired behaviour) and the results are the same.
Thanks for you help and ready to provide any additional details as needed.
Happy new year
Alban