Skip to content
Mementropy
RecipesHomelab recipesReference

Testing a Proxmox VM backup by restoring it with networking disabled

Restore a live VM's backup to a spare ID with its link down and check it through the guest agent.

By Ryan Hammang

Status: Off-host copy still to do.

Proving a VM backup restores, without the copy clashing with the live VM’s IP or Tailscale identity.

  • A VM with the guest agent running
  • A spare VM ID, for example 999
  1. Write a marker in the VM, then back it up:
Terminal window
qm guest exec 100 -- bash -c "date -u +restore-proof-%FT%TZ > /etc/proxmox-restore-proof"
vzdump 100 --mode snapshot --storage local --compress zstd
  1. Restore to the spare ID:
Terminal window
qmrestore /var/lib/vz/dump/vzdump-qemu-100-<stamp>.vma.zst 999
  1. Unplug its network before booting:
Terminal window
qm set 999 --name restore-drill-100 --onboot 0 --net0 virtio,bridge=vmbr0,link_down=1
qm start 999
  1. Check it through the guest agent:
Terminal window
qm guest exec 999 -- bash -c "cat /etc/proxmox-restore-proof; ip -br link show eth0; uname -r"
  1. Clean up:
Terminal window
qm stop 999 && qm destroy 999 --purge

The marker is there, and eth0 shows DOWN with NO-CARRIER.

  • Booting a restored copy on the same bridge clashes with the live VM’s IP and can take over its Tailscale session.
  • --maxfiles is gone in Proxmox VE 9. Use --prune-backups keep-last=N.
  • Backups on the same disk as the VMs are not off-host. Copying them to the NAS is still to do here.