Convert Ubuntu VM from SeaBIOS to OVMF

Odinos

Member
Dec 18, 2019
2
0
21
Netherlands
I have an active Ubuntu server 22 VM that I want to pass through a GPU (p2000) for hardware acceleration.

Now when I set up this VM a long time ago I used the default machine (i440fx) and boot type (SeaBIOS), but the docs don't recommend those options for passthrough.

The machine type was easy to switch, but I'm stuck now at converting to OVMF (UEFI) boot.

I've switched the BIOS option to OVMF and added an EFI disk. Now I can't figure out how to install GRUB to the EFI system partition and if there are any other steps required.