diff --git a/emhttp/plugins/dynamix.vm.manager/templates/Custom.form.php b/emhttp/plugins/dynamix.vm.manager/templates/Custom.form.php index d9a9eb22a..8b8129422 100644 --- a/emhttp/plugins/dynamix.vm.manager/templates/Custom.form.php +++ b/emhttp/plugins/dynamix.vm.manager/templates/Custom.form.php @@ -229,6 +229,7 @@ array_update_recursive($arrExistingConfig, $arrUpdatedConfig); $arrConfig = array_replace_recursive($arrExistingConfig, $arrUpdatedConfig); $xml = custom::createXML('domain',$arrConfig)->saveXML(); + $xml = $lv->appendqemucmdline($xml,$_POST["qemucmdline"]) ; } else { echo json_encode(['error' => $error]); exit; @@ -291,6 +292,7 @@ +
| _(QEMU Command Line)_: | ++ |
++If you need to add QEMU arguments to the XML
+ Examples can be found on the Libvirt page => https://libvirt.org/kbase/qemu-passthrough-security.html + +
| @@ -1950,7 +1966,7 @@ $(function() { if (audio && !sound.includes(audio)) form.append(''); }); - var postdata = form.find('input,select').serialize().replace(/'/g,"%27"); + var postdata = form.find('input,select,textarea[name="qemucmdline"').serialize().replace(/'/g,"%27"); // keep checkbox visually unchecked form.find('input[name="usb[]"],input[name="usbopt[]"],input[name="pci[]"]').each(function(){ |