Skip to content

Guest setup for profiles

Ari edited this page Nov 24, 2026 · 1 revision

To keep open apps in a profile (or use Save state), the guest has to be able to hibernate, and the app has to be able to ask it to. That needs a one-time setup inside the guest.

The first time you need it, the app shows a popup with the exact command. It looks like this:

curl -sL 10.0.2.2:7777/s | sudo bash

Run it in a terminal inside the VM, enter your password, wait for it to finish, then restart the VM once.

What it does

  • Installs qemu-guest-agent, which lets the app ask the guest to hibernate
  • Makes sure there's swap at least as big as RAM (hibernation writes memory into swap). It uses your swap partition if it's big enough, otherwise it makes /swapfile on ext4
  • Adds resume= (and resume_offset= for a swap file) to GRUB and the initramfs so the kernel can resume
  • Sets hibernation to power off fully when done

10.0.2.2 is how a NAT guest reaches your PC. The script is served by the app itself.

Which guests

  • Works: Debian-based Linux (Kali, Parrot, Ubuntu, Mint, Debian) with GRUB, on ext4 or with a swap partition
  • Not yet: Windows guests, Fedora/Arch, a btrfs root without a swap partition. The script stops with a message instead of guessing

If it fails

  • "Run it with sudo": copy the whole command, including | sudo bash
  • "Root filesystem is btrfs": make a swap partition at least as big as RAM and run it again
  • "Couldn't add resume=...": your GRUB config has an unusual format. Add the printed text to GRUB_CMDLINE_LINUX_DEFAULT in /etc/default/grub and run sudo update-grub

Clone this wiki locally