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: pick RAW or QCOW2 as the vDisk type depending on whether you want snapshots

Unraid
~/tips/tip-unraid-vm-vdisk-raw-or-qcow2

cat ~/tips/tip-unraid-vm-vdisk-raw-or-qcow2.md

RAW is faster, QCOW2 supports snapshots, so the vDisk type decides whether you can roll back.

The vDisk type in the Unraid VM form looks like a harmless dropdown. It decides whether the VM can use snapshots, so I would choose it on purpose.

When you create a VM you set the location, size and type of the primary vDisk. The VM setup page describes the two types like this: RAW gives the best performance but is less flexible for snapshots, and QCOW2 supports snapshots at the cost of slightly lower performance.

The snapshot feature is new in Unraid 7. Per the docs, creating a snapshot makes an overlay file that records everything that changes after that point, and the VM then runs on the original disk and the overlay together. Every further snapshot adds its own overlay file. You can revert to any earlier state, which is handy before a Windows update or a configuration change.

That explains the size warning. A VM with several snapshots takes more space than the vDisk size you typed in, so make sure the location has room to spare.

My rule is short. If the VM is a throwaway or you back it up another way, RAW is the faster choice. If you want to roll a Windows VM back after a bad update, take QCOW2. The docs do not describe converting a disk later, so I would decide before creating the VM.

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