summaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorSimon Spöhel <simon@spoehel.ch>2021-04-14 15:30:50 +0000
committerSakirnth Nagarasa <sakirnth@gmail.com>2021-09-01 08:24:59 +0000
commit8f5701860d48977fadbfaa1ca652d76b6cb89759 (patch)
treea7e0c5098e7d6b23bedc73aba1030331aa3dbcb4 /share
parentStart (dummy commit). (diff)
downloadcompute-tools-8f5701860d48977fadbfaa1ca652d76b6cb89759.tar.xz
compute-tools-8f5701860d48977fadbfaa1ca652d76b6cb89759.zip
Adding basic functionality to start a VM.
Diffstat (limited to 'share')
-rw-r--r--share/systemd/kvm@.service13
1 files changed, 13 insertions, 0 deletions
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