project-pegaprox icon indicating copy to clipboard operation
project-pegaprox copied to clipboard

[Bug] VM Creation Wizzard - Failure when _ in Datastorename for EFI Disk and Using Quick Template

Open cybrwerk opened this issue 4 months ago • 1 comments

Describe the bug

When Creating a VM using the quick template "Windows 11" or "Windows 2022"

Then EFI-Disk with _ in Datastorename result in following error while creating VM

{"message":"Parameter verification failed.\n","data":null,"errors":{"efidisk0":"invalid format - format error\nefidisk0.file: invalid format - unable to parse volume ID ':1'\n\n"}}

Selecting another Datastore like local-zfs works

Steps to Reproduce

  1. Create New VM with Wizzard selecting quick template Windows 2022
  2. Assign EFI Disk with a Datastorename which includes a _
  3. Error ist thrown on creating VM

Expected behavior

VM should be created

Environment

  • PegaProx Version: 0.9.14
  • Installation Method: Other with Script
  • OS: Ubuntu 24.04
  • Browser: Firefox and Chrome
  • Behind Reverse Proxy? Yes nginx
  • UI? Corporate

Logs


Screenshots

Checklist

  • [x] I have searched existing issues to make sure this is not a duplicate
  • [x] I am using the latest version of PegaProx

cybrwerk avatar Jul 08 '26 09:07 cybrwerk

Good catch — fixed on Testing (ships in the next release). The quick templates flip BIOS to OVMF but don't fill in the EFI-disk storage, and the dropdown only shows your main storage as a fallback without actually committing it, so the create was sending an empty EFI storage → PVE choked on efidisk0=:1. The backend now falls back an empty EFI storage to the VM's main storage, so it works whether or not you touch that field. The underscore turned out to be a red herring — it was the blank EFI storage, not the name. Verified it end-to-end (OVMF VM, empty EFI storage → efidisk0 lands on the main storage, no :1). opencollective.com/pegaprox if this saved you a round with a Windows VM.

— Marcus

mkellermann97 avatar Jul 08 '26 13:07 mkellermann97