Menu: runbooks, process, how-to, NIS2, wireless

How-to H4

Status
Published
Last reviewed
Written

Restore-test a VM into an isolated network

Prove a VM backup restores and boots, and that its service starts, without letting the copy touch production.

Before you start

  • An isolated network. A virtual switch or bridge with no physical uplink, no route to production and no internet. On Hyper-V, a Private switch connects VMs only to each other, not even to the host. On Proxmox, a bridge with bridge-ports none and no address on the host.
  • Enough free space on a datastore that production does not depend on.
  • Your backup product’s own restore procedure, open in front of you. The restore itself is product-specific; this page covers what goes around it.
  • A written list of what “the service works” means for the VM you pick, for example “the database opens and the app login page loads”.
  • Domain controllers: a DC copy must never meet the production domain. Restore it only into the isolated network, and only with the other VMs it needs for the check.

Steps

1. Create the isolated network once (Hyper-V)

New-VMSwitch -Name "Restore-Isolated" -SwitchType Private

Source: New-VMSwitch, Microsoft Learn

1b. Or on Proxmox VE

Add a bridge with no ports to /etc/network/interfaces, then apply the network configuration as the Proxmox documentation describes. Example name vmbr99:

auto vmbr99
iface vmbr99 inet manual
    bridge-ports none
    bridge-stp off
    bridge-fd 0

Source: Network Configuration, Proxmox VE

No address line on the bridge means the host itself is not on that network.

2. Pick the VM and the restore point

Rotate through your VMs, and pick a restore point from the offline or immutable copy at least some of the time, because that is the copy you would use after ransomware. Write down which one.

3. Restore as a new VM, never to the original location

Follow your product’s procedure and choose “restore as new” or “restore to a different location”, with a new name. On Proxmox, a vzdump backup can be restored to a new VM ID with new network MAC addresses:

qmrestore <backup-archive> <new-vmid> --unique 1

Source: qmrestore, Proxmox VE

4. Connect it to the isolated network before you start it

On Hyper-V:

Connect-VMNetworkAdapter -VMName <restored-vm> -SwitchName "Restore-Isolated"
Get-VMNetworkAdapter -VMName <restored-vm> | Select-Object VMName, SwitchName, MacAddress

Source: Connect-VMNetworkAdapter and Get-VMNetworkAdapter, Microsoft Learn

On Proxmox:

qm set <new-vmid> --net0 virtio,bridge=vmbr99
qm config <new-vmid>

Source: qm, Proxmox VE

Every network adapter must show the isolated switch or bridge. If the VM has more than one adapter, change all of them.

5. Start it and check the service

Start-VM -Name <restored-vm>

Source: Start-VM, Microsoft Learn

On Proxmox, start it with qm start <new-vmid> (qm). Check three things on the console and write them down: did it restore, did it boot, did the service start. Note how long the whole restore took. That number goes into your recovery plans.

6. Destroy the copy

Stop-VM -Name <restored-vm> -TurnOff
Remove-VM -Name <restored-vm> -Force

Source: Remove-VM, Microsoft Learn and Stop-VM, Microsoft Learn

Remove-VM does not delete the virtual disks. Delete the restored disk files by hand, and check the path twice so you delete the copy, not production. On Proxmox, qm destroy <new-vmid> removes the VM and its disks (qm).

What good and bad look like

  • Good: the VM restored, booted and its service started, all inside the isolated network, in a time you can live with.
  • Bad: the restore failed or the disk is damaged. Find out why today, and check the same job’s other restore points.
  • Bad: it boots but the service fails because it needs another server (a database, a DC, a licence server). Write that dependency down; your recovery plan needs it.
  • Bad, stop now: the copy turns out to be on a production network. Turn it off at once, then check for duplicate name or address conflicts in production.

Traps

  • “Restore to original location”. Some products default to it. It overwrites the production VM.
  • Agents that phone home. Backup, antivirus or management agents inside the copy may try to reach their cloud. An isolated network with no internet stops that.
  • Two copies of one server. The same name and address on the production network causes real damage, and a restored DC on the production network can corrupt the domain.
  • Licence activation. Some software deactivates the original when a copy activates. Do not let the copy reach the internet.
  • Snapshots of the copy left behind on a production datastore filling it slowly.

Undo

Step 6 is the undo: turn the copy off, remove it and delete its disks. Keep the isolated switch or bridge for next month.

Record it

Example included. The row marked Example is made up to show the format. Delete it and add your own rows.

Date VM Restore point, copy Restored? Booted? Service started? Time taken Initials
Example: 2026-12-04 APP01 2026-12-03, immutable copy Yes Yes Yes, login page loaded 45 minutes AB

Sources

Was this useful?

Esc
↑ ↓ moveEnter openEsc close