Opened 12 years ago
Closed 12 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)
Change History (9)
comment:1 by , 12 years ago
by , 12 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.
by , 12 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 , 12 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 , 12 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 , 12 years ago
Thanks for the fix! I can confirm this has corrected the described problems.
comment:5 by , 12 years ago
Summary: | Guest's disk is immutable when using iSCSI storage and snapshots → Guest's disk is immutable when using iSCSI storage and snapshots => Fixed in SVN |
---|
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.