[pve-devel] [PATCH pve_flutter_frontend 1/1] fix: qemu: `unknown` status shown when VM is in `prelaunch` status
Shan Shaji
s.shaji at proxmox.com
Tue Jun 3 16:56:42 CEST 2025
When the VM starts up, if the `Freeze CPU at startup` option value is
set to `true` the VM status is shown as `unknown`. However when testing
the same on web UI, the UI shows the `prelaunch` status when
hovering over the VM.
Additionally the resume option is missing in the app UI, which should
have been found under the power settings. To create feature parity a
new `prelaunch` value has been added in the `PveResourceStatusType`
enum. The new value is used to fix the unknown status and resume
option not being shown.
Signed-off-by: Shan Shaji <s.shaji at proxmox.com>
---
lib/widgets/pve_qemu_power_settings_widget.dart | 3 ++-
lib/widgets/pve_resource_status_chip_widget.dart | 3 +++
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/lib/widgets/pve_qemu_power_settings_widget.dart b/lib/widgets/pve_qemu_power_settings_widget.dart
index e402b83..b4c3c0a 100644
--- a/lib/widgets/pve_qemu_power_settings_widget.dart
+++ b/lib/widgets/pve_qemu_power_settings_widget.dart
@@ -40,7 +40,8 @@ class PveQemuPowerSettings extends StatelessWidget {
),
if ([
PveResourceStatusType.paused,
- PveResourceStatusType.suspended
+ PveResourceStatusType.suspended,
+ PveResourceStatusType.prelaunch,
].contains(qemuStatus) &&
!(state.currentStatus!.template ?? false))
ListTile(
diff --git a/lib/widgets/pve_resource_status_chip_widget.dart b/lib/widgets/pve_resource_status_chip_widget.dart
index c3d3f69..1b0038d 100644
--- a/lib/widgets/pve_resource_status_chip_widget.dart
+++ b/lib/widgets/pve_resource_status_chip_widget.dart
@@ -44,6 +44,9 @@ class StatusChip extends StatelessWidget {
statusColor = intermediateColor;
statusText = 'suspending';
break;
+ case PveResourceStatusType.prelaunch:
+ statusColor = offlineColor;
+ statusText = 'prelaunch';
default:
statusColor = offlineColor;
statusText = 'unknown';
--
2.39.5
More information about the pve-devel
mailing list