summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2025-03-24 11:25:32 +0100
committerSimon Rettberg2025-03-24 11:25:32 +0100
commit72e072461d5c1d766710b724ed44367bbcd196db (patch)
tree4c5b61d63bf5c45fe924cd49910312e358be8294
parent[qemu] libvirtd isn't actually needed (diff)
downloadmltk-72e072461d5c1d766710b724ed44367bbcd196db.tar.gz
mltk-72e072461d5c1d766710b724ed44367bbcd196db.tar.xz
mltk-72e072461d5c1d766710b724ed44367bbcd196db.zip
[qemu] Pass usb redir autoconnect to run-virt javatool (TBD)
-rw-r--r--core/modules/qemu/data/opt/openslx/vmchooser/plugins/qemukvm/run-virt.include5
1 files changed, 5 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 b6d3eb13..e578de88 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
@@ -124,6 +124,11 @@ run_plugin() {
VIRTCMDOPTS+=( "-xmledit" )
fi
+ # See if there are any USB devices connected that we want to pass through immediately
+ # --spice-usbredir-redirect-on-connect="0x03,-1,-1,-1,0|-1,-1,-1,-1,1"
+ VIRTCMDOPTS+=( $( get_usb_devices '-usbredir -1,%VENDOR%,%PRODUCT%,-1,1' ) )
+
+
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}" )