VirtualBox

Ticket #11479 (closed defect: fixed)

Opened 15 months ago

Last modified 10 months ago

Guest's disk is immutable when using iSCSI storage and snapshots => Fixed in SVN

Reported by: rshaw Owned by:
Priority: major Component: virtual disk
Version: VirtualBox 4.2.6 Keywords: iscsi snapshot revert state
Cc: Guest type: Linux
Host type: Linux

Description

I am running Virtualbox 4.2.6 on a Linux host and am running into a bug where state is getting reset every power off, much like the immutable flag is set on the harddrive itself. This occurs when I am using iSCSI as the storage medium and have taken an offline snapshot of the system. I have found one forum post with a seemingly identical problem. (  https://forums.virtualbox.org/viewtopic.php?f=8&t=52210)

Expected results: Create / install a guest using iSCSI as storage. Power off and take a snapshot. Power back on, make changes, reboot the guest. Changes should still present.

Actual results: Create / install a guest using iSCSI as storage. Power off and take a snapshot. Power back on, make changes, reboot the guest. Changes are now gone and state has been reverted back to the state of the latest snapshot.

Steps to reproduce:

-Click "New" and create a VM - in my case a Linux guest. -allocate desried memory -Select "Do not add a virtual hard drive"

-Add the target per documentation ( http://www.virtualbox.org/manual/ch08.html#idp14412416). Note that as of 4.2.6 this MUST be done through VBoxManage. The GUI cannot do this. In my case, the command was:

"VBoxManage storageattach "GUEST_TEST" --storagectl "SATA" --port 0 --device 0 --type hdd --medium iscsi --server localhost --target "iqn.2003-04.mydomain.org" --lun 2 --tport 3260"

-Install operating system into guest, then power off machine

-Take an offline snapshot.

-Every guest reboot will now revert to the state of the snpashot, much like it is now an immutable disk.

Attachments

VBox.log Download (117.4 KB) - added by rshaw 12 months ago.
I attached the iSCSI disk with vboxmanage storageattach, took an offline snapshot. I then booted the VM, made a new folder on the desktop, rebooted, and the folder is gone. I shutdown. This is over a SATA controller.
VBox.2.log Download (116.6 KB) - added by rshaw 12 months ago.
I followed the same steps to create this log as I did the previous one, except I added the iscsi medium to an IDE controller instead of SATA. Everything works as expected on this controller type.
VBox.3.log Download (117.1 KB) - added by rshaw 12 months ago.
Sorry for the confusion, but please use this file to reference for the SATA controller instead of the first VBox.log file. The medium was different in the first and second and I wanted to show this affects the exact same target using the same exact medium. Please use this file (SATA)and the previous (IDE).

Change History

comment:1 Changed 14 months ago by rshaw

To add an update to this, I found out through further debugging it only affects iSCSI disks which are added under a SATA controller. If the iSCSI disk is added under an IDE controller, all data is persisted correctly.

comment:2 Changed 12 months ago by klaus

Providing VBox.log would help assessing what your problem might be.

Changed 12 months ago by rshaw

I attached the iSCSI disk with vboxmanage storageattach, took an offline snapshot. I then booted the VM, made a new folder on the desktop, rebooted, and the folder is gone. I shutdown. This is over a SATA controller.

Changed 12 months ago by rshaw

I followed the same steps to create this log as I did the previous one, except I added the iscsi medium to an IDE controller instead of SATA. Everything works as expected on this controller type.

Changed 12 months ago by rshaw

Sorry for the confusion, but please use this file to reference for the SATA controller instead of the first VBox.log file. The medium was different in the first and second and I wanted to show this affects the exact same target using the same exact medium. Please use this file (SATA)and the previous (IDE).

comment:3 Changed 12 months ago by frank

Thank you for the report. We think we found and fixed the bug. Could you install  this test build and verify that the bug is really fixed? Thank you!

comment:4 Changed 12 months ago by rshaw

Thanks for the fix! I can confirm this has corrected the described problems.

comment:5 Changed 12 months ago by frank

  • Summary changed from Guest's disk is immutable when using iSCSI storage and snapshots to Guest's disk is immutable when using iSCSI storage and snapshots => Fixed in SVN

comment:6 Changed 10 months ago by frank

  • Status changed from new to closed
  • Resolution set to fixed

Fix is part of VBox 4.2.14.

Note: See TracTickets for help on using tickets.

www.oracle.com
ContactPrivacy policyTerms of Use