VirtualBox

source: vbox/trunk/doc/manual/en_US/man_VBoxManage-modifynvram.xml@ 98110

Last change on this file since 98110 was 98103, checked in by vboxsync, 23 months ago

Copyright year updates by scm.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 9.3 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<!--
3 manpage, user manual, usage: VBoxManage modifynvram
4-->
5<!--
6 Copyright (C) 2021-2023 Oracle and/or its affiliates.
7
8 This file is part of VirtualBox base platform packages, as
9 available from https://www.virtualbox.org.
10
11 This program is free software; you can redistribute it and/or
12 modify it under the terms of the GNU General Public License
13 as published by the Free Software Foundation, in version 3 of the
14 License.
15
16 This program is distributed in the hope that it will be useful, but
17 WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 General Public License for more details.
20
21 You should have received a copy of the GNU General Public License
22 along with this program; if not, see <https://www.gnu.org/licenses>.
23
24 SPDX-License-Identifier: GPL-3.0-only
25-->
26<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
27 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"[
28<!ENTITY % all.entities SYSTEM "all-entities.ent">
29%all.entities;
30]>
31<refentry id="vboxmanage-modifynvram" lang="en">
32 <refentryinfo>
33 <pubdate>$Date: 2023-01-17 14:15:46 +0000 (Tue, 17 Jan 2023) $</pubdate>
34 <title>VBoxManage modifynvram</title>
35 </refentryinfo>
36
37 <refmeta>
38 <refentrytitle>VBoxManage-modifynvram</refentrytitle>
39 <manvolnum>1</manvolnum>
40 </refmeta>
41
42 <refnamediv>
43 <refname>VBoxManage-modifynvram</refname>
44 <refpurpose>List and modify the NVRAM content of a virtual machine</refpurpose>
45 <refclass>&product-name;</refclass>
46 </refnamediv>
47
48 <refsynopsisdiv>
49 <cmdsynopsis id="synopsis-vboxmanage-modifynvram-inituefivarstore">
50 <command>VBoxManage modifynvram</command>
51 <arg choice="req"><replaceable>uuid|vmname</replaceable></arg>
52 <arg choice="plain">inituefivarstore</arg>
53 </cmdsynopsis>
54 <cmdsynopsis id="synopsis-vboxmanage-modifynvram-enrollmssignatures">
55 <command>VBoxManage modifynvram</command>
56 <arg choice="req"><replaceable>uuid|vmname</replaceable></arg>
57 <arg choice="plain">enrollmssignatures</arg>
58 </cmdsynopsis>
59 <cmdsynopsis id="synopsis-vboxmanage-modifynvram-enrollorclpk">
60 <command>VBoxManage modifynvram</command>
61 <arg choice="req"><replaceable>uuid|vmname</replaceable></arg>
62 <arg choice="plain">enrollorclpk</arg>
63 </cmdsynopsis>
64 <cmdsynopsis id="synopsis-vboxmanage-modifynvram-enrollpk">
65 <command>VBoxManage modifynvram</command>
66 <arg choice="req"><replaceable>uuid|vmname</replaceable></arg>
67 <arg choice="plain">enrollpk</arg>
68 <arg>--platform-key=<replaceable>filename</replaceable></arg>
69 <arg>--owner-uuid=<replaceable>uuid</replaceable></arg>
70 </cmdsynopsis>
71 <cmdsynopsis id="synopsis-vboxmanage-modifynvram-listvars">
72 <command>VBoxManage modifynvram</command>
73 <arg choice="req"><replaceable>uuid|vmname</replaceable></arg>
74 <arg choice="plain">listvars</arg>
75 </cmdsynopsis>
76 <cmdsynopsis id="synopsis-vboxmanage-modifynvram-queryvar">
77 <command>VBoxManage modifynvram</command>
78 <arg choice="req"><replaceable>uuid|vmname</replaceable></arg>
79 <arg choice="plain">queryvar</arg>
80 <arg>--name=<replaceable>name</replaceable></arg>
81 <arg>--filename=<replaceable>filename</replaceable></arg>
82 </cmdsynopsis>
83 <cmdsynopsis id="synopsis-vboxmanage-modifynvram-deletevar">
84 <command>VBoxManage modifynvram</command>
85 <arg choice="req"><replaceable>uuid|vmname</replaceable></arg>
86 <arg choice="plain">deletevar</arg>
87 <arg>--name=<replaceable>name</replaceable></arg>
88 <arg>--owner-uuid=<replaceable>uuid</replaceable></arg>
89 </cmdsynopsis>
90 <cmdsynopsis id="synopsis-vboxmanage-modifynvram-changevar">
91 <command>VBoxManage modifynvram</command>
92 <arg choice="req"><replaceable>uuid|vmname</replaceable></arg>
93 <arg choice="plain">changevar</arg>
94 <arg>--name=<replaceable>name</replaceable></arg>
95 <arg>--filename=<replaceable>filename</replaceable></arg>
96 </cmdsynopsis>
97 </refsynopsisdiv>
98
99 <refsect1>
100 <title>Description</title>
101
102 <para>The "modifynvram" commands are for experts who want to inspect and modify the
103 UEFI variable store of a virtual machine. Any mistakes done here can bring the virtual
104 machine in a non working state.</para>
105
106 <refsect2 id="vboxmanage-modifynvram-common-options">
107 <title>Common options</title>
108 <remark role="help-scope" condition="GLOBAL"/>
109 <para>The subcommands of <command>modifynvram</command> all operate on a running virtual
110 machine:</para>
111 <variablelist>
112 <varlistentry>
113 <term><replaceable>uuid|vmname</replaceable></term>
114 <listitem><para>Either the UUID or the name (case sensitive) of a VM.</para></listitem>
115 </varlistentry>
116 </variablelist>
117 </refsect2>
118
119 <refsect2 id="vboxmanage-modifynvram-inituefivarstore">
120 <title>modifynvram inituefivarstore</title>
121 <remark role="help-copy-synopsis"/>
122 <para>
123 Iniitalizes the UEFI variable store to a default state. Any previous existing variable
124 store is deleted. Use with extreme caution!
125 </para>
126 </refsect2>
127
128 <refsect2 id="vboxmanage-modifynvram-enrollmssignatures">
129 <title>modifynvram enrollmssignatures</title>
130 <remark role="help-copy-synopsis"/>
131 <para>
132 Enrolls the default Microsoft KEK and DB signatures required for UEFI secure boot.
133 </para>
134 </refsect2>
135
136 <refsect2 id="vboxmanage-modifynvram-enrollorclpk">
137 <title>modifynvram enrollorclpk</title>
138 <remark role="help-copy-synopsis"/>
139 <para>
140 Enrolls the default platform key provided by Oracle required for UEFI secure boot.
141 </para>
142 </refsect2>
143
144 <refsect2 id="vboxmanage-modifynvram-enrollpk">
145 <title>modifynvram enrollpk</title>
146 <remark role="help-copy-synopsis"/>
147 <para>
148 Enrolls a custom platform key provided by the user required for UEFI secure boot.
149 The following commands use openssl to generate a new platform key:
150 </para>
151<screen>$ openssl req -new -x509 -newkey rsa:2048 -keyout PK.key -out PK.crt</screen>
152<screen>$ openssl x509 -in PK.crt -out PK.cer -outform DER</screen>
153 <variablelist>
154 <varlistentry>
155 <term><option>--platform-key=<replaceable>filename</replaceable></option></term>
156 <listitem><para>The platform key provided as a DER encoded X.509 signature.</para>
157 </listitem>
158 </varlistentry>
159 <varlistentry>
160 <term><option>--owner-uuid=<replaceable>uuid</replaceable></option></term>
161 <listitem><para>The UUID identifying the owner of the platform key.</para>
162 </listitem>
163 </varlistentry>
164 </variablelist>
165 </refsect2>
166
167 <refsect2 id="vboxmanage-modifynvram-listvars">
168 <title>modifynvram listvars</title>
169 <remark role="help-copy-synopsis"/>
170 <para>
171 Lists all UEFI variables in the virtual machines's store along with their owner UUID.
172 </para>
173 </refsect2>
174
175 <refsect2 id="vboxmanage-modifynvram-queryvar">
176 <title>modifynvram queryvar</title>
177 <remark role="help-copy-synopsis"/>
178 <para>
179 Queries the content of a given UEFI variable identified by its name.
180 </para>
181 <variablelist>
182 <varlistentry>
183 <term><option>--name=<replaceable>name</replaceable></option></term>
184 <listitem><para>UEFI variable name to query.</para>
185 </listitem>
186 </varlistentry>
187 <varlistentry>
188 <term><option>--filename=<replaceable>filename</replaceable></option></term>
189 <listitem>
190 <para>
191 Where to store the content of the variable upon success. This is optional,
192 if omitted the content will be dumped to the terminal as a hex dump.
193 </para>
194 </listitem>
195 </varlistentry>
196 </variablelist>
197 </refsect2>
198
199 <refsect2 id="vboxmanage-modifynvram-deletevar">
200 <title>modifynvram deletevar</title>
201 <remark role="help-copy-synopsis"/>
202 <para>
203 Deletes the given variable identified by its name and owner UUID.
204 </para>
205 <variablelist>
206 <varlistentry>
207 <term><option>--name=<replaceable>name</replaceable></option></term>
208 <listitem><para>UEFI variable name to delete.</para>
209 </listitem>
210 </varlistentry>
211 <varlistentry>
212 <term><option>--owner-uuid=<replaceable>uuid</replaceable></option></term>
213 <listitem><para>The UUID identifying the owner of the variable to delete.</para>
214 </listitem>
215 </varlistentry>
216 </variablelist>
217 </refsect2>
218
219 <refsect2 id="vboxmanage-modifynvram-changevar">
220 <title>modifynvram changevar</title>
221 <remark role="help-copy-synopsis"/>
222 <para>
223 Changes the UEFI variable content to the one form the given file.
224 </para>
225 <variablelist>
226 <varlistentry>
227 <term><option>--name=<replaceable>name</replaceable></option></term>
228 <listitem><para>UEFI variable name to change the data for.</para>
229 </listitem>
230 </varlistentry>
231 <varlistentry>
232 <term><option>--filename=<replaceable>filename</replaceable></option></term>
233 <listitem>
234 <para>The file to read the data from.</para>
235 </listitem>
236 </varlistentry>
237 </variablelist>
238 </refsect2>
239
240 </refsect1>
241</refentry>
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette