Reconstructing VM from Backup - possible?

This is for discussing general topics about how to use VirtualBox.
KFlash
Posts: 26
Joined: 10. Feb 2013, 19:11

Re: Reconstructing VM from Backup - possible?

Post by KFlash »

My old VM is not working anymore.

Could I simply replace the source vdi in the /disk folder and delete the content of /snapshots?

Or is this not working and I have to create a new machine?
KFlash
Posts: 26
Joined: 10. Feb 2013, 19:11

Re: Reconstructing VM from Backup - possible?

Post by KFlash »

And there is one more technical question:

After I created a snapshot. To which vdi file are new installed applications stored, and to which files data (like eMail account content).
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: Reconstructing VM from Backup - possible?

Post by mpack »

No, you must create a new VM. This is all in the CloneVDI release notes, into which I put a lot of work and hence I do not intend to repeat the instructions here. RTFM.

Snapshots do not work as you imagine. VirtualBox knows nothing about files and applications. It is changed disk sectors which are written to the difference file.
KFlash
Posts: 26
Joined: 10. Feb 2013, 19:11

Re: Reconstructing VM from Backup - possible?

Post by KFlash »

THANK YOU!!!!

The new VM has ALL my files, so I lost NOTHING! Thank you! :D :D :!:
1 week of struggeling is over.


Now a very important question: How do I backup a VM correctly? What files do I have to copy?
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: Reconstructing VM from Backup - possible?

Post by mpack »

If this is now a v4 format VM (i.e. a ".vbox" file exists, and a vdi) and if you took my advice about moving the clone .VDI into the VM folder, then all you need to do to back it up is copy the entire VM folder, with contents, to secondary media. To restore it, you can simply copy it back, overwriting an existing but broken VM. In some cases the VM registration may have been lost, in which case copy the VM folder back, then use Machine|Add... to reregister the VM (the .vbox file).
Post Reply