VirtualBox

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 Initial Version

Reported by: Alban Owned by:
Component: other Version: VirtualBox 4.3.6
Keywords: snapshot iSCSI Cc:
Guest type: all Host type: all

Description

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

  1. machine 1:
  • create an iSCSI target and a read-write 20GB Lun target: iqn.1995-09.fr.univ-lr:storage.win7 lun: 2
  1. machine 2: 2.1 create a VB VM 'win7' without a hard disk 2.2 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

2.3 install the guest OS (Windows 7 Pro.) 2.4 start the guest OS once after install to make sure booting read-write from the remote target works fine 2.5 poweroff the VM and create a snapshot

  1. machine 1: 3.1 make the previous Lun 2 read-only
  1. machine 2: 4.1 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

Change History (0)

Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use