If My OS crashes and I cant recover it can I still use the VM's I have created

This is for discussing general topics about how to use VirtualBox.
Post Reply
mpooley
Posts: 13
Joined: 19. Oct 2016, 17:07

If My OS crashes and I cant recover it can I still use the VM's I have created

Post by mpooley »

I Hope this is a simple question with a simple answer :)

I am a backup freak and always have a C drive backup to hand but it has been known that they refuse to restore.
If that happens are my VM's still recoverable? They are always stored on another drive and I don't keep checkpoints.

So If I had to reinstall the OS can I get the VM's to work again?
I am assuming I can just import them but I'd like a definitive answer.

Thanks for your help

Mike
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: If My OS crashes and I cant recover it can I still use the VM's I have created

Post by socratis »

mpooley wrote:always have a C drive backup
Is that the C drive of your host or your guest?
mpooley wrote:it has been known that they refuse to restore. If that happens are my VM's still recoverable?
No! Nothing is recoverable if the backup refuses to restore! Are you sure you've got this right? Why is it refusing? I hope you're not referring to a live restore.
mpooley wrote:I am assuming I can just import them but I'd like a definitive answer.
If you keep the VMs on a separate drive and that doesn't die, then yes. Read Moving a VM, and interpret it as "Backing up a VM".
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
scottgus1
Site Moderator
Posts: 20945
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows, Linux

Re: If My OS crashes and I cant recover it can I still use the VM's I have created

Post by scottgus1 »

mpooley wrote:it has been known that they refuse to restore. If that happens are my VM's still recoverable?
I think mpooley is referring to a host OS backup and failure to restore, and is asking will the guest OS's, stored on a separate drive, still be there.
mpooley wrote:my VM's . . . are always stored on another drive
If that other drive is still intact, and your guests are in the 4.0 format (guest .vbox file and drive in the same folder) then they are easily recoverable. When the new host OS and Virtualbox are installed, find and double-click the guests' .vbox files. The guests will re-register. (note that in the new host OS the other drive should have the same drive letter as it did in the old host OS, just to avoid any possible glitches.)

You can also back up the .Virtualbox folder in your user account folder (C:\Users\{you}.Virtualbox) as soon as you reboot the host, before running anything related to Virtualbox. As long as no Virtualbox processes are running, the .Virtualbox folder contains a full list of all the Preferences changes you have made, and all the guests you have registered. Copying that folder from the backup into your new User folder will restore the complete Virtualbox setup.)
mpooley
Posts: 13
Joined: 19. Oct 2016, 17:07

Re: If My OS crashes and I cant recover it can I still use the VM's I have created

Post by mpooley »

scottgus1 :Thanks very much. Yes you are right about my meaning. C drive as in OS drive
So I'll be able to back up virtualbox folder on the same drive as the VM's ;)

I didn't understand how to tell what format the guests are though, I can't see any mention of that.
but they are .vbox files and I am using the most up to date VirtualBox so assume that will be ok.

one more question what happens if my virtualbox folder backup is say a couple of days older than the .vbox file will it still work?

Thanks again

Mike
BillG
Volunteer
Posts: 5106
Joined: 19. Sep 2009, 04:44
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows 10,7 and earlier
Location: Sydney, Australia

Re: If My OS crashes and I cant recover it can I still use the VM's I have created

Post by BillG »

Exactly the same thing as a backup of a physical machine. It will take you back to the state it was in when you did the backup.
Bill
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: If My OS crashes and I cant recover it can I still use the VM's I have created

Post by mpack »

mpooley wrote: I didn't understand how to tell what format the guests are though, I can't see any mention of that.
but they are .vbox files and I am using the most up to date VirtualBox so assume that will be ok.
Scottgus told you that bit: if you have a .vbox file and a drive file (.vdi/.vmdk/vhd etc) then you have 4.0 format VM and it's easy to back up. In fact the presence of a .vbox file is enough to tell you it's a v4 VM.

But, back up the entire folder, not just those one or two files.
mpooley
Posts: 13
Joined: 19. Oct 2016, 17:07

Re: If My OS crashes and I cant recover it can I still use the VM's I have created

Post by mpooley »

Ok I understand now
Thanks for all your advice.

Mike
Post Reply