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

[Feature] V2P: warn when BIOS is selected for an EFI source

Open ThomasRie opened this issue 1 month ago • 4 comments

Describe the feature

Selecting firmware BIOS in the migration dialog for a source with firmware=efi is accepted without a warning. PegaProx sets bios: seabios and machine: pc, creates no EFI disk, and after a full copy the VM stops at "Booting from Hard Disk…". The log shows both values next to each other:

VMware hardware: firmware=efi, scsi=…ParaVirtualSCSIController, …
Proxmox config: bios=seabios, machine=pc, scsihw=virtio-scsi-single, …

A warning (or a confirmation) when the selected firmware does not match the source would prevent a VM that cannot boot.

Related: the hardware tab shows "Auto (bios)" also for EFI sources. Auto itself works (EFI source → ovmf, q35, EFI disk with keys), but the label suggests BIOS.

Use Case

Avoid a non-booting VM after a long copy, especially when several people use the dialog.

Alternatives considered

Leaving the firmware on Auto. Recovery works with qm set <vmid> --bios ovmf --machine q35 --efidisk0 ….

How important is this for you?

Nice to have.

Checklist

  • [x] I have searched existing issues and discussions to make sure this hasn't been requested before
  • [x] I understand this is a wishlist and not a work order — volunteers decide what gets built, and when
  • [x] I'm aware that "this should be easy, it's only a few lines" has never once turned out to be true 🪄

ThomasRie avatar Nov 05 '26 14:11 ThomasRie

Makes sense, and thanks for the log lines. A mismatch warning before a long copy is noted for the maintainers.

On the label: the dialog prints "Auto" with the firmware from the migration plan and falls back to the word bios when the plan has none, which would explain "Auto (bios)" on your EFI source, while the migration itself detects EFI separately. I haven't traced why the plan comes back without it for your VM, so that part is still open.

Jan-Philipp

Ghoszbust3r avatar Nov 05 '26 18:11 Ghoszbust3r

Thanks! Looks like #1265 covers exactly that: get_migration_plan didn't return hardware, so the dialog fell back to bios. Happy to test it in the lab once it's in Testing.

Separate from the label: with firmware left on "Auto", the backend has a related problem (no efidisk0 after live mirror). I opened #1268 for that.

ThomasRie avatar Nov 06 '26 07:11 ThomasRie

Yes, that's the one. #1265 is merged into Testing now, so the plan carries the source's hardware and the dialog should show "Auto (efi)" for an EFI VM; it comes with the next release, and a lab run from Testing before that is very welcome. The mismatch warning itself is still a separate idea, and the missing efidisk0 stays in #1268.

Jan-Philipp

Ghoszbust3r avatar Nov 07 '26 13:11 Ghoszbust3r

The warning is on Testing now and comes with the next release: an EFI guest with Legacy BIOS (SeaBIOS) chosen, or a BIOS guest with UEFI (OVMF), gets a warning in the review step of the wizard and in the bulk check, saying which firmware matches the source. A run started over the API without a dry run logs it and keeps it on its result.

Marcus

mkellermann97 avatar Nov 26 '26 23:11 mkellermann97