brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: take a VM snapshot in Unraid 7 before you update the guest

Unraid
~/tips/tip-unraid-vm-snapshots

Before Windows Update

Save a VM's state before risky changes and roll back if they go wrong.

Windows updates and big package upgrades in a Linux VM have one thing in common: you only know afterwards whether it was a good idea. Since Unraid 7 the VM Manager can take snapshots, so you get a way back.

On the VMs page, click the VM name to expand its details, find the Snapshots section and click Create Snapshot. Give it a name you’ll still understand next month, for example:

Before Windows Update

Then decide about the Memory dump checkbox, which isn’t selected by default. With it, the snapshot includes the VM’s RAM and captures the live running state, but it’s larger and slower. Without it you get a disk-only, crash-consistent snapshot that is smaller and faster, and any unsaved data in memory is gone if you go back to it.

Under the hood Unraid creates an overlay file that records every change after the snapshot. When the update turned out fine, Block Commit copies those changes back into the original disk, and with Pivot and Delete both selected the VM uses the original disk again and the overlay is removed. When it went wrong, stop the VM and click Revert. Snapshots work with QCOW2 disks; the docs describe RAW as faster but less flexible for snapshots.

The caveat is that Revert permanently deletes everything that happened after the snapshot, and the overlay files keep eating space on your pool until you commit or remove them. The docs also say it plainly: snapshots are no replacement for proper backups.

Further reading: Unraid docs: VM setup

More Unraid tips Change the RAID profile of a Unraid BTRFS pool with Balance Replace a disk in a redundant Unraid pool from the Main tab Test every Unraid drive with the DiskSpeed container See the XML behind a VM with the inline XML view in Unraid 7 Choose where a new VM's disk image is created with Unraid's storage override All Unraid tips (77) All topics

Link