diff options
author | Simon Rettberg | 2023-06-22 15:28:51 +0200 |
---|---|---|
committer | Simon Rettberg | 2023-06-22 15:28:51 +0200 |
commit | 7516507b29d48c3d8d08ac568eb3cde86f4d4b8f (patch) | |
tree | f3863cc6b6fa7ced908683c46e3d7bd30bd0b09a /core/modules/qemu/data | |
parent | [run-virt] Redirect entire VIRTCMD output (+stderr) (diff) | |
download | mltk-7516507b29d48c3d8d08ac568eb3cde86f4d4b8f.tar.gz mltk-7516507b29d48c3d8d08ac568eb3cde86f4d4b8f.tar.xz mltk-7516507b29d48c3d8d08ac568eb3cde86f4d4b8f.zip |
[qemu] Add option to edit XML before launching
If run-virt is in debug mode, a text editor showing the final XML will
be opened before launching libvirt/qemu.
Either pass --debug to run-virt (lol), or set SLX_DEBUG_MODE='ON'
in /opt/openslx/config
Diffstat (limited to 'core/modules/qemu/data')
-rw-r--r-- | core/modules/qemu/data/opt/openslx/vmchooser/plugins/qemukvm/run-virt.include | 4 |
1 files changed, 4 insertions, 0 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 c37a10e0..2b1853e2 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 @@ -103,6 +103,10 @@ run_plugin() { && VIRTCMDOPTS+=( "-vmparallel0" "${PARALLEL0}" ) notempty pt_gpu_mdev_id && VIRTCMDOPTS+=( "-vmilmdevid0" "${pt_gpu_mdev_id}" ) + if $debug; then + VIRTCMDOPTS+=( "-xmledit" ) + fi + if [ "${SHARE_REMAP_MODE}" -gt 1 ]; then notempty HOME_SHARE_PATH && VIRTCMDOPTS+=( "-vmfssrc0" "${HOME_SHARE_PATH}" ) notempty HOME_SHARE_NAME && VIRTCMDOPTS+=( "-vmfstgt0" "${HOME_SHARE_NAME}" ) |