Back up and restore Hyper-V virtual machines
Whole virtual machines from the Hyper-V host, with nothing installed inside them.
The agent runs on the Hyper-V host and backs up whole virtual machines: their virtual disks and their settings (processors, memory, disks, network adapters, Secure Boot). Nothing is installed inside the virtual machines, and they keep running during the backup.
Supported: Hyper-V on Windows Server 2016 or newer, and on Windows 10/11 Pro or Enterprise. Generation 1 and 2 virtual machines, Windows and Linux guests.
How it works
- The agent takes a checkpoint of each virtual machine. With Production checkpoints (Hyper-V's default), Windows guests flush their applications (SQL Server, Exchange, Active Directory) and Linux guests freeze their file systems, so the backup is application-consistent.
- The frozen disks are copied to Beyond Cloud Vault. After the first backup, only the blocks that changed are uploaded.
- The checkpoint is removed and Hyper-V merges it back. This always happens, even if the backup fails or is stopped.
1. Before you start
- Install the agent on the Hyper-V host, as a server.
- The Hyper-V Module for Windows PowerShell must be installed. In Windows Features it is under Hyper-V → Hyper-V Management Tools; on Windows Server, under Remote Server Administration Tools.
- Checkpoints must be turned on for each virtual machine. In Hyper-V Manager → Settings → Checkpoints, choose Production checkpoints.
- For application-consistent backups, keep the integration services up to date in the guests. Windows has them built in; on Linux, install
hyperv-daemonsorlinux-cloud-tools.
2. Create the backup
- Open Beyond Cloud Backup → Virtual machines to see the virtual machines on this host.
- Go to Backup → Hyper-V virtual machines.
- Keep All virtual machines checked, or choose the ones you want.
- A good schedule to start with: Full on Saturday at 23:00 and Incremental every day at 22:00.
- Choose retention and click Create backup. The first backup starts right away.
Note: Pass-through physical disks and shared virtual disks (
.vhds) can't be backed up through a checkpoint, so they are skipped and the log says so. Back up their data with a file or database backup instead.
3. Restore
Go to Restore → Hyper-V virtual machines, choose the virtual machine and the restore point, then pick one of three options:
- As a new virtual machine: created next to the original, under a new name and with new MAC addresses, so both can run at the same time. This is the safest way to test a restore.
- In place, with overwrite: the current virtual machine is turned off and overwritten. Everything written in it since the restore point is lost and cannot be recovered, so the app asks you to confirm.
- Only the virtual disk files: the
.vhdxfiles and a description of the virtual machine go to a folder of your choice, for example to attach a disk to another machine and copy files from it.
If the virtual machine had checkpoints of its own, the restore gives one disk per drive, as it was at backup time, without those checkpoints.
Note: If the virtual machine had a virtual TPM with BitLocker turned on inside it, a copy restored as a new virtual machine gets a new TPM, and Windows asks for the BitLocker recovery key once.
All virtual machines at once: choose All virtual machines at the top of the list, then a day and time in the calendar. Each virtual machine is restored as it was at that time (its newest restore point up to then); machines without a restore point by then are left out, and the page shows which. Restore them as new virtual machines (each named like the original with (restored) at the end) or in place, with overwrite. They are restored one after another, each with its own line and Stop on the Overview; stopping one also cancels the ones still waiting.