feat: add persistent VM state storage guidance (#1227)

When Longhorn installation is deferred, vmstate-persistence StorageClass is not created. Add prerequisite guidance in the VM form:

- Disable persistent TPM and EFI options when vmstate-persistence is unavailable
- Create mode: clear selections and show banner explaining how to add
  Longhorn disk or create vmstate-persistence SC manually
- Edit mode: preserve existing values, keep options disabled, show banner
- Hide banner when vmstate-persistence exists or in View mode

Signed-off-by: pohanhuang <pohan.huang@suse.com>
This commit is contained in:
Po Han Huang authored and GitHub committed 2026-11-18 08:24:39 +08:00
1 parent aa5a501c29
commit b3961a3483
3 files changed
+189

No files matched your search

+6
View File
@@ -829,6 +829,12 @@ harvester:
tpmPersistentState: TPM Persistent State
efiEnabled: Booting in EFI mode
efiPersistentState: EFI Persistent State
persistentStateStorageClassUnavailable:
prefix: Persistent TPM and EFI state require the vmstate-persistence StorageClass. Add a Longhorn disk on the
host: Hosts page
middle: or create the class on the
storageClass: Storage Classes page
suffix: .
secureBoot: Secure Boot
usbTip: Provides an absolute pointer device which often helps with getting a consistent mouse cursor position in VNC.
sshTitle: Add Public SSH Key