VM is different after TimeMachine restore

Discussions related to using VirtualBox on Mac OS X hosts.
Post Reply
layman
Posts: 5
Joined: 14. Feb 2013, 19:14

VM is different after TimeMachine restore

Post by layman »

Hello,
I had a double (!) hard drive crash :( and had to restore my MacMiniServer from Apple TimeCapsule / TimeMachine. Host system is MacOS 10.6 Server, guest is WindowsServer2003. Both servers ran uninterrupted since the first days of January.

After restoring MacServer and VirtualBoxMachine worked :D but the virtual machine has become the old state from the first days of January :shock: all data of the last weeks are missing :cry:

There are no snapshots displayed (I think there was none).

How can I get my machine at the actual state? What was the mistake producing an "old" machine? :?:

Thank You

layman - newbie with virtualization
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: VM is different after TimeMachine restore

Post by Perryg »

Backups are only as good as the last time they were actually run. From the sounds of it you have not updated the backup. I am not a Mac guru but I would think that would be a configurable step. In any case I see this as a host OS issue and you probably will get better answers from a Mac forum.
layman
Posts: 5
Joined: 14. Feb 2013, 19:14

Re: VM is different after TimeMachine restore

Post by layman »

Sorry, but I don't think so: The backup is dated some hours before the crash, the guest-Server restored at that actual state. So should VirtualBox do.
Only my Virtual Machine is at an old state - running, but antique. I think that is a VirtualBox releated problem.
Thank You
layman
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: VM is different after TimeMachine restore

Post by Perryg »

I can only say this. A backup is only as good as the last time it was run and add that it should include all files. If you use snap shots then these must be restored as well, and the VirtualBox control files. The VirtualBox.xml (master) an the *.vbox.

You time machine is responsible for the backup so how would that be a VirtualBox issue?
layman
Posts: 5
Joined: 14. Feb 2013, 19:14

Re: VM is different after TimeMachine restore

Post by layman »

When a virtual machine runs for a longer time and no snapshots are made, the difference between start-state and later-state, the "difference" must be stored somewhere. I think there probably is a special file for that.
I'm searching for this (missing or not found?) file to tell my virtual machine the difference in between old and actual state.
ChipMcK
Volunteer
Posts: 1095
Joined: 20. May 2009, 02:17
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows, OSX
Location: U S of A

Re: VM is different after TimeMachine restore

Post by ChipMcK »

Time Machine was designed to backup documents after creating and after editing.
Time Machine was NOT designed to backup documents while the document is being edited.
Various editors have auto-save feature/facility for backup of the document in the midst of editing, replacing the entire document upon closing.

VirtualBox, like the other virtualisers, is based on the "document template".

When a virtual machine is running or active, it is being edited - the virtual disk is open and being altered. Time Machine can NOT produce a valid backup of an open document. If the document (virtual disk) has been split into files of less than 2GB, any individual file at any given moment may be closed and Time Machine, during a time slice, may backup that individual file before it is edited with the 'current' data.

While most virtualisers have a snapshot feature/facility, none are a full functional auto-save. They create only a delta update to the virtual disk, not a replacement. The user is required to cause the replacement of the virtual disk by the merging of the snapshot updates with the 'base' virtual disk.

Time Machine backups are not dependable unless the virtual machine has been shutdown.

A backup of saved-state virtual machine is iffy IMHO, as Time Machine may NOT have backed up the full configuration of files comprising a virtual machine during a single time slice.

Comments/Opinions?

Updated: to correct grammar and typos
Last edited by ChipMcK on 15. Feb 2013, 06:35, edited 1 time in total.
noteirak
Site Moderator
Posts: 5231
Joined: 13. Jan 2012, 11:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Debian, Win 2k8, Win 7
Contact:

Re: VM is different after TimeMachine restore

Post by noteirak »

ChipMcK wrote:Comments/Opinions?
You are right, and this is a general backup problem for many all virtualization product and many other software, like DB, Active Directory & so on.
That's also why VSS (Microsoft Shadow Copy) was born per example.
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
Post Reply