diff options
author | Manuel Bentele | 2021-02-02 10:42:07 +0100 |
---|---|---|
committer | Manuel Bentele | 2021-02-02 10:42:07 +0100 |
commit | eaeb75d858f45447c4b3d17f33b6183f95b98466 (patch) | |
tree | 6846441981fa5fd43b24b3e973d38144d92f578e /core/modules/qemu/data/opt/openslx/scripts/systemd-qemukvm_env | |
parent | [hardware-stats] Add ID45 to status updates (diff) | |
download | mltk-eaeb75d858f45447c4b3d17f33b6183f95b98466.tar.gz mltk-eaeb75d858f45447c4b3d17f33b6183f95b98466.tar.xz mltk-eaeb75d858f45447c4b3d17f33b6183f95b98466.zip |
[qemu] Rename 'qemukvm' core module to 'qemu'
Diffstat (limited to 'core/modules/qemu/data/opt/openslx/scripts/systemd-qemukvm_env')
-rwxr-xr-x | core/modules/qemu/data/opt/openslx/scripts/systemd-qemukvm_env | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/core/modules/qemu/data/opt/openslx/scripts/systemd-qemukvm_env b/core/modules/qemu/data/opt/openslx/scripts/systemd-qemukvm_env new file mode 100755 index 00000000..631c159f --- /dev/null +++ b/core/modules/qemu/data/opt/openslx/scripts/systemd-qemukvm_env @@ -0,0 +1,28 @@ +#!/bin/ash +# ----------------------------------------------------------------------------- +# +# Copyright (c) 2017..2018 bwLehrpool-Projektteam +# +# This program/file is free software distributed under the GPL version 2. +# See https://www.gnu.org/licenses/old-licenses/gpl-2.0-standalone.html +# +# If you have any feedback please consult https://bwlehrpool.de and +# send your feedback to bwlehrpool@hs-offenburg.de. +# +# General information about bwLehrpool can be found at https://bwlehrpool.de +# +# ----------------------------------------------------------------------------- +# systemd-qemukvm_env +# - This is the preparation script for the configuration of Linux Qemu/KVM. +################################################################################ + +# lazy load all kvm related modules +modprobe kvm +modprobe kvm_amd +modprobe kvm_intel + +if [ ! -e /dev/kvm ]; then + slxlog "qemukvm-modules" "/dev/kvm not found! Missing kvm kernel module(s)?" + exit 1 +fi + |