summaryrefslogtreecommitdiffstats
path: root/core/modules/run-virt/data/opt/openslx/vmchooser/run-virt-includes/setup_vm_hypervisor.inc
diff options
context:
space:
mode:
authorJonathan Bauer2018-04-13 11:37:09 +0200
committerJonathan Bauer2018-04-13 11:37:09 +0200
commit2917841f0d6f8aa311123735bc05bc50438f0766 (patch)
tree2ab61ac57b4615d571c4ae4e820ad185d9976ae4 /core/modules/run-virt/data/opt/openslx/vmchooser/run-virt-includes/setup_vm_hypervisor.inc
parent[systemd] network-interface@ should be oneshot (diff)
downloadmltk-2917841f0d6f8aa311123735bc05bc50438f0766.tar.gz
mltk-2917841f0d6f8aa311123735bc05bc50438f0766.tar.xz
mltk-2917841f0d6f8aa311123735bc05bc50438f0766.zip
[run-virt] error msg for missing plugin dir
Diffstat (limited to 'core/modules/run-virt/data/opt/openslx/vmchooser/run-virt-includes/setup_vm_hypervisor.inc')
-rw-r--r--core/modules/run-virt/data/opt/openslx/vmchooser/run-virt-includes/setup_vm_hypervisor.inc9
1 files changed, 9 insertions, 0 deletions
diff --git a/core/modules/run-virt/data/opt/openslx/vmchooser/run-virt-includes/setup_vm_hypervisor.inc b/core/modules/run-virt/data/opt/openslx/vmchooser/run-virt-includes/setup_vm_hypervisor.inc
index 81032a1f..1d6de54b 100644
--- a/core/modules/run-virt/data/opt/openslx/vmchooser/run-virt-includes/setup_vm_hypervisor.inc
+++ b/core/modules/run-virt/data/opt/openslx/vmchooser/run-virt-includes/setup_vm_hypervisor.inc
@@ -9,6 +9,15 @@ setup_vm_commandline() {
writelog "Sanity check failed: PLUGIN_ID is not set."
EXIT_TYPE="internal" EXIT_REASON="Konnte kein Virtualisierer für das gewählte Image ermitteln!" cleanexit 1
fi
+ local PLUGIN_DISPLAY_NAME="$(get_xml virtualizer_name)"
+ writelog "Plugin Name: $PLUGIN_DISPLAY_NAME"
+ isempty PLUGIN_DISPLAY_NAME && PLUGIN_DISPLAY_NAME="${PLUGIN_ID}"
+ if [ ! -d "${VMCHOOSER_DIR}/plugins/${PLUGIN_ID}" ]; then
+ EXIT_TYPE="internal" EXIT_REASON="msg.vm.missing-hypervisor
+Fehlende Unterstützung für '${PLUGIN_DISPLAY_NAME}' im Grundsystem.
+Stellen Sie sicher, dass ihre bwLehrpool-Administration das SLX_ADDON '${PLUGIN_ID}' zur Verfügung stellt.
+" cleanexit 1
+ fi
if ! $(safesource "$VMCHOOSER_DIR/plugins/$PLUGIN_ID/run-virt.include"); then
# safesource logs errors on its own
EXIT_TYPE="internal" EXIT_REASON="Konnte Virtualisierungsplugin '$PLUGIN_ID' nicht initialisieren!" cleanexit 1