Open afbjorklund opened 2 years ago
This would be super awesome for people on the go - easily free up some battery capacity by suspending the docker VM. We could even detect "no containers running" and do it automatically at some point.
I see @afbjorklund has taken a stab at implementing this in https://github.com/lima-vm/lima/pull/642, is that something lima would consider merging today if brought up-to-date?
I can rebase it, but the main issue was that Lima lacked a "reconnect" option to bring the ssh socket back to life again.
EDIT: Rebased the PR
Description
Seems like QMP has these nice commands:
stop Suspend execution of VM
cont Reverse a previous stop command - resume execution of VM.
https://en.wikibooks.org/wiki/QEMU/Monitor#Virtual_machine
Allows you to suspend and resume the VM, through qmp.sock: