![]() Linux can boot from EFI but you generally don’t want to unless the boot device is larger than 2TB. ![]() Apparently configuration mistakes with EFI can mess up the Windows installation, so be careful and backup the Windows installation regularly! Also having it read-only is necessary if you want to run KVM as non-root.Īs an experiment I tried booting without the OVMF_VARS.fd file, it didn’t boot and then even after configuring it to use the OVMF_VARS.fd file again Windows gave a boot error about the “boot configuration data file” that required booting from recovery media. ![]() For a basic boot you don’t need to change variables so you want it read-only. Allowing writes to that file means that the VM boot process (and maybe later) can change EFI variables that affect later boots and other VMs if they all share the same file. Note that some of the documentation on this doesn’t have the OVMF_VARS.fd file set to readonly. If all you want to do is boot from an image of a disk with a GPT partition table then you just install the package ovmf and add something like the following to your KVM start script: UEFI="-drive if=pflash,format=raw,readonly,file=/usr/share/OVMF/OVMF_CODE.fd -drive if=pflash,format=raw,readonly,file=/usr/share/OVMF/OVMF_VARS.fd" UEFI is big and complex, but most of what it does isn’t needed at all.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |