List and modify the NVRAM content of a virtual machine.
The "modifynvram" commands are for experts who want to inspect and modify the UEFI variable store of a virtual machine. Any mistakes done here can bring the virtual machine in a non working state.
VBoxManage modifynvram <uuid|vmname> enrollpk [--platform-key=filename] [--owner-uuid=uuid]
Enrolls a custom platform key provided by the user required for UEFI secure boot. The following commands use openssl to generate a new platform key:
$ openssl req -new -x509 -newkey rsa:2048 -keyout PK.key -out PK.crt
$ openssl x509 -in PK.crt -out PK.cer -outform DER
--platform-key=filename
The platform key provided as a DER encoded X.509 signature.
--owner-uuid=uuid
The UUID identifying the owner of the platform key.
VBoxManage modifynvram <uuid|vmname> queryvar [--name=name] [--filename=filename]
Queries the content of a given UEFI variable identified by its name.
--name=name
UEFI variable name to query.
--filename=filename
Where to store the content of the variable upon success. This is optional, if omitted the content will be dumped to the terminal as a hex dump.