diff options
Diffstat (limited to 'core/modules/run-virt/data')
| -rw-r--r-- | core/modules/run-virt/data/opt/openslx/vmchooser/run-virt-includes/setup_vm_hypervisor.inc | 9 |
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 |
