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.
|
4 years ago | |
---|---|---|
README.md | 4 years ago | |
example-vm | 4 years ago | |
qemu@.service | 4 years ago |
README.md
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.
"Install"
- Place
qemu@.service
into/etc/systemd/system/
- Run
systemd daemon-reload
. - Place your vm configuration along the lines of the
example-vm
file in/etc/qemu/vms/
Starting
On the fly:
systemctl start qemu@example-vm.service
On boot:
systemctl enable qemu@example-vm.service