VirtualBox

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

最後變更 在這個檔案從99116是 98988,由 vboxsync 提交於 2 年 前

VBoxManage: Introduce modifynvram enrollmok sub-command, bugref:10287.

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Author Date Id Revision
檔案大小: 9.7 KB
 
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.alldomusa.eu.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-03-15 15:00:19 +0000 (Wed, 15 Mar 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-enrollmok">
72 <command>VBoxManage modifynvram</command>
73 <arg choice="req"><replaceable>uuid|vmname</replaceable></arg>
74 <arg choice="plain">enrollmok</arg>
75 <arg>--mok=<replaceable>filename</replaceable></arg>
76 <arg>--owner-uuid=<replaceable>uuid</replaceable></arg>
77 </cmdsynopsis>
78 <cmdsynopsis id="synopsis-vboxmanage-modifynvram-listvars">
79 <command>VBoxManage modifynvram</command>
80 <arg choice="req"><replaceable>uuid|vmname</replaceable></arg>
81 <arg choice="plain">listvars</arg>
82 </cmdsynopsis>
83 <cmdsynopsis id="synopsis-vboxmanage-modifynvram-queryvar">
84 <command>VBoxManage modifynvram</command>
85 <arg choice="req"><replaceable>uuid|vmname</replaceable></arg>
86 <arg choice="plain">queryvar</arg>
87 <arg>--name=<replaceable>name</replaceable></arg>
88 <arg>--filename=<replaceable>filename</replaceable></arg>
89 </cmdsynopsis>
90 <cmdsynopsis id="synopsis-vboxmanage-modifynvram-deletevar">
91 <command>VBoxManage modifynvram</command>
92 <arg choice="req"><replaceable>uuid|vmname</replaceable></arg>
93 <arg choice="plain">deletevar</arg>
94 <arg>--name=<replaceable>name</replaceable></arg>
95 <arg>--owner-uuid=<replaceable>uuid</replaceable></arg>
96 </cmdsynopsis>
97 <cmdsynopsis id="synopsis-vboxmanage-modifynvram-changevar">
98 <command>VBoxManage modifynvram</command>
99 <arg choice="req"><replaceable>uuid|vmname</replaceable></arg>
100 <arg choice="plain">changevar</arg>
101 <arg>--name=<replaceable>name</replaceable></arg>
102 <arg>--filename=<replaceable>filename</replaceable></arg>
103 </cmdsynopsis>
104 </refsynopsisdiv>
105
106 <refsect1>
107 <title>Description</title>
108
109 <para>The "modifynvram" commands are for experts who want to inspect and modify the
110 UEFI variable store of a virtual machine. Any mistakes done here can bring the virtual
111 machine in a non working state.</para>
112
113 <refsect2 id="vboxmanage-modifynvram-common-options">
114 <title>Common options</title>
115 <remark role="help-scope" condition="GLOBAL"/>
116 <para>The subcommands of <command>modifynvram</command> all operate on a running virtual
117 machine:</para>
118 <variablelist>
119 <varlistentry>
120 <term><replaceable>uuid|vmname</replaceable></term>
121 <listitem><para>Either the UUID or the name (case sensitive) of a VM.</para></listitem>
122 </varlistentry>
123 </variablelist>
124 </refsect2>
125
126 <refsect2 id="vboxmanage-modifynvram-inituefivarstore">
127 <title>modifynvram inituefivarstore</title>
128 <remark role="help-copy-synopsis"/>
129 <para>
130 Iniitalizes the UEFI variable store to a default state. Any previous existing variable
131 store is deleted. Use with extreme caution!
132 </para>
133 </refsect2>
134
135 <refsect2 id="vboxmanage-modifynvram-enrollmssignatures">
136 <title>modifynvram enrollmssignatures</title>
137 <remark role="help-copy-synopsis"/>
138 <para>
139 Enrolls the default Microsoft KEK and DB signatures required for UEFI secure boot.
140 </para>
141 </refsect2>
142
143 <refsect2 id="vboxmanage-modifynvram-enrollorclpk">
144 <title>modifynvram enrollorclpk</title>
145 <remark role="help-copy-synopsis"/>
146 <para>
147 Enrolls the default platform key provided by Oracle required for UEFI secure boot.
148 </para>
149 </refsect2>
150
151 <refsect2 id="vboxmanage-modifynvram-enrollpk">
152 <title>modifynvram enrollpk</title>
153 <remark role="help-copy-synopsis"/>
154 <para>
155 Enrolls a custom platform key provided by the user required for UEFI secure boot.
156 The following commands use openssl to generate a new platform key:
157 </para>
158<screen>$ openssl req -new -x509 -newkey rsa:2048 -keyout PK.key -out PK.crt</screen>
159<screen>$ openssl x509 -in PK.crt -out PK.cer -outform DER</screen>
160 <variablelist>
161 <varlistentry>
162 <term><option>--platform-key=<replaceable>filename</replaceable></option></term>
163 <listitem><para>The platform key provided as a DER encoded X.509 signature.</para>
164 </listitem>
165 </varlistentry>
166 <varlistentry>
167 <term><option>--owner-uuid=<replaceable>uuid</replaceable></option></term>
168 <listitem><para>The UUID identifying the owner of the platform key.</para>
169 </listitem>
170 </varlistentry>
171 </variablelist>
172 </refsect2>
173
174 <refsect2 id="vboxmanage-modifynvram-listvars">
175 <title>modifynvram listvars</title>
176 <remark role="help-copy-synopsis"/>
177 <para>
178 Lists all UEFI variables in the virtual machines's store along with their owner UUID.
179 </para>
180 </refsect2>
181
182 <refsect2 id="vboxmanage-modifynvram-queryvar">
183 <title>modifynvram queryvar</title>
184 <remark role="help-copy-synopsis"/>
185 <para>
186 Queries the content of a given UEFI variable identified by its name.
187 </para>
188 <variablelist>
189 <varlistentry>
190 <term><option>--name=<replaceable>name</replaceable></option></term>
191 <listitem><para>UEFI variable name to query.</para>
192 </listitem>
193 </varlistentry>
194 <varlistentry>
195 <term><option>--filename=<replaceable>filename</replaceable></option></term>
196 <listitem>
197 <para>
198 Where to store the content of the variable upon success. This is optional,
199 if omitted the content will be dumped to the terminal as a hex dump.
200 </para>
201 </listitem>
202 </varlistentry>
203 </variablelist>
204 </refsect2>
205
206 <refsect2 id="vboxmanage-modifynvram-deletevar">
207 <title>modifynvram deletevar</title>
208 <remark role="help-copy-synopsis"/>
209 <para>
210 Deletes the given variable identified by its name and owner UUID.
211 </para>
212 <variablelist>
213 <varlistentry>
214 <term><option>--name=<replaceable>name</replaceable></option></term>
215 <listitem><para>UEFI variable name to delete.</para>
216 </listitem>
217 </varlistentry>
218 <varlistentry>
219 <term><option>--owner-uuid=<replaceable>uuid</replaceable></option></term>
220 <listitem><para>The UUID identifying the owner of the variable to delete.</para>
221 </listitem>
222 </varlistentry>
223 </variablelist>
224 </refsect2>
225
226 <refsect2 id="vboxmanage-modifynvram-changevar">
227 <title>modifynvram changevar</title>
228 <remark role="help-copy-synopsis"/>
229 <para>
230 Changes the UEFI variable content to the one form the given file.
231 </para>
232 <variablelist>
233 <varlistentry>
234 <term><option>--name=<replaceable>name</replaceable></option></term>
235 <listitem><para>UEFI variable name to change the data for.</para>
236 </listitem>
237 </varlistentry>
238 <varlistentry>
239 <term><option>--filename=<replaceable>filename</replaceable></option></term>
240 <listitem>
241 <para>The file to read the data from.</para>
242 </listitem>
243 </varlistentry>
244 </variablelist>
245 </refsect2>
246
247 </refsect1>
248</refentry>
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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