Restoring a live VM backup with its network disabled
VM 999 booted from the backup with its network link down, so it couldn't clash with the live VM.
I wanted to prove the workload VM’s backup could be restored, without disturbing the running VM.
The problem with a simple restore test: the copy boots with the same static IP and the same Tailscale node key as the live VM. On the same bridge, that’s an address clash on the LAN, and the copy could take over the live VM’s Tailscale session.
What we did:
- Took an online snapshot backup with
vzdump. The guest agent froze and thawed the filesystem around it. 120 GiB of disk, mostly empty, became a 1.41 GB archive in 74 seconds. - Restored the archive to a spare VM ID, 999.
- Before starting it, unplugged its virtual network cable:
qm set 999 --name restore-drill-100 --onboot 0 --net0 virtio,bridge=vmbr0,link_down=1- Booted it and checked it through the guest agent, not the network. A marker file I’d written before the backup was there, the kernel matched, and
eth0showedDOWN <NO-CARRIER>. - Stopped and removed VM 999.
The backup archives still sit on the same SSD as the VMs. Getting a copy off the host is still to do.
Recipes written later from this work: