summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorManuel Bentele2021-11-30 09:21:27 +0100
committerManuel Bentele2021-11-30 09:21:27 +0100
commit5e99bc7ef0da7c8436e4615f7e1aab0edb484832 (patch)
tree942a526ad259a9c17b5ac0b0e3f8fca1b19f0960
parentupdate layout for image typ (diff)
downloadtutor-module-5e99bc7ef0da7c8436e4615f7e1aab0edb484832.tar.gz
tutor-module-5e99bc7ef0da7c8436e4615f7e1aab0edb484832.tar.xz
tutor-module-5e99bc7ef0da7c8436e4615f7e1aab0edb484832.zip
[CLIENT] Adapt OS loader of QEMU machines for local edit
-rw-r--r--dozentenmodul/src/main/java/org/openslx/dozmod/util/VmWrapper.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/util/VmWrapper.java b/dozentenmodul/src/main/java/org/openslx/dozmod/util/VmWrapper.java
index 85703ea0..528c8a42 100644
--- a/dozentenmodul/src/main/java/org/openslx/dozmod/util/VmWrapper.java
+++ b/dozentenmodul/src/main/java/org/openslx/dozmod/util/VmWrapper.java
@@ -26,6 +26,7 @@ import org.openslx.dozmod.thrift.cache.MetaDataCache;
import org.openslx.thrifthelper.TConst;
import org.openslx.virtualization.configuration.VirtualizationConfiguration;
import org.openslx.virtualization.configuration.VirtualizationConfigurationException;
+import org.openslx.virtualization.configuration.VirtualizationConfigurationQemu;
import org.openslx.virtualization.configuration.VirtualizationConfigurationVmware;
import org.openslx.virtualization.configuration.data.ConfigurationDataDozModServerToDozModClient;
import org.openslx.virtualization.configuration.logic.ConfigurationLogicDozModServerToDozModClient;
@@ -91,6 +92,14 @@ public class VmWrapper {
} catch (Exception e) {
Gui.asyncMessageBox("Konnte das BIOS für die VM nicht kopieren", MessageType.ERROR, LOGGER, e);
}
+ } else if ( virtualizationConfig instanceof VirtualizationConfigurationQemu ) {
+ try {
+ final VirtualizationConfigurationQemu virtualizationConfigQemu = VirtualizationConfigurationQemu.class
+ .cast( virtualizationConfig );
+ virtualizationConfigQemu.transformOsLoader();
+ } catch ( VirtualizationConfigurationException | ClassCastException e ) {
+ Gui.asyncMessageBox( "Konnte das BIOS für die VM nicht anpassen", MessageType.ERROR, LOGGER, e );
+ }
}
// save virtualization configuration as file to disk