From af686ec6002fe1b9c8dfa142a9626ce149f3c740 Mon Sep 17 00:00:00 2001 From: Ari <149393150+A21-devs@users.noreply.github.com> Date: Fri, 4 Dec 2026 14:24:45 -0500 Subject: [PATCH 1/2] README: say how Save state works on WHPX and on TCG The feature list had one line about it and the FAQ only explained the profile side. The FAQ now says why WHPX can't savevm, what the guest agent does instead, that a TCG save state is a savevm used once, and what a Windows guest needs. Also drops the FAQ's claim that profiles of a powered-off VM aren't supported: they have been since #17. --- README.md | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 4a6eb1c..44bc821 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ I wanted something that feels like VMware Workstation but is free and fully mine - **Quitting mid-work:** a profile save or a clone, compact or disk grow isn't cut off without asking. Quit can wait for it to finish, then quits **Save your place** -- **Save state:** close a VM and pick up where you left off next time you power it on +- **Save state:** close a VM and pick up where you left off next time you power it on. With WHPX the guest hibernates itself (one-time setup in the guest); without it, QEMU writes RAM and disk into the qcow2 ([wiki](https://github.com/A21-devs/Virtual-Machine-Manager/wiki/Save-state-and-profiles)) - **Profiles:** save named points in time for a VM ("tools set up", "clean install") with a screenshot and a note, then **Launch** any of them later to go straight back to that moment - A profile keeps everything that was open in the guest. It's taken while the VM runs, and works for Debian/Ubuntu-based Linux guests today - A profile of a VM that's off keeps just the disk. It works with any guest and launches with a fresh boot from that point @@ -100,9 +100,16 @@ Uninstalling the app never touches this folder. **Does it work alongside WSL, Docker Desktop or Hyper-V?** Yes. WHPX is the same hypervisor they use, which is why VMware and VirtualBox often fight with them and this doesn't. -**Why does saving a profile close the VM for a moment?** With WHPX, QEMU can't snapshot a running guest's memory, so the guest hibernates itself, the disk is snapshotted, and the VM starts again. Launching the profile resumes from that hibernation. +**How does Save state work?** It depends on the acceleration, because QEMU's WHPX backend refuses to write a running guest's memory to disk: `savevm` is built on migration, and migration reports "State blocked due to missing dirty memory tracking support". -**Which guests can keep open apps in a profile?** Linux guests based on Debian or Ubuntu (Kali, Ubuntu, Mint, Parrot) after a one-time setup command that the app shows you the first time. Windows guests aren't supported yet ([#42](https://github.com/A21-devs/Virtual-Machine-Manager/issues/42)), and neither are profiles of a powered-off VM ([#17](https://github.com/A21-devs/Virtual-Machine-Manager/issues/17)). +- **With WHPX** (the normal case on Windows) the app asks the guest to hibernate itself through `qemu-guest-agent`. The guest writes its own memory into its own swap and powers off, and the next **Power on** is a normal boot that the guest resumes from. It needs the one-time guest setup below. +- **Without WHPX** (TCG emulation) it's a plain `savevm` into the VM's qcow2, RAM and disk together, and QEMU quits. The next **Power on** loads that save and then deletes it, so a save state is used exactly once. + +**Why does saving a profile close the VM for a moment?** Same reason: under WHPX the guest has to hibernate before the disk can be snapshotted, so the VM goes off and starts again. Launching the profile resumes from that hibernation. + +**Which guests can keep open apps in a profile or use Save state?** Linux guests based on Debian or Ubuntu (Kali, Ubuntu, Mint, Parrot) after a one-time setup command that the app shows you the first time. It installs `qemu-guest-agent`, makes sure swap is at least as big as RAM, and adds `resume=` to GRUB and the initramfs. A Windows guest needs the same two things by hand, the guest agent from virtio-win and `powercfg /hibernate on`; the setup command doesn't cover Windows and that path hasn't been tested end to end yet ([#42](https://github.com/A21-devs/Virtual-Machine-Manager/issues/42)). + +**What about a VM that's off?** **Save profile** on a powered-off VM snapshots just the disk, which needs nothing installed in the guest and works with any OS. Launching it rolls the disk back and boots fresh. **Can I use my existing VMs?** Any qcow2 disk works: put it in `VMs\disks` and point a new VM at it. VMs from the old PowerShell version show up on their own. From 2c969086d7c1d3c3e31698d19594fbcaac6ac94d Mon Sep 17 00:00:00 2001 From: Ari <149393150+A21-devs@users.noreply.github.com> Date: Fri, 4 Dec 2026 14:25:45 -0500 Subject: [PATCH 2/2] README: name WHPX by its condition and link the guest setup "The normal case on Windows" disagreed with the feature list, which says WHPX is used when Windows Hypervisor Platform is on. The pointer to the guest setup is a link now instead of "below". --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 44bc821..d13a5b3 100644 --- a/README.md +++ b/README.md @@ -102,7 +102,7 @@ Uninstalling the app never touches this folder. **How does Save state work?** It depends on the acceleration, because QEMU's WHPX backend refuses to write a running guest's memory to disk: `savevm` is built on migration, and migration reports "State blocked due to missing dirty memory tracking support". -- **With WHPX** (the normal case on Windows) the app asks the guest to hibernate itself through `qemu-guest-agent`. The guest writes its own memory into its own swap and powers off, and the next **Power on** is a normal boot that the guest resumes from. It needs the one-time guest setup below. +- **With WHPX** (whenever Windows Hypervisor Platform is on) the app asks the guest to hibernate itself through `qemu-guest-agent`. The guest writes its own memory into its own swap and powers off, and the next **Power on** is a normal boot that the guest resumes from. It needs a [one-time setup in the guest](https://github.com/A21-devs/Virtual-Machine-Manager/wiki/Guest-setup-for-profiles). - **Without WHPX** (TCG emulation) it's a plain `savevm` into the VM's qcow2, RAM and disk together, and QEMU quits. The next **Power on** loads that save and then deletes it, so a save state is used exactly once. **Why does saving a profile close the VM for a moment?** Same reason: under WHPX the guest has to hibernate before the disk can be snapshotted, so the VM goes off and starts again. Launching the profile resumes from that hibernation.