diff options
| author | Simon Rettberg | 2013-12-17 18:37:29 +0100 |
|---|---|---|
| committer | Simon Rettberg | 2013-12-17 18:37:29 +0100 |
| commit | c3603f662aaadc0b4a3f8c5acff35fc076757a49 (patch) | |
| tree | 03a78f0bc42c42730acadb44d7ac4287f4f68fcc /remote/modules | |
| parent | [rfs-stage32] Rename variables. SLX_ is reserved for /opt/openslx/config (diff) | |
| parent | [qemukvm] services, addon-init, env file, udev reload etc. NOT TESTED ENOUGH! (diff) | |
| download | tm-scripts-c3603f662aaadc0b4a3f8c5acff35fc076757a49.tar.gz tm-scripts-c3603f662aaadc0b4a3f8c5acff35fc076757a49.tar.xz tm-scripts-c3603f662aaadc0b4a3f8c5acff35fc076757a49.zip | |
Merge branch 'master' of simonslx:openslx-ng/tm-scripts
Diffstat (limited to 'remote/modules')
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="" |
