diff options
author | Simon Spöhel <simon@spoehel.ch> | 2021-04-14 15:30:50 +0000 |
---|---|---|
committer | Sakirnth Nagarasa <sakirnth@gmail.com> | 2021-09-01 08:24:59 +0000 |
commit | 8f5701860d48977fadbfaa1ca652d76b6cb89759 (patch) | |
tree | a7e0c5098e7d6b23bedc73aba1030331aa3dbcb4 /share | |
parent | Start (dummy commit). (diff) | |
download | compute-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@.service | 13 |
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 |