RAID, NAS & serversWhat is NAS (Network Attached Storage) and how do I recover it?Bot Blog: data recovery and digital forensics
Written by the people who open the drives. Over 170 articles from our technical team.
Learn what causes data loss in virtual machines, how to restore a VM from backup, recover orphaned VMs and back up your VMs safely.

A virtual machine (VM) is a valuable solution for companies to expand their ability to manage different operating systems, overcoming physical limitations. In fact, when combined with RAID (Redundant Array of Independent Disks) systems, it becomes a highly efficient tool.
VMs are capable of turning a single physical server into several virtual servers, which makes them crucial components of modern IT.
However, this efficiency has attracted the attention of hacker groups who have developed ransomware specialized in encrypting virtual machines and their files.
After all, they know that data is now essential for any company, so keeping it available and accessible is vital. Losing it can be devastating.
In addition, various problems can result in the loss of data in VMs, as we’ll cover in this article.
Fortunately, there are methods available for recovering virtual machines – although they are complex and require advanced technical knowledge to avoid complications.
This blog post also walks you through safe methods for recovering data from your VMs. Read on to find out what these methods are, how to back up virtual machines and much more!
Several issues can lead to data loss in virtual machines. Some of the main reasons include:
Users can accidentally delete important files within VMs, resulting in data loss.
Formatting partitions in VMs can cause data loss because it removes the structures the file system uses to manage files and directories.
When a partition is formatted, the information about where files are located, their metadata and the directory structure is erased, so the data that was there becomes inaccessible.
File system failures within the VM can occur due to incorrect shutdowns, power failures or other types of interruptions. This leads to file corruption and data loss.
Overwriting can cause data loss in virtual machines because existing data is replaced or corrupted.
This happens when new data is written to areas that previously held other information.
This problem can occur in various scenarios, such as:
Formatting a disk, virtual disk, array, LUN, vDisk, volume, etc., and then reinstalling the system, is another common cause of data loss in virtualized environments.
With VMs specifically, the reformatting can happen at the guest level or at the host level.
Corruption can also be caused by faulty patches and updates applied without an offline backup, as well as by poorly planned software rollouts, integration problems and database corruption.
These problems can also corrupt files on the host and damage the guest’s file system.
It is also important to consider the risk of data loss with thin provisioning.
Instead of allocating all the space the VM needs up front and placing the file system structures in fixed physical locations, thin (dynamic) provisioning allocates only the space needed right now, adding extra blocks as the virtual disk grows.
This can result in a more complex and fragmented layout of the virtual disk on the physical storage.
If the metadata pointers to the data are missing or damaged, it will be a challenge to locate the various fragments and rebuild the virtual disk.
The mapping layer inside the virtual disk can also be damaged or overwritten, making reassembly extremely difficult.
The hardware problems faced by virtual systems are basically the same as those faced by physical systems. For example, failed drives, controllers and server components, as well as power problems.
However, RAID corruption is a much bigger challenge with VMs because of the nature of virtualization. Unfortunately, data loss is not uncommon with this type of storage.
Modern hardware and software RAID is already complex, and deduplication and compression add to that complexity. The extra virtualization layer further increases the likelihood of failure.
This is because RAID controllers keep track of where all the information is stored across the disks in the array.
If a RAID configuration is corrupted, the files may become inaccessible, and you will need a lab that specializes in RAID recovery.
When this happens, the interdependence of several systems can lead to significant data loss and downtime.
This kind of failure can cause data loss in VMs because of the way these systems are configured for redundancy and data protection.
Storage systems normally use techniques such as RAID to distribute and protect data. However, if more disks fail at the same time than the RAID level can tolerate, data integrity is compromised.
Arcserve UDP allows you to use the “Recover VM” option to restore a virtual machine that was previously backed up using host-based agentless backup.
This method restores the entire VM to its original location or to an alternative location on an ESX or Hyper-V server.
You can search for virtual machine recovery points from a calendar view and select the recovery point you want to restore.
Read on for a step-by-step guide to recovering a virtual machine.
Before starting a restore, check the following prerequisites:
Then take the following points into account:
With this, you’ll have everything you need for a successful restore, ensuring compatibility and avoiding problems during recovery.
You can recover an entire virtual machine from a recovery point.
The process for restoring a virtual machine is as follows:
The “Restore VM” option is used to recover a virtual machine from a previous backup made with Arcserve UDP.
This method is ideal for quickly creating a virtual machine from a recovery point on the ESX or Hyper-V platform.
The restored VM can then simply be powered on to complete the recovery. To perform this restore, follow the steps below:
Once you have identified the virtual machine and the recovery point, you need to configure the restore options for that virtual machine.
To do this, follow the steps below:
Finally, after choosing the virtual machine and the recovery point, it is essential to configure the appropriate restore options.
This includes choosing the restore destination, setting conflict resolution and determining whether the VM will be powered on after recovery.
Choosing these options carefully helps ensure an accurate, successful restore of the virtual machine.
To restore a virtual machine to its original location, follow the steps below:
To restore a virtual machine to an alternative location or to a different datastore, you need to configure that alternative location.
Here are the detailed steps for VMware and for Hyper-V:
To complete this step, you need to configure where the VM’s data will be stored, both for a VMware VM and for a Hyper-V VM.
Finally, review the restore summary.
Here is the step-by-step process:
The restore summary lets you review all the restore options you have set and change them if necessary.
To run the restore, follow these steps:
Summary of a restore to the original location:

Summary of a restore to an alternative location (VMware):

Summary of a restore to an alternative location (Hyper-V):

Once this is done, your virtual machine will be restored.
Once the restore is complete, you need to confirm that the virtual machine has actually been restored to the specified destination.
To do this, follow the procedure described below:
This way, you can be sure the VM was restored successfully and is ready to use.
Recovering data from a virtual machine safely requires careful measures and a well-planned strategy.
Here are some steps to minimize risks when recovering data from a VM:
In exceptional cases, virtual machines hosted on an ESXi server managed by vCenter Server can become orphaned.
In this scenario, the virtual machines are still registered in the vCenter Server database, but the ESXi host they reside on no longer recognizes them.
Although rare, it does happen, and it creates a disconnect between the central management layer (vCenter Server) and the execution nodes (ESXi hosts) in the virtualization environment.
Virtual machine orphaning can occur for a variety of reasons. For example, communication failures between vCenter Server and ESXi hosts, unexpected outages or even problems related to data corruption.
When a virtual machine becomes orphaned, it is still listed in the vCenter Server database, but the ESXi hosts cannot identify or manage its current state.
To resolve this situation, it is necessary to re-establish the connection between vCenter Server and the ESXi server on which the virtual machine is hosted.
This is done through diagnostic procedures, such as checking the network settings, analyzing the vCenter Server and ESXi logs, and trying to bring the virtual machine back into the virtual environment.
In the virtual environment’s management console, start by locating the virtual machine’s .vmx file.
To do this, browse the inventory and select the virtual machine. Then open the “Datastores” tab.
In the Datastores tab, you will see the datastores where the virtual machine’s files are stored.
If more than one datastore is listed, you need to check each one. Select each datastore in turn and open the Files tab.
The interface will then show the files stored on the selected datastore.
The goal here is to find the .vmx file, which is essential for running the virtual machine. Browse through the datastore’s folders until you find the .vmx file for the virtual machine in question.
If several datastores are involved, repeat the search for the .vmx file on each one.
Once you have found the .vmx file on the right datastore, make a note of its location: you will need it to register the VM again.
Go back to the virtual machine inventory, right-click the virtual machine and choose “Remove from Inventory”. This only removes it from the inventory; it does not delete its files from the datastore.
Click “Yes” to confirm the removal of the VM.
Right-click the datastore where the virtual machine’s files are stored and choose “Register VM”.
Then browse to the .vmx file and confirm by clicking “OK”.
Next, choose where to place the virtual machine and click “Next”.
Choose the host that will run the virtual machine and click “Next” again.
Finally, click “Finish” to complete the process.
Backing up virtual machines means creating backup copies of running virtual machines.
These backups protect applications and data in the event of failures or disasters, minimizing service interruptions and preventing the corruption or loss of information.
A virtual machine backup usually includes a complete image of the VM, including the operating system, applications and data.
These images should be stored in safe locations, such as external storage systems or cloud backup services, so they are ready to restore the environment in an emergency.
It’s important to note that backing up virtual machines is quite different from traditional file copies.
That’s because VM backups must ensure the continuity and integrity of services, especially in adverse situations or unexpected disasters.
With that in mind, to be able to recover information from a virtual machine, keep your backups up to date and follow these steps:
Remember that the steps may vary depending on the backup or recovery software you choose, so read the vendor’s instructions before you start.
Has your virtual machine crashed, and none of the solutions in this article have managed to recover it?
Then it’s probably time to turn to a data recovery company and let professionals restore the drive and recover as much of your lost data as possible.
However, when choosing a data recovery company, check that it has:
Bot is a company that meets all these criteria, with highly qualified professionals, a Class 100 (ISO 5) cleanroom, more than two decades of experience in data recovery and a 96% success rate.
Don’t waste time: start your VM data recovery process with us right now and join the more than 200,000 cases we have handled!
Read next
Bot Blog
Has your device failed and are the files important?
The diagnosis finds the fault and tells you whether recovery is possible. You get the quote before any work starts.