Docker makes Debian-11 standalone VM stuck after waking up

  1. Install docker on Debian-11 standalone VM
  2. Sleep
  3. Wake up
  4. The VM is stuck – both mouse and keyboard don’t work. I can only restart and then kill the VM.

After removing docker, the VM is normal.

  1. Remove docker
  2. Sleep
  3. Wake up
  4. The VM is normal

Install docker on Debian according to official doc

sudo mkdir -p /etc/apt/keyrings/
curl -fsSL | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
echo \
  "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] \
  $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null

Remove docker

sudo apt-get remove -y docker-ce docker-ce-cli docker-compose-plugin

Is standalone attached to sys-whonix, at least somewhere in the net chain? If so, try to set netVM to none and check again. I experience this especially, if not exclusively on whonix-based VMs and qubes attached to whonix-based VMs, so I concluded it’s something with whonix. I haven’t tried with qubes attached to sys-firewall only, but both sys-firewall and sys-net are not stuck in these cases.

  • sys-whonix is shutdown during the whole process
  • Both sys-firewall and sys-net are default fedora APP VM
  • Debian-11 standalone VM is not net VM