Page 1 of 1

3.0.8 on Win/Linux, XP Pro Guest, Snapshot disk unreadable

Posted: 25. Oct 2009, 04:52
by lyallp
I have a working XP Pro Guest, hosted on 3.0.8.r53138 on XP Pro Host.
When I take a snapshot, the guest is unbootable - 'A disk read error occurred Press Ctrl-Alt-Del to restart'
If I delete the snapshot, it works again.
Absolutely repeatable, in that I cannot make a snapshot of the VM.
Anyone else seeing this?
By the way, I deleted and re-created the VM, using the original disk. The problem persists.

Re: 3.0.8 on XP Pro Host, XP Pro Guest, Snapshot disk unreadable

Posted: 25. Oct 2009, 16:21
by mpack
You could try unregistering and then re-registering the virtual disk.

What type of virtual disk is it? (i.e. VDI, VHD, VMDK).

Re: 3.0.8 on XP Pro Host, XP Pro Guest, Snapshot disk unreadable

Posted: 26. Oct 2009, 01:33
by lyallp
Unregistering the disk and re-registering had no effect.
It is a VDI disk.

Re: 3.0.8 on XP Pro Host, XP Pro Guest, Snapshot disk unreadable

Posted: 26. Oct 2009, 06:47
by MarkCranness
Maybe create the snapshot with the command line VBoxManage and see if there are any error messages.

Code: Select all

VBoxManage snapshot "VMName" take "SnapshotTest"
If that works, then try a VBoxManage clonehd to see if the Current State can be read correctly by VirtualBox (it is the Current State that your VM can't read when it says "a disk read error occurred...").
Use the instructions here starting 'To clonehd the Current State of a disk'.
http://forums.virtualbox.org/viewtopic. ... 99#p103299
See if there are any error messages.

Re: 3.0.8 on XP Pro Host, XP Pro Guest, Snapshot disk unreadable

Posted: 28. Oct 2009, 01:44
by lyallp
No messages during snapshot creation.
No messages during cloning.
Added new media to VirtualBox and created a new VM to boot the cloned image, same error message.
Any more suggestions?
:(

Re: 3.0.8 on XP Pro Host, XP Pro Guest, Snapshot disk unreadable

Posted: 28. Oct 2009, 04:31
by MarkCranness
VBoxManage clonehd or CloneVDI the base VDI and see if that fixes anything?
Boot a Live CD and take a new image of the VDI (only dd ever worked for me) and turn that into a new VDI with VBoxManage convertfromraw?
Reinstall VirtualBox? :?

Re: 3.0.8 on XP Pro Host, XP Pro Guest, Snapshot disk unreadable

Posted: 28. Oct 2009, 11:55
by lyallp
Curiously enough, a different VM (an ancestor of the problematic one) has no problems with snapshots.

By ancestor, I mean I have already cloned the other one and done more to the clone. The clone is the one that is having snapshot problems.

Hmmm... thinking along those lines... maybe my snapshot is referencing the ancestor in some way... did I clone the descendant correctly? I must have otherwise VirtualBox would complain when I tried to add the media. VBoxManage showhdinfo shows reasonable data...

Cloning the problematic disk using clonevdi resulted in a clone disk which was unbootable, in the same way as the 'snapshot' of the original is unbootable.

Another edit: I have the same VM disk image on a Gentoo Linux (Intel) with the same version of VirtualBox. Same Snapshot problem as Windows XP.

It would appear it's VirtualBox related, now I need to figure out how to identify where the problem lies. Any suggestions on commands to run to 'dump' info on VDI?

Re: 3.0.8 on XP Pro Host, XP Pro Guest, Snapshot disk unreadable

Posted: 28. Oct 2009, 12:33
by MarkCranness
Looking at the VDI tree with Virtual Media Manager might show something (or not). Look for the 'Attached to:' value for each VDI and child {hexUUID} file.
Perhaps post your (abbreviated - remove ExtraData and Hardware sections) VirtualBox.xml and <VM>.XML files for inspection?

Re: 3.0.8 on XP Pro Host, XP Pro Guest, Snapshot disk unreadable

Posted: 28. Oct 2009, 13:02
by lyallp
As requested. Config files and a showhdinfo of the disk image, in question.
Note my earlier edit, this is happening on both Windows and Linux.

Code: Select all

$ VBoxManage showhdinfo Win_XP_Pro_Template.vdi 
VirtualBox Command Line Management Interface Version 3.0.8
(C) 2005-2009 Sun Microsystems, Inc.
All rights reserved.

UUID:                 8bf038bb-0612-4acd-9bb8-6ce969e4c62e
Accessible:           yes
Description:          
Logical size:         65536 MBytes
Current size on disk: 6054 MBytes
Type:                 normal (base)
Storage format:       VDI
In use by VMs:        Template Windows XP Pro (UUID: 43c1c922-2aaa-42f0-9cd1-28032952e47b)
Location:             /mnt/disk_02/VM_Images/Win_XP_Pro_Template.vdi
lyall@lyalls-pc:/mnt/disk_02/VM_Images
$ 

Re: 3.0.8 on Win/Linux, XP Pro Guest, Snapshot disk unreadable

Posted: 29. Oct 2009, 11:44
by lyallp
One thing I notice on my Linux version, that my Snapshot directory has a space in the name, whereas the parent disk image has no spaces.

Wondering if that is significant. Maybe not, as I have another Windows XP VM (which is actually a descendant of the problematic one) which also has snapshots of with the same directory names...

No Snapshot.

Code: Select all

Primary master:  /mnt/disk_02/VM_Images/Win_XP_Pro_Template.vdi (UUID: 8bf038bb-0612-4acd-9bb8-6ce969e4c62e)
With Snapshot.

Code: Select all

Primary master:  /mnt/disk_02/VM_Settings/Machines/Template Windows XP Pro/Snapshots/{9ce7258b-f763-49cd-91fb-9deed0b35b01}.vdi (UUID: 9ce7258b-f763-49cd-91fb-9deed0b35b01)
Really struggling to extract info which may help diagnose this.

...Lyall

Re: 3.0.8 on Win/Linux, XP Pro Guest, Snapshot disk unreadable

Posted: 29. Oct 2009, 23:29
by MarkCranness
I see nothing alarming in the XML files and spaces in the directory names should be OK. :?

Re: 3.0.8 on Win/Linux, XP Pro Guest, Snapshot disk unreadable

Posted: 10. Nov 2009, 05:20
by lyallp
Problem solved.

Created a new disk, booted Clonzilla and cloned the disk.

Cloning the disk with VBoxManage clonevdi did not work.

...Lyall