Fork 0
Simple way to start/stop KVM VMs with systemd on boot without libvirt
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
eaon a6d3b2ac3d
Initial commit
4 years ago
README.md Initial commit 4 years ago
example-vm Initial commit 4 years ago
qemu@.service Initial commit 4 years ago


QEMU/KVM systemd service

.service file that makes it easy to run differently configured QEMU VMs on boot (or on demand) via systemd. No libvirt required.

The service file is based on an entry in the ArchWiki, but in my usecase I needed/wanted firewall rules to be automatically added/removed.


  1. Place qemu@.service into /etc/systemd/system/
  2. Run systemd daemon-reload.
  3. Place your vm configuration along the lines of the example-vm file in /etc/qemu/vms/


On the fly:

systemctl start qemu@example-vm.service

On boot:

systemctl enable qemu@example-vm.service