fix #6330: ui: vm wizard: use a bigger default disk size for windows 11

The create wizard proposes a 32 GiB disk for every guest OS. That is
too small for Windows 11, whose setup refuses to install to it. The
reporter found that the 24H2 setup needs at least 53 GB, and Microsoft
documents 64 GB as the minimum storage requirement for Windows 11.

Add the disk size to the OS defaults, 64 for the 'win11' OS type and 32
like before for all others, and set it on the disk when the OS type is
selected, like the bus type. As with the bus type, this is only done if
there is a single disk.

Signed-off-by: Michal Fox <me@dualfroz.com>
This commit is contained in:
dualfroz committed 2026-10-03 03:10:15 +02:00
1 parent 6321c39953
commit cb9884615b
2 files changed
+5

No files matched your search

+4
View File
@@ -52,6 +52,7 @@ Ext.define('PVE.qemu.OSDefaults', {
virtio: 1,
},
scsihw: 'virtio-scsi-single',
diskSize: 32,
},
aarch64: {
@@ -66,6 +67,7 @@ Ext.define('PVE.qemu.OSDefaults', {
},
scsihw: 'virtio-scsi-single',
bios: 'ovmf',
diskSize: 32,
},
};
@@ -114,6 +116,8 @@ Ext.define('PVE.qemu.OSDefaults', {
parent: 'generic',
machine: 'q35',
bios: 'ovmf',
// Windows 11 requires at least 64 GB of storage
diskSize: 64,
});
me.getDefaults = function (ostype, arch = 'x86_64') {
+1
View File
@@ -54,6 +54,7 @@ Ext.define('PVE.qemu.OSPanel', {
me.setWidget('pveBusSelector', targetValues.busType);
me.setWidget('pveNetworkCardSelector', targetValues.networkCard);
me.setWidget('CPUModelSelector', targetValues.cputype);
me.setWidget('pveMultiHDPanel numberfield[name=disksize]', targetValues.diskSize);
var scsihw = targetValues.scsihw || '__default__';
this.getViewModel().set('current.scsihw', scsihw);
this.getViewModel().set('current.ostype', ostype);