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

Implement persistent UEFI settings using BHYVE_UEFI_VARS #101

Open
yaroslav-gwit opened this issue Dec 27, 2023 · 0 comments
Open

Implement persistent UEFI settings using BHYVE_UEFI_VARS #101

yaroslav-gwit opened this issue Dec 27, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@yaroslav-gwit
Copy link
Owner

Looks like in FreeBSD RELEASE v14 we have the ability to save the UEFI settings into a separate UEFI firmware file:

bhyve -c 2 -m 4g -w -H \\
  -s 0,hostbridge \\
  -s 31,lpc -p com1,stdio \\
  -l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI_CODE.fd,BHYVE_UEFI_VARS.fd

I'll add a new config flag called persistent_uefi_vars (true or false) to activate and use it with Hoster, but it will not be default, because it's not available in FreeBSD RELEASE v13.

Also, keep in mind that BHYVE_UEFI_VARS.fd needs to be copied into the VM dataset's folder (one copy per VM) in order to be used (Hoster will do it automatically, of course), so at some point you might want to remove it in order to migrate to a newer file version automatically.

@yaroslav-gwit yaroslav-gwit added the enhancement New feature or request label Dec 27, 2023
@yaroslav-gwit yaroslav-gwit self-assigned this Dec 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant