Score:0

How to manage disk-only snapshots on QEMU?

sd flag
gcb

I'm trying to move my VirtualBox and Docker workflow to QEMU.

On those other systems, I would boot a public linux vm/container, edit to my liking. shut it down, and create a snapshot to then boot and discard changes. So i always have a pristine image to run my tests on.

On QEMU, I can't get to the exact the same workflow or find a good adaptation.

Instead of always saving layers of snapshots and having the option to discard at will, I either have no snapshot (i.e. after shutdown all that is written is written), or I run qemu-system with -snapshot which will always discard changes. The command commit doesn't work as i assumed it would.

Then I have the option to save the vm state, which includes all disk and CPU/MEMORY state to the disk (qcow2) file... by entering the vm monitor and issuing savevm ... command. This is awkward as it makes booting the same image several days later a pain as lots of undesirable state is kept.

How Can i optionally save disk state of a shutdown QEMU machine, or how can I discard accumulated-by-default-layers later on at will?

(ideally from command line alone as I could do with VBoxManage commands)

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.