all lists on lists.proxmox.com
 help / color / mirror / Atom feed
* [PATCH pve-manager] ui: qemu: wizard: re-add media=cdrom for second VirtIO drivers ISO
@ 2026-05-07  6:55 Arthur Bied-Charreton
  2026-05-07  7:05 ` Dominik Csapak
  2026-05-07  9:28 ` applied: " Thomas Lamprecht
  0 siblings, 2 replies; 4+ messages in thread
From: Arthur Bied-Charreton @ 2026-05-07  6:55 UTC (permalink / raw)
  To: pve-devel; +Cc: d.riley

Commit f196d28f moved the ISO selector out of OSTypeInputPanel to a
new OSPanel component, but left the onGetValues hook that appends the
`media=cdrom` behind on OSTypeInputPanel, where ide0 now no longer
appears.

As a result, creating a Windows guest with the "Add additional drive for
VirtIO drivers" checkbox enabled fails due to the missing explicit
media=cdrom.

Move the now-unreachable onGetValues logic from OSTypeInputPanel onto
the wrapper inputpanel that now actually holds the ISO selector in
OSPanel.

Reported-by: David Riley <d.riley@proxmox.com>
Signed-off-by: Arthur Bied-Charreton <a.bied-charreton@proxmox.com>
---
 www/manager6/qemu/OSPanel.js    | 10 ++++++++++
 www/manager6/qemu/OSTypeEdit.js | 11 -----------
 2 files changed, 10 insertions(+), 11 deletions(-)

diff --git a/www/manager6/qemu/OSPanel.js b/www/manager6/qemu/OSPanel.js
index be0e5b85..556ad4c3 100644
--- a/www/manager6/qemu/OSPanel.js
+++ b/www/manager6/qemu/OSPanel.js
@@ -130,6 +130,16 @@ Ext.define('PVE.qemu.OSPanel', {
                 },
                 {
                     xtype: 'inputpanel',
+                    onGetValues: function (values) {
+                        if (values.ide0) {
+                            let drive = {
+                                media: 'cdrom',
+                                file: values.ide0,
+                            };
+                            values.ide0 = PVE.Parser.printQemuDrive(drive);
+                        }
+                        return values;
+                    },
                     items: [
                         {
                             xtype: 'proxmoxcheckbox',
diff --git a/www/manager6/qemu/OSTypeEdit.js b/www/manager6/qemu/OSTypeEdit.js
index 5c79164f..5a2f2ae6 100644
--- a/www/manager6/qemu/OSTypeEdit.js
+++ b/www/manager6/qemu/OSTypeEdit.js
@@ -36,17 +36,6 @@ Ext.define('PVE.qemu.OSTypeInputPanel', {
         }
     },
 
-    onGetValues: function (values) {
-        if (values.ide0) {
-            let drive = {
-                media: 'cdrom',
-                file: values.ide0,
-            };
-            values.ide0 = PVE.Parser.printQemuDrive(drive);
-        }
-        return values;
-    },
-
     initComponent: function () {
         var me = this;
 
-- 
2.47.3




^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-05-07  9:28 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-07  6:55 [PATCH pve-manager] ui: qemu: wizard: re-add media=cdrom for second VirtIO drivers ISO Arthur Bied-Charreton
2026-05-07  7:05 ` Dominik Csapak
2026-05-07  7:20   ` David Riley
2026-05-07  9:28 ` applied: " Thomas Lamprecht

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal