summaryrefslogtreecommitdiffstats
path: root/os-plugins/plugins/vmgrid/OpenSLX/OSPlugin/vmgrid.pm
diff options
context:
space:
mode:
authorMichael Janczyk2010-04-13 22:11:50 +0200
committerMichael Janczyk2010-04-13 22:11:50 +0200
commitcfbb249b0d2eae4e9fcef571b316f1a552d4b8f6 (patch)
tree87decdc57aa971bd8e89dff09fc9e28979a307df /os-plugins/plugins/vmgrid/OpenSLX/OSPlugin/vmgrid.pm
parentvirtualization plugin, now with calculation of mem, run-vmgrid and run-virt u... (diff)
downloadcore-cfbb249b0d2eae4e9fcef571b316f1a552d4b8f6.tar.gz
core-cfbb249b0d2eae4e9fcef571b316f1a552d4b8f6.tar.xz
core-cfbb249b0d2eae4e9fcef571b316f1a552d4b8f6.zip
disable audio when using vmgrid
Diffstat (limited to 'os-plugins/plugins/vmgrid/OpenSLX/OSPlugin/vmgrid.pm')
-rw-r--r--os-plugins/plugins/vmgrid/OpenSLX/OSPlugin/vmgrid.pm26
1 files changed, 13 insertions, 13 deletions
diff --git a/os-plugins/plugins/vmgrid/OpenSLX/OSPlugin/vmgrid.pm b/os-plugins/plugins/vmgrid/OpenSLX/OSPlugin/vmgrid.pm
index d73e0720..401a2151 100644
--- a/os-plugins/plugins/vmgrid/OpenSLX/OSPlugin/vmgrid.pm
+++ b/os-plugins/plugins/vmgrid/OpenSLX/OSPlugin/vmgrid.pm
@@ -133,7 +133,7 @@ sub getAttrInfo
content_descr => 'name of xml file e.g. scilin-5.4-wn(.xml)',
default => undef,
},
- 'vmgrid::hvm' => {
+ 'vmgrid::vt' => {
applies_to_systems => 1,
applies_to_clients => 1,
description => unshiftHereDoc(<<' End-of-Here'),
@@ -249,7 +249,7 @@ sub _writeRunlevelScript
my $self = shift;
my $initfile = newInitFile();
- $initfile->setName("vmgrid-slx");
+ $initfile->setName("vmgrid");
$initfile->setDesc("Setup environment for vmgrid. Part of OpenSLX vmgrid plugin.");
# todo: Function need to be formated proper... not important right now
@@ -258,16 +258,16 @@ sub _writeRunlevelScript
# 'lsmod | grep -q "$1[^_-]"'
#);
- # Is a VM running?
- my $runningvms = unshiftHereDoc(<<' End-of-Here');
- if [ -e /tmp/vmgrid/vmgrid.pids ]; then
- for pid in $(cat /tmp/vmgrid/vmgrid.pids); do
- if ps aux | grep " ${pid} " | grep vmgrid; then
- echo "Running: ${pid}"
- fi
- done
- fi
- End-of-Here
+# # Is a VM running?
+# my $runningvms = unshiftHereDoc(<<' End-of-Here');
+# if [ -e /tmp/vmgrid/vmgrid.pids ]; then
+# for pid in $(cat /tmp/vmgrid/vmgrid.pids); do
+# if ps aux | grep " ${pid} " | grep vmgrid; then
+# echo "Running: ${pid}"
+# fi
+# done
+# fi
+# End-of-Here
# Kill all VMS!
my $killvms = unshiftHereDoc(<<' End-of-Here');
@@ -312,7 +312,7 @@ sub _writeRunlevelScript
'stop && start'
);
- # get distro version
+# # get distro version
# my $distro = (split('-',$self->{'os-plugin-engine'}->distroName()))[0];
# my $runlevelscript = getInitFileForDistro($initfile, $distro);
#