Set the power state of a QEMU/KVM Virtual Machine (VM). Wake from Sleep or
Hibernation. Does what virt-manager doesn't.
- 1. Why?
- 2. Related Projects
- 3. Documentation
- 4. Host Requirements
- 5. Download
- 6. Usage
- 7. Contact
- 8. References
The virtual machine manager application virt-manager does not (currently) have
the option to wake a VM from Sleep. In other words, as a VM cannot be awaken by
an input device, unfortunately. For example, a physical or virtual "power on",
button, keyboard input, or network activity. This application includes the
ability to wake from Sleep and Hibernation, and the other related features from
virt-manager.
To view other relevant projects, visit Codeberg or GitHub.
- What is VFIO?[2]
- VFIO Discussion and Support[3]
- Hardware-Passthrough Guide[1]
- Virtual Machine XML Format Guide[4]
Linux.
QEMUandLibvirtfor Virtual Machines.
The following firmware options are supported and enabled (motherboard and CPU):
- System Power State S3 (Sleep).
- System Power State S4 (Hibernation).
-
Download the
.zipfile:- Viewing from the top of the repository's (current) webpage, click the
drop-down icon:
···on Codeberg.<> Codeon GitHub.
- Click
Download ZIPand save. - Open the
.zipfile, then extract its contents.
- Viewing from the top of the repository's (current) webpage, click the
drop-down icon:
-
Clone the repository:
- Open a Command Line Interface (CLI) or Terminal.
- Open a console emulator (for Debian systems: Konsole).
- Linux only: Open an existing console: press
CTRL+ALT+F2,F3,F4,F5, orF6.- To return to the desktop, press
CTRL+ALT+F7. F1is reserved for debug output of the Linux kernel.F7is reserved for video output of the desktop environment.F8and above are unused.
- To return to the desktop, press
- Change your directory to your home folder or anywhere safe:
cd ~
- Clone the repository:
git clone https://www.codeberg.org/portellam/powerstate-virtmanagergit clone https://www.github.com/portellam/powerstate-virtmanager
- Open a Command Line Interface (CLI) or Terminal.
sudo bash installer.shInstaller will copy required files to /usr/bin/local/. You may run executable
from any directory.
sudo powerstate-virtmanagerDo you need help? Please visit the Issues page.
PCI passthrough via OVMF. ArchWiki. Accessed June 14, 2024.
https://wiki.archlinux.org/title/PCI_passthrough_via_OVMF.
VFIO - ‘Virtual Function I/O’ - The Linux Kernel Documentation. The linux kernel. Accessed June 14, 2024.
https://www.kernel.org/doc/html/latest/driver-api/vfio.html.
VFIO Discussion and Support. Reddit. Accessed June 14, 2024.
https://www.reddit.com/r/VFIO/.