summaryrefslogtreecommitdiffstats
path: root/remote/modules
diff options
context:
space:
mode:
Diffstat (limited to 'remote/modules')
-rwxr-xr-xremote/modules/qemukvm/data/addon-init8
l---------remote/modules/qemukvm/data/etc/systemd/system/graphical.target.wants/qemukvm.service1
-rw-r--r--remote/modules/qemukvm/data/etc/systemd/system/qemukvm.service9
-rw-r--r--remote/modules/qemukvm/data/opt/openslx/scripts/systemd-qemukvm_env8
-rw-r--r--remote/modules/qemukvm/qemukvm.conf12
-rw-r--r--remote/modules/qemukvm/qemukvm.conf.ubuntu1
6 files changed, 34 insertions, 5 deletions
diff --git a/remote/modules/qemukvm/data/addon-init b/remote/modules/qemukvm/data/addon-init
new file mode 100755
index 00000000..cccc1e8a
--- /dev/null
+++ b/remote/modules/qemukvm/data/addon-init
@@ -0,0 +1,8 @@
+#!/bin/ash
+
+systemctl daemon-reload
+systemctl start qemukvm.service
+
+# this seems to be necessary due to the misbehaviour of udevd
+# in view of the undetected ENV dev_type
+systemctl restart systemd-udevd
diff --git a/remote/modules/qemukvm/data/etc/systemd/system/graphical.target.wants/qemukvm.service b/remote/modules/qemukvm/data/etc/systemd/system/graphical.target.wants/qemukvm.service
new file mode 120000
index 00000000..89d8afbf
--- /dev/null
+++ b/remote/modules/qemukvm/data/etc/systemd/system/graphical.target.wants/qemukvm.service
@@ -0,0 +1 @@
+../qemukvm.service \ No newline at end of file
diff --git a/remote/modules/qemukvm/data/etc/systemd/system/qemukvm.service b/remote/modules/qemukvm/data/etc/systemd/system/qemukvm.service
new file mode 100644
index 00000000..8faf5d06
--- /dev/null
+++ b/remote/modules/qemukvm/data/etc/systemd/system/qemukvm.service
@@ -0,0 +1,9 @@
+[Unit]
+Description=Sets up the virtual box environment
+Requires=vmchooser.service
+After=vmchooser.service
+
+[Service]
+Type=oneshot
+RemainAfterExit=yes
+ExecStart=/opt/openslx/scripts/systemd-qemukvm_env start
diff --git a/remote/modules/qemukvm/data/opt/openslx/scripts/systemd-qemukvm_env b/remote/modules/qemukvm/data/opt/openslx/scripts/systemd-qemukvm_env
index 3173ca45..2d1483aa 100644
--- a/remote/modules/qemukvm/data/opt/openslx/scripts/systemd-qemukvm_env
+++ b/remote/modules/qemukvm/data/opt/openslx/scripts/systemd-qemukvm_env
@@ -14,8 +14,14 @@
# - This is the preparation script for the configuration of Linux Qemu/KVM.
################################################################################
+
+modprobe kvm
+modprobe kvm_amd
+modprobe kvm_intel
+
# check for Linux kvm modules (if required at all)
-# lsmod |grep kvm || slxlog "qemukvm-modules" "Cannot find any kvm kernel module(s)"
+
+lsmod |grep kvm || slxlog "qemukvm-modules" "Cannot find any kvm kernel module(s)"
cat >> /etc/sudoers << EOF
# allow to start and stop kvm services / load-/unload kvm modules
diff --git a/remote/modules/qemukvm/qemukvm.conf b/remote/modules/qemukvm/qemukvm.conf
index a3973fe7..32df73a5 100644
--- a/remote/modules/qemukvm/qemukvm.conf
+++ b/remote/modules/qemukvm/qemukvm.conf
@@ -1,5 +1,11 @@
-REQUIRED_BINARIES="
-"
-
REQUIRED_DIRECTORIES="
+ /etc
+ /lib
+ /usr/bin
+ /usr/sbin
+ /usr/lib
+ /usr/share/lintian
+ /usr/share/qemu
+ /usr/share/seabios
+ /usr/share/vgabios
"
diff --git a/remote/modules/qemukvm/qemukvm.conf.ubuntu b/remote/modules/qemukvm/qemukvm.conf.ubuntu
index e42cb63b..d0fdc5f3 100644
--- a/remote/modules/qemukvm/qemukvm.conf.ubuntu
+++ b/remote/modules/qemukvm/qemukvm.conf.ubuntu
@@ -35,4 +35,3 @@ REQUIRED_CONTENT_PACKAGES="
msr-tools
sharutils
"
-REQUIRED_FILES=""