Opening VM on different host after host crash

Discussions related to using VirtualBox on Windows hosts.
Post Reply
jmosheim
Posts: 2
Joined: 30. Jul 2009, 15:29
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: Server 2008 Standard

Opening VM on different host after host crash

Post by jmosheim »

I've been running a Server 2008 guest on an XP x64 host with VBox 2.2.0. My host had a hardware failure and had to be replaced. The new host is Server 2008 x64. I have an Acronis backup from the day before the crash. My problem is that, although I can copy over the .vdi file, create a new guest, and open it with no errors, all the data is from 12 days ago. I've tried several combinations of .vdi and .xml files as well as different versions of Virtualbox, but most attempts cause the guest to not open at all.

I need to recover a lot of work from the last 12 days. How can I get back to the day of the last backup?
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Opening VM on different host after host crash

Post by Perryg »

Why not create a new instance of Server 2008 and attach the old VDI as a second drive and see if you can retrieve your data?
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: Opening VM on different host after host crash

Post by mpack »

jmosheim wrote:My problem is that ... all the data is from 12 days ago.
Were you using snapshots before the crash?

Also, you mention having an Acronis backup, but you don't mention attempting to restore from this backup, have you tried that?

If I'm right that you are trying to restore a damaged snapshot chain then I personally would forget that idea, create a new VDI, and restore from the Acronis backup into it. I would also stop using snapshots in future, just make backup copies of the VDI instead.
jmosheim
Posts: 2
Joined: 30. Jul 2009, 15:29
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: Server 2008 Standard

Re: Opening VM on different host after host crash

Post by jmosheim »

I did try restoring .vdi and .virtualbox folder from Acronis backup, but could not get this to open.

Doesn't the .vdi get updated every time the machine is shutdown? I closed it right before taking the last backup.
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: Opening VM on different host after host crash

Post by mpack »

jmosheim wrote:I did try restoring .vdi and .virtualbox folder from Acronis backup, but could not get this to open.
Oh, I see. You have an Acronis backup of the host, I thought you meant you had a backup of the VDI made by running Acronis inside the guest.

What do you mean when you say you "could not get this to open"? Do you mean that you couldn't access the contents of the Acronis backup (rather pointless backup regime in that case! :-)), or do you mean that the recovered VDI was not usable? If the latter, what was the actual problem?

Also, you didn't answer my first question: had you used snapshots? In other words, is this a snapshot chain repair problem? This is important because I suspect your problem may simply be incorrectly recovering the chain, perhaps you are only recovering the base VDI.
jmosheim wrote:Doesn't the .vdi get updated every time the machine is shutdown? I closed it right before taking the last backup.
Yes, closing down the VM should have closed the file handle on the VDI, flushing any pending writes.
vbox4me2
Volunteer
Posts: 5218
Joined: 21. Nov 2008, 20:27
Location: Rotterdam
Contact:

Re: Opening VM on different host after host crash

Post by vbox4me2 »

It all depends HOW the backup was done, there are 3, 4 methods other then a plain copy, it also depends within this context when the last successfull backup was made. Could there be some sort of caching going on that did not get to flush its buffers at crashtime? If I look at one of my servers backup it has the date/time of when it was started, but I know it also contains current data eventhough it doesn't show up evendently.
Post Reply