LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Virtualization and Cloud (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/)
-   -   QEMU VMs and Client Suspend on Host Lid Close (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/qemu-vms-and-client-suspend-on-host-lid-close-4175712318/)

SlowCoder 05-18-2022 05:57 PM

QEMU VMs and Client Suspend on Host Lid Close
 
I run QEMU VMs on my laptop for test/play. When I need to close the laptop lid, I shut down the VMs. Does QEMU know if the host enters suspend, and does it have a way to suspend the VM as well?

syg00 05-20-2022 07:44 AM

What have your searches suggested ?.

You can always insert scripts to do what you want at system interrupt points - depends what "system" you are using; systemd, OpenRC, rinit, whatever. Your call.


All times are GMT -5. The time now is 10:39 PM.