Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Read (and write) the various OVMF_VARS.fd formats #170

Open
vathpela opened this issue Feb 13, 2021 · 3 comments
Open

Read (and write) the various OVMF_VARS.fd formats #170

vathpela opened this issue Feb 13, 2021 · 3 comments

Comments

@vathpela
Copy link
Contributor

OVMF and AAVMF store variables on disk in a format related to the same format EDK2 stores them in on flash, in a file names OVMF_VARS.fd. It would be useful to be able to read and write variables in those formats.

@frozencemetery frozencemetery changed the title It'd be handy to be able to read (and write) the various OVMF_VARS.fd formats. Read (and write) the various OVMF_VARS.fd formats Apr 1, 2022
@rowlap
Copy link

rowlap commented Feb 10, 2023

Is this already handled by --fromfile?

# efivar --list --fromfile my-test-vm.OVMF_VARS.fd
184220a2-e14c-4497-85bb-1490a9a1f0d3-CpuNvramData
8be4df61-93ca-11d2-aa0d-00e098032b8c-BootOrder
###etc.

@baloo
Copy link

baloo commented Feb 10, 2023

I've had success playing with https://github.com/hlandau/ovmfvartool we integrated that in the nixos-test process over at nixos. Makes it easy to play with UEFI vars.

@mheese
Copy link

mheese commented May 18, 2023

Because I'm seeing this issue here and @baloo is pointing out ovmfvartool, I can also highly recommend https://gitlab.com/kraxel/virt-firmware . It's sort of focused on provisioning Secure Boot parameters/certs/things, but it also let's you change/write existing variables. I have not found a way to add a variable with it though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants