datu.ch

Ephemeral VMs with tmpfs

Motivation # I use VMs a lot. Most of the time, I just need to create one, use it, and then throw it away. Doing all of this on an SSD can shorten its lifespan, and repeatedly recreating disk images and installing the OS every time feels redundant. Getting Rid of Redundancy # To avoid doing the same setup work repeatedly, the obvious solution is to have a single base image like win11-base.qcow2, and clone it every time you need a new VM.