VirtualBox

Opened 11 years ago

Closed 11 years ago

#11479 closed defect (fixed)

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

Reported by: rshaw Owned by:
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 (3)

VBox.log (117.4 KB ) - added by rshaw 11 years 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 (116.6 KB ) - added by rshaw 11 years 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 (117.1 KB ) - added by rshaw 11 years 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).

Download all attachments as: .zip

Change History (9)

comment:1 by rshaw, 11 years ago

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 by Klaus Espenlaub, 11 years ago

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

by rshaw, 11 years ago

Attachment: VBox.log added

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.

by rshaw, 11 years ago

Attachment: VBox.2.log added

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.

by rshaw, 11 years ago

Attachment: VBox.3.log added

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 by Frank Mehnert, 11 years ago

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 by rshaw, 11 years ago

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

comment:5 by Frank Mehnert, 11 years ago

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

comment:6 by Frank Mehnert, 11 years ago

Resolution: fixed
Status: newclosed

Fix is part of VBox 4.2.14.

Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use