summaryrefslogtreecommitdiffstats
path: root/core/modules/qemu
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/qemu')
-rw-r--r--core/modules/qemu/data/opt/openslx/vmchooser/plugins/qemukvm/run-virt.include5
-rw-r--r--core/modules/qemu/runvirt-plugin-qemu/pom.xml2
-rw-r--r--core/modules/qemu/runvirt-plugin-qemu/src/main/java/org/openslx/runvirt/plugin/qemu/App.java2
-rw-r--r--core/modules/qemu/runvirt-plugin-qemu/src/main/java/org/openslx/runvirt/plugin/qemu/cmdln/CommandLineArgs.java11
4 files changed, 17 insertions, 3 deletions
diff --git a/core/modules/qemu/data/opt/openslx/vmchooser/plugins/qemukvm/run-virt.include b/core/modules/qemu/data/opt/openslx/vmchooser/plugins/qemukvm/run-virt.include
index 391ba5a5..e522ccab 100644
--- a/core/modules/qemu/data/opt/openslx/vmchooser/plugins/qemukvm/run-virt.include
+++ b/core/modules/qemu/data/opt/openslx/vmchooser/plugins/qemukvm/run-virt.include
@@ -20,7 +20,7 @@ declare -rg QEMU_PLUGIN_DIR="$(dirname "${BASH_SOURCE[0]}")"
declare -rg QEMU_INCLUDE_DIR="${QEMU_PLUGIN_DIR}/includes"
# Define which features the QEMU plugin supports
-declare -rg PLUGIN_FEATURES="firewall printer usb slxfloppy sound netshares"
+declare -rg PLUGIN_FEATURES="firewall printer usb slxfloppy sound"
run_plugin() {
# include kernel command line utils and functions
@@ -116,6 +116,9 @@ run_plugin() {
if $DEBUG; then
VIRTCMDOPTS+=( "-xmledit" )
fi
+ if notempty DMSD_COW_SESSION; then
+ VIRTCMDOPTS+=( "-manager" )
+ fi
if [ "${SHARE_REMAP_MODE}" -gt 1 ]; then
notempty HOME_SHARE_PATH && VIRTCMDOPTS+=( "-vmfssrc0" "${HOME_SHARE_PATH}" )
diff --git a/core/modules/qemu/runvirt-plugin-qemu/pom.xml b/core/modules/qemu/runvirt-plugin-qemu/pom.xml
index a2e5c24e..1d64e065 100644
--- a/core/modules/qemu/runvirt-plugin-qemu/pom.xml
+++ b/core/modules/qemu/runvirt-plugin-qemu/pom.xml
@@ -12,7 +12,7 @@
<url>https://git.openslx.org/openslx-ng/mltk.git/</url>
<scm>
- <connection>scm:git:git://git.openslx.org/openslx-ng/mltk.git</connection>
+ <connection>scm:git:https://git.openslx.org/openslx-ng/mltk.git</connection>
</scm>
<properties>
diff --git a/core/modules/qemu/runvirt-plugin-qemu/src/main/java/org/openslx/runvirt/plugin/qemu/App.java b/core/modules/qemu/runvirt-plugin-qemu/src/main/java/org/openslx/runvirt/plugin/qemu/App.java
index 0744c9b5..6e1efa61 100644
--- a/core/modules/qemu/runvirt-plugin-qemu/src/main/java/org/openslx/runvirt/plugin/qemu/App.java
+++ b/core/modules/qemu/runvirt-plugin-qemu/src/main/java/org/openslx/runvirt/plugin/qemu/App.java
@@ -237,7 +237,7 @@ public class App
vmViewer = new ViewerLookingGlassClient( vm, hypervisor, cmdLn.isDebugEnabled() );
} else {
// viewer for non-GPU passthrough (no framebuffer access) is required
- if ( cmdLn.isDebugEnabled() ) {
+ if ( cmdLn.isDebugEnabled() || cmdLn.isManagerEnabled() ) {
// create specific Virtual Machine Manager viewer if debug mode is enabled
vmViewer = new ViewerVirtManager( vm, hypervisor );
} else {
diff --git a/core/modules/qemu/runvirt-plugin-qemu/src/main/java/org/openslx/runvirt/plugin/qemu/cmdln/CommandLineArgs.java b/core/modules/qemu/runvirt-plugin-qemu/src/main/java/org/openslx/runvirt/plugin/qemu/cmdln/CommandLineArgs.java
index 396c0d8c..1236a997 100644
--- a/core/modules/qemu/runvirt-plugin-qemu/src/main/java/org/openslx/runvirt/plugin/qemu/cmdln/CommandLineArgs.java
+++ b/core/modules/qemu/runvirt-plugin-qemu/src/main/java/org/openslx/runvirt/plugin/qemu/cmdln/CommandLineArgs.java
@@ -171,6 +171,16 @@ public class CommandLineArgs
}
/**
+ * Returns the presence of the command line option {@link CmdLnOption#MANAGER}.
+ *
+ * @return presence of the command line option {@link CmdLnOption#MANAGER}.
+ */
+ public boolean isManagerEnabled()
+ {
+ return this.cmdLn.hasOption( CmdLnOption.MANAGER.getShortOption() );
+ }
+
+ /**
* Returns the state of the command line option {@link CmdLnOption#DEBUG_PTH}.
*
* @return state of the command line option {@link CmdLnOption#DEBUG_PTH}.
@@ -526,6 +536,7 @@ public class CommandLineArgs
+ " for testing and debugging purposes"),
VM_CPU_TOPO ( '1', "cputopo", 1, "Set pairs of CPUs belonging to the same thread, semi-colon separated."
+ " Each group can contain commas or dashes to mark ranges. E.g. 0,1;2-3;4;5;6;7;8,9,10,11" ),
+ MANAGER ( '2', "manager", 0, "Force using virt-manager even if not in debug mode" ),
VM_MAC0 ( 'a', "vmmac0", 1, "MAC address for the first network interface" ),
DEBUG ( 'b', "debug", 1, "Enable or disable debug mode" ),
VM_NCPUS ( 'c', "vmncpus", 1, "Number of virtual CPUs for the virtual machine" ),