diff --git a/README.md b/README.md index 4a6eb1c..d13a5b3 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** (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. + +**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.