From 8f5701860d48977fadbfaa1ca652d76b6cb89759 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20Sp=C3=B6hel?= Date: Wed, 14 Apr 2021 17:30:50 +0200 Subject: Adding basic functionality to start a VM. --- share/systemd/kvm@.service | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 share/systemd/kvm@.service (limited to 'share/systemd/kvm@.service') diff --git a/share/systemd/kvm@.service b/share/systemd/kvm@.service new file mode 100644 index 0000000..41fea21 --- /dev/null +++ b/share/systemd/kvm@.service @@ -0,0 +1,13 @@ +[Unit] +Description="Container: %i" +Documentation=man:compute-tools + +[Service] +Type=simple +ExecStart=/usr/bin/container start-qemu -n %i --nspawn +ExecStartPost=/usr/bin/container start-qemu -n %i --start +#ExecStopPost=/usr/bin/container stop -n %i --clean --no-notification +KillMode=mixed + +[Install] +WantedBy=multi-user.target -- cgit v1.2.3