summaryrefslogtreecommitdiffstats
path: root/core/modules/qemu/data/opt/openslx/vmchooser/plugins/qemu/run-virt.include
diff options
context:
space:
mode:
authorManuel Bentele2021-03-25 11:25:18 +0100
committerManuel Bentele2021-03-25 11:25:18 +0100
commit24d4ebdce0a3c022c7ae7c90139235bb4c8dad67 (patch)
tree03435b204d0d3ccd0311c63bb3d2983faf404273 /core/modules/qemu/data/opt/openslx/vmchooser/plugins/qemu/run-virt.include
parent[qemu]: Add Libvirt XML documents as dependencies (diff)
downloadmltk-24d4ebdce0a3c022c7ae7c90139235bb4c8dad67.tar.gz
mltk-24d4ebdce0a3c022c7ae7c90139235bb4c8dad67.tar.xz
mltk-24d4ebdce0a3c022c7ae7c90139235bb4c8dad67.zip
[qemu] Add filtering/transformation of config files and VM management
Diffstat (limited to 'core/modules/qemu/data/opt/openslx/vmchooser/plugins/qemu/run-virt.include')
-rw-r--r--core/modules/qemu/data/opt/openslx/vmchooser/plugins/qemu/run-virt.include7
1 files changed, 5 insertions, 2 deletions
diff --git a/core/modules/qemu/data/opt/openslx/vmchooser/plugins/qemu/run-virt.include b/core/modules/qemu/data/opt/openslx/vmchooser/plugins/qemu/run-virt.include
index 5b320bcc..90a00c6e 100644
--- a/core/modules/qemu/data/opt/openslx/vmchooser/plugins/qemu/run-virt.include
+++ b/core/modules/qemu/data/opt/openslx/vmchooser/plugins/qemu/run-virt.include
@@ -19,7 +19,7 @@
declare -rg QEMU_PLUGIN_DIR="$(dirname "${BASH_SOURCE[0]}")"
declare -rg QEMU_INCLUDE_DIR="${QEMU_PLUGIN_DIR}/includes"
-# Define which features the VMware plugin supports
+# Define which features the QEMU plugin supports
declare -rg PLUGIN_FEATURES="firewall printer usb slxfloppy sound netshares"
run_plugin() {
@@ -45,5 +45,8 @@ run_plugin() {
isset CDROM_1 && VIRTCMDOPTS+=( "-vmcdrom1" "${CDROM_1}" )
isset SERIAL0 && VIRTCMDOPTS+=( "-vmserial0" "${SERIAL0}" )
isset PARALLEL0 && VIRTCMDOPTS+=( "-vmparallel0" "${PARALLEL0}" )
- isset SOUND_DEV && VIRTCMDOPTS+=( "-vmsound0" "${SOUND_DEV}" )
+ isset HOME_SHARE_PATH && VIRTCMDOPTS+=( "-vmfssrc0" "${HOME_SHARE_PATH}" )
+ isset HOME_SHARE_NAME && VIRTCMDOPTS+=( "-vmfstgt0" "${HOME_SHARE_NAME}" )
+ isset COMMON_SHARE_PATH && VIRTCMDOPTS+=( "-vmfssrc1" "${COMMON_SHARE_PATH}" )
+ isset COMMON_SHARE_NAME && VIRTCMDOPTS+=( "-vmfstgt1" "${COMMON_SHARE_NAME}" )
}