From c3d88a7dd80d746c66e97e347c493ce4221da863 Mon Sep 17 00:00:00 2001 From: SimonFair <39065407+SimonFair@users.noreply.github.com> Date: Sun, 26 Oct 2025 17:10:27 +0000 Subject: [PATCH] Bug: Cdrom bus IDE for Q35 is invalid set to SATA --- .../plugins/dynamix.vm.manager/templates/Custom.form.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/emhttp/plugins/dynamix.vm.manager/templates/Custom.form.php b/emhttp/plugins/dynamix.vm.manager/templates/Custom.form.php index bde11c7c7..6e08339a4 100644 --- a/emhttp/plugins/dynamix.vm.manager/templates/Custom.form.php +++ b/emhttp/plugins/dynamix.vm.manager/templates/Custom.form.php @@ -2484,6 +2484,13 @@ $(function() { }); + $("#vmform #domain_machine").change(function changeMachineEvent(){ + // Cdrom Bus: select IDE for i440 and SATA for q35 + if ($(this).val().indexOf('q35') != -1) { + $('#vmform .cdrom_bus').val('sata'); + } + }); + $("#vmform .domain_vcpu").change(function changeVCPUEvent(){ var $cores = $("#vmform .domain_vcpu:checked"); if ($cores.length < 1) {