disk lost, can't roll back to snapshot
-
carlsonj
- Posts: 4
- Joined: 25. Jul 2009, 19:57
- Primary OS: OpenSolaris 11
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Windows XP, Ubuntu
disk lost, can't roll back to snapshot
I had a Windows XP crash, and I couldn't even use "Host-F" to get back out of full-screen mode. It was frozen. I had to use Ctrl-Alt-Backspace to kill the window manager and log back in.
That was bad news. Now my Windows XP disk is "inaccessible." I can't figure out how to fix it. Attempting to discard the "current snapshot" gives me an error -- the same one that keeps me from booting up Windows. It says:
Failed to discard the current snapshot and the current state of the virtual machine XP.
Could not open the hard disk storage unit
'/vbox/HardDisks/XP Hard Disk.vhd'.
VD: error opening image file
'/vbox/HardDisks/XP Hard Disk.vhd'
(VERR_VD_VHD_INVALID_HEADER).
Details:
Result Code:
NS_ERROR_FAILURE (0x80004005)
Component:
HardDisk
Interface:
IHardDisk {62551115-83b8-4d20-925f-79e9d3c00f96}
Is there any way to fix this? Have I just lost everything?
(That 80004005 seems to be the "something's vaguely wrong" message. I get that for USB as well.)
That was bad news. Now my Windows XP disk is "inaccessible." I can't figure out how to fix it. Attempting to discard the "current snapshot" gives me an error -- the same one that keeps me from booting up Windows. It says:
Failed to discard the current snapshot and the current state of the virtual machine XP.
Could not open the hard disk storage unit
'/vbox/HardDisks/XP Hard Disk.vhd'.
VD: error opening image file
'/vbox/HardDisks/XP Hard Disk.vhd'
(VERR_VD_VHD_INVALID_HEADER).
Details:
Result Code:
NS_ERROR_FAILURE (0x80004005)
Component:
HardDisk
Interface:
IHardDisk {62551115-83b8-4d20-925f-79e9d3c00f96}
Is there any way to fix this? Have I just lost everything?
(That 80004005 seems to be the "something's vaguely wrong" message. I get that for USB as well.)
Re: disk lost, can't roll back to snapshot
Can you start a linuxlife ISO(like knoppix) and attach that vhd?
[This space is intentionally left blank]
If you can read this, you can read the VirtualBox Manual, the Forum FAQ, and the QuickClick FAQ
-=[ Search this forum with Keywords, VirtualBox solutions at you're fingertips]=-
If you can read this, you can read the VirtualBox Manual, the Forum FAQ, and the QuickClick FAQ
-=[ Search this forum with Keywords, VirtualBox solutions at you're fingertips]=-
-
carlsonj
- Posts: 4
- Joined: 25. Jul 2009, 19:57
- Primary OS: OpenSolaris 11
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Windows XP, Ubuntu
Re: disk lost, can't roll back to snapshot
I don't think I understand. VirtualBox won't let me assign that vhd file to *ANY* virtual machine at all. Something is now wrong with the file header.vbox4me2 wrote:Can you start a linuxlife ISO(like knoppix) and attach that vhd?
What I'd really like to do is to wind back to the last snapshot, but it won't even let me do that -- again, because the header is corrupt. I don't understand what I'm supposed to do with a snapshot if I can't roll back.
Aren't there any commands to 'fix' the header?
-
carlsonj
- Posts: 4
- Joined: 25. Jul 2009, 19:57
- Primary OS: OpenSolaris 11
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Windows XP, Ubuntu
Re: disk lost, can't roll back to snapshot
I tried booting up Ubuntu, but I can't attach to the disk there. It's not surprising, as VirtualBox itself says that it can't open the file anymore.vbox4me2 wrote:Can you start a linuxlife ISO(like knoppix) and attach that vhd?
I tried copying over one of the snapshots from the 'Machine' directory -- out of desperation -- and patching up all the UUIDs to match. It didn't work, either. I was able to make the VirtualBox GUI happy with the updated XML, but the machine itself was unable to boot from the image. It looks like that VM is just completely lost.
Searching the web produces no hits at all on this error message. I must be the "only one."
At least I learned some valuable lessons: the snapshotting process in VirtualBox is worthless, and the disk handlers are not reliable when processes are terminated. I'm much better off taking a ZFS snapshot of the file system before firing up any VMs, and using that if I ever need to roll back.
I'm going to try reinstalling, and just cross my fingers hoping that the evil folks in Redmond don't accuse me of piracy for registering again.
:-<
Re: disk lost, can't roll back to snapshot
Its not such an issue with VBox but with how the image got damaged, on a real HD it would error as well. You could try to load this image into a real spare HD (with dd) and use getdataback or some other repair/recovery tool on that HD.
The leason here is one single word "backup", a 35$ external drive is a good investment, here I have 4 backups of each VM (one per week) between 2 disks allowing me to go back 2 months simply because I'm not in any mood to loose anything.
The leason here is one single word "backup", a 35$ external drive is a good investment, here I have 4 backups of each VM (one per week) between 2 disks allowing me to go back 2 months simply because I'm not in any mood to loose anything.
[This space is intentionally left blank]
If you can read this, you can read the VirtualBox Manual, the Forum FAQ, and the QuickClick FAQ
-=[ Search this forum with Keywords, VirtualBox solutions at you're fingertips]=-
If you can read this, you can read the VirtualBox Manual, the Forum FAQ, and the QuickClick FAQ
-=[ Search this forum with Keywords, VirtualBox solutions at you're fingertips]=-
-
carlsonj
- Posts: 4
- Joined: 25. Jul 2009, 19:57
- Primary OS: OpenSolaris 11
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Windows XP, Ubuntu
Re: disk lost, can't roll back to snapshot
I _thought_ I was doing just that by "snapshotting" using the VirtualBox GUI. If anything bad happens, I can always revert to an older snapshot, right?vbox4me2 wrote:Its not such an issue with VBox but with how the image got damaged, on a real HD it would error as well. You could try to load this image into a real spare HD (with dd) and use getdataback or some other repair/recovery tool on that HD.
The leason here is one single word "backup", a 35$ external drive is a good investment, here I have 4 backups of each VM (one per week) between 2 disks allowing me to go back 2 months simply because I'm not in any mood to loose anything.
Well, wrong. The snapshots seem to share fate with the disk image itself, making them substantially less effective than I'd expected. In the future, I'll do backups externally by using the ZFS snapshot mechanism -- at least that's reliable.
Re: disk lost, can't roll back to snapshot
It's an issue with VBox since there doesn't seem to be a way to repair vdi files.vbox4me2 wrote:Its not such an issue with VBox but with how the image got damaged
(I assume, that snashotting means, that all changes are written to some second vdi file and the base-image is left intact. In this case, it should be easy to get rid of the defective vdi image)
-
Perryg
- Site Moderator
- Posts: 34369
- Joined: 6. Sep 2008, 22:55
- Primary OS: Linux other
- VBox Version: OSE self-compiled
- Guest OSses: *NIX
Re: disk lost, can't roll back to snapshot
Look in the snapshot folder and see if you have a .VDI file in there. (Mine has (2) files .sav and .vdi)
If so create a new VM and attache it to the Snapshot VDI See if this works.
I will do some testing later and see if I can make it come to life as well.
If so create a new VM and attache it to the Snapshot VDI See if this works.
I will do some testing later and see if I can make it come to life as well.
-
jvogt
- Posts: 1
- Joined: 18. Sep 2009, 04:29
- Primary OS: Fedora 10
- VBox Version: OSE Fedora
- Guest OSses: XP
Re: disk lost, can't roll back to snapshot
I had the same problem.
My fix was to convert the vhd to raw then to vdi using the instructions here:
http://www.qc4blog.com/?p=84
Good luck!
My fix was to convert the vhd to raw then to vdi using the instructions here:
http://www.qc4blog.com/?p=84
Good luck!
Re: disk lost, can't roll back to snapshot
Hi,
I had the same problem. I followed the instructions on this web site mentionned by jvogt. Everything works fine.
But when i start my virtual machine, after linux system select in Grub, I have an error message : invalid magic number.
Any help will be appreciated. Thx
I had the same problem. I followed the instructions on this web site mentionned by jvogt. Everything works fine.
But when i start my virtual machine, after linux system select in Grub, I have an error message : invalid magic number.
Any help will be appreciated. Thx
-
mpack
- Site Moderator
- Posts: 39134
- Joined: 4. Sep 2008, 17:09
- Primary OS: MS Windows 10
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: Mostly XP
Re: disk lost, can't roll back to snapshot
Best not to hijack obsolete threads. Start your own thread and provide better information about what you did, and precise symptoms / error messages.