This is (opinionated) OpenRC runscript for QEMU virtual machines.
You don’t need libvirt and its awful XML configs to use QEMU/KVM!
-
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.
-
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
This project is licensed under MIT License.