![]() This allows shutdown events to be sent via qemu guest agent, which works for BSD agents which don't handle ACPI events correctly. Tested with OpenBSD 7.0. Signed-off-by: Aisha Tammy <floss@bsd.ac> |
||
---|---|---|
.editorconfig | ||
LICENSE | ||
Makefile | ||
README.adoc | ||
qemu-binfmt.initd | ||
qemu.confd | ||
qemu.initd | ||
qemush |
README.adoc
OpenRC runscript for QEMU
This is (opinionated) OpenRC runscript for QEMU virtual machines.
You don’t need libvirt and its awful XML configs to use QEMU/KVM!
Requirements
Installation
Manually
-
Install socat:
emerge -av net-misc/socat # on Gentoo apk add socat # on Alpine
-
Clone this repository and jump in:
git clone https://github.com/jirutka/qemu-openrc.git cd qemu-openrc
-
Install runscript, example config and qemush utility:
make install
You may use standard GNU variables such as
DESTDIR
,prefix
,bindir
… to specify the target directories.
How to configure a new VM
-
Symlink runscript
qemu
for your new VM namedjarvis
:cd /etc/init.d ln -s qemu qemu.jarvis
-
Configure your new VM:
cd /etc/conf.d cp qemu qemu.jarvis vim qemu.jarvis
-
Start your new VM:
rc-service qemu.jarvis start
License
This project is licensed under MIT License.