summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2013-06-28 17:40:44 +0200
committerSimon Rettberg2013-06-28 17:40:44 +0200
commita8b469fe74d1a3a606b766c033d8e6b0592c420c (patch)
tree0f56dfee7f0a482a1bea379fc2ea66581b859d4e
parent! (diff)
downloadtm-scripts-a8b469fe74d1a3a606b766c033d8e6b0592c420c.tar.gz
tm-scripts-a8b469fe74d1a3a606b766c033d8e6b0592c420c.tar.xz
tm-scripts-a8b469fe74d1a3a606b766c033d8e6b0592c420c.zip
[vmchooser] Load kvm kernel module if host supports it
-rwxr-xr-xremote/modules/vmchooser/data/opt/openslx/bin/run-virt.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/remote/modules/vmchooser/data/opt/openslx/bin/run-virt.sh b/remote/modules/vmchooser/data/opt/openslx/bin/run-virt.sh
index 84ece685..f338cd37 100755
--- a/remote/modules/vmchooser/data/opt/openslx/bin/run-virt.sh
+++ b/remote/modules/vmchooser/data/opt/openslx/bin/run-virt.sh
@@ -392,6 +392,11 @@ amixer -q sset Front "$VOL" unmute 2>/dev/null # in SUSE 11.0 it's headphon
amixer -q sset Speaker "$VOL" unmute 2>/dev/null # annoying built-in speaker
#writelog "finished\n"
+# Load kvm modules
+if [ "$vtflag" = "1" -a -n "$kvm_module" ]; then
+ modprobe "$kvm_module"
+fi
+
# Copy guest configuration (with added information) config.xml to be accessed
# via virtual floppy
# fixme -> to be changed (vmchooser adapts the file content!?)