Commit Graph
10 Commits
Author SHA1 Message Date
dualfroz f1c3f66086 fix #5871: ui: resize disk: show current and new size
The resize dialogs of VMs and containers only ask for the size
increment, so users have to look up the current size of the disk in
the config to know which size the disk will have afterwards.

Load the config of the guest in the dialogs and show the current size
of the disk, and the size it will have with the entered increment,
which gets updated while typing. As the dialogs load the size
themselves, callers do not need to change.

The size of the config is in the 'disk-size' format, where the units
are binary, while Proxmox.Utils.parse_size_unit() takes 'G' as GB, so
add a small parser for it, like parse_size() of PVE::JSONSchema.

Signed-off-by: Michal Fox <me@dualfroz.com>
2026-10-03 03:28:43 +02:00
upstream b72e8c92b5 Upstream proxmox-git/pve-manager state of the touched files before 8834173a41 2026-10-03 03:28:43 +02:00
dualfroz cb9884615b 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>
2026-10-03 03:10:15 +02:00
upstream 6321c39953 Upstream proxmox-git/pve-manager state of the touched files before 9fbd2611d6 2026-10-03 03:10:15 +02:00
dualfroz 4d1944f2de ui: qemu pci edit: remove the default PCI domain again before saving
The PCI selector shows the IDs of the devices including the domain, so
the default '0000' domain was removed again before saving, as it is
optional in the hostpci option.

Since the refactoring in commit a7ec3666 ("ui: qemu/PCI Edit: code
cleanup/refactoring/modernize"), the result of the replace call is not
assigned anymore, so the domain is kept and a device that was
configured as '01:00.0' gets saved as '0000:01:00.0' on any edit of
the passthrough device.

Assign the result again, so the domain is only kept if it is not the
default one, like before.

Fixes: a7ec3666 ("ui: qemu/PCI Edit: code cleanup/refactoring/modernize")
Signed-off-by: Michal Fox <me@dualfroz.com>
2026-10-03 01:27:45 +02:00
upstream 673ea85f23 Upstream proxmox-git/pve-manager state of the touched files before 7e127c68a1 2026-10-03 01:27:45 +02:00
dualfroz 198fee27a6 fix #6009: ui: drop the 128 TiB limit for disk sizes
The size fields for creating and resizing disks of VMs and mount points
of containers only accepted up to 128 TiB. The API does not have such a
limit, so larger disks could only be created or resized on the CLI.

Remove the limit from the size fields, like it was done for the memory
fields in commit fdce7d56 ("Remove swap/memory limit in the Manager,
fixes #1799").

Signed-off-by: Michal Fox <me@dualfroz.com>
2026-10-02 16:40:54 +02:00
upstream f97a6e194c Upstream proxmox-git/pve-manager state of the touched files before 513c9bc03e 2026-10-02 16:40:54 +02:00
dualfroz 7ed7d7cdb0 fix #5798: ui: qemu pci edit: fix warning for shared IOMMU groups
When selecting a raw PCI device, a warning should be shown if the device
is not in a separate IOMMU group. To not count the other functions of
the selected device itself, the check only compares the bus and device
part of the PCI IDs, by taking their first five characters.

But since the PCI selector also shows the domain, for example
'0000:01:00.0', the first five characters are just the domain. So all
devices of the same domain were treated as functions of the selected
device and the warning was never shown.

Compare everything before the function instead, so the domain, bus and
device, like the IOMMU check in the PCI mapping editor does.

Fixes: f36240c5 ("gui: pci passthrough: consider domain in PCISelector")
Signed-off-by: Michal Fox <me@dualfroz.com>
2026-10-02 16:39:29 +02:00
upstream 886410eb9f Upstream proxmox-git/pve-manager state of the touched files before 0bbaa337cd 2026-10-02 16:39:29 +02:00