Recovering Data of Oracle VM VirtualBox Virtual Machine (*.vdi, *.vmdk, *.vhd, *.hdd, *.qed, *.qcow)
Oracle VM VirtualBox is a powerful virtualization tool for corporate and home users. In addition to being a multi-purpose tool, it is also one of the few professional solutions which are free to use. With the help of this software you can create a vritual machine on any of the main operating systems including: Microsoft Windows, OS X, Linux and Solaris.Contents:
- System Files of Oracle VM VirtualBox Virtual Machine.
- How to Recover a Deleted Oracle VM VirtualBox Virtual Machine?
- How to Recover the Hard Disk Contents of an Oracle VM VirtualBox Virtual Machine?
- How to Recover the Disk File of an Oracle VM VirtualBox Virtual Machine from the Virtual Machine Itself?
System Files of Oracle VM VirtualBox Virtual Machine
Similarly to any other virtual machine, during installation Oracle VM VirtualBox creates a directory where it places folders of virtual machines which you create later. By default, this folder is named VirtualBox VMs and can be found here:
Note: you can change location of the virtual machines folder in the program settings if necessary. To do it, go to File / Preferences / General and specify the folder you want to place virtual machines in.
The main files of an Oracle VM VirtualBox virtual machine are as follows:
- *.vbox – a settings file describing the virtual machine and its settings;
- *.vdi (*.vmdk, *.vhd, *.hdd, *.qed, *.qcow) – the file containing a virtual machine disk image
While the virtual machine is running, the program can create additional files or folders if necessary:
- Logs – the folder containing virtual machine log files
- Snapshots – the folder containing virtual machine snapshot files (images of the virtual machine condition)
When a virtual machine is created, the default disk format is DVI. However, a user can choose the disk format for the machine being created
- VDI (VirtualBox Disk Image) — VirtualBox disk format
- VMDK (Virtual Machine Disk) — VMware disk format
- VHD (Virtual Hard Disk) — Microsoft disk format
- HDD (Parallels Hard Disk) — Parallels disk format
- QED (QEMU enhanced disk) — the format for QEMU/KVM
- QCOW (QEMU Copy-On-Write) — the format for QEMU (qcow2)
How to Recover a Deleted Oracle VM VirtualBox Virtual Machine
Deleting a virtual machine can result in losing large volumes of data and important information, and recovering it can be really difficult. The easiest way to recover the data stored in the virtual machine will be recovering the virtual machine itself.
What does it mean? VirtualBox provides for the opportunity of adding virtual machines which were created with other managers, or which were saved and then deleted, for some reason, from the virtual machine list of your manager. To do it, you should go to the menu Machine / Add and choose the disk of the virtual machine which you need to add to the manager.
That is, if a virtual machine is deleted, the user can recover the files that make it up and add such machine into Oracle VM VirtualBox. To do it:
Run Hetman Partition Recovery and scan the disk where the virtual machine was stored
Use Hetman Partition Recovery to go to the folder where the virtual machine was deleted from.
Recover the virtual machine files
Add the virtual machine to Oracle VM VirtualBox using the method above and launch it
How to Recover the Hard Disk Contents of an Oracle VM VirtualBox Virtual Machine
As we have already said, all files stored in virtual machine disks are located in .vdi files of the virtual disk (in our case). Hetman Partition Recovery, the program for hard disk data recovery, has the function of mounting virtual disks and recovering data from such disks.
NOTE. In case of dealing with virtual machines, the disks of which are created in formats other than *.vdi, but in formats like *.vmdk, *.vhd, *.hdd, *.qed, *.qcow, the method for recovering data will be similar.
If for some reason your virtual machine is no longer working, and there are important files on its disks, this data can be recovered. To do it:
Run Hetman Partition Recovery and mount the virtual machine disk
Note. To mount a virtual disk with the help of Hetman Partition Recovery, click on Mount Disk in the quick access menu of the program. As a result, the window of choosing a virtual disk will open. In the right lower corner, specify the file type as «All files (*.*)», go to the folder containing the virtual machine and choose the required .vdi file.
As you do that, the section «Mounted Disks» containing the list of mounted virtual disks will appear in the window, where all disks found by the application are shown. If you mount several disks, you will see the entire disk list there.
Scan the disk with the application by double-clicking on the disk in the disk manager.
After the analysis, the application will show the directory tree of the scanned disk. Find and recover the required files.
If you looked through the directory tree and you still don’t see the files which you need to recover, or if such files are recovered but they open with errors, then go to the folder Content-Aware Analysis shown by Hetman Partition Recovery and find your files there.
NOTE. In case of dealing with virtual machines, the disks of which are created in formats other than *.vdi, but in formats like *.vmdk, *.vhd, *.hdd, *.qed, *.qcow, the method for recovering data will be absolutely similar.
How to Recover the Disk File of an Oracle VM VirtualBox Virtual Machine from the Virtual Machine Itself
As a result of experiments we have established that files deleted or lost inside the virtual machine cannot be recovered.
The methods we have described for recovering data of an Oracle VM VirtualBox virtual machine are good for virtual machine regardless of their virtual disk format: *.vdi, *.vmdk, *.vhd, *.hdd, *.qed, *.qcow and they will be absolutely similar for all of these virtual disk formats. In this article, we have used the *.vdi virtual disk format as an example.