1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
2 | <!--
|
---|
3 | manpage, user manual, usage: VBoxManage snapshot
|
---|
4 | -->
|
---|
5 | <!--
|
---|
6 | Copyright (C) 2006-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-snapshot" lang="en">
|
---|
32 | <refentryinfo>
|
---|
33 | <pubdate>$Date: 2024-09-10 11:15:32 +0000 (Tue, 10 Sep 2024) $</pubdate>
|
---|
34 | <title>VBoxManage snapshot</title>
|
---|
35 | </refentryinfo>
|
---|
36 |
|
---|
37 | <refmeta>
|
---|
38 | <refentrytitle>VBoxManage-snapshot</refentrytitle>
|
---|
39 | <manvolnum>1</manvolnum>
|
---|
40 | </refmeta>
|
---|
41 |
|
---|
42 | <refnamediv>
|
---|
43 | <refname>VBoxManage-snapshot</refname>
|
---|
44 | <refpurpose>manage virtual machine snapshots</refpurpose>
|
---|
45 | <refclass>&product-name;</refclass>
|
---|
46 | </refnamediv>
|
---|
47 |
|
---|
48 | <refsynopsisdiv>
|
---|
49 | <cmdsynopsis id="synopsis-vboxmanage-snapshot">
|
---|
50 | <!-- The 'id' is mandatory and must start with 'synopsis-'. -->
|
---|
51 | <command>VBoxManage snapshot</command>
|
---|
52 | <group choice="req">
|
---|
53 | <arg choice="plain"><replaceable>uuid</replaceable></arg>
|
---|
54 | <arg choice="plain"><replaceable>vmname</replaceable></arg>
|
---|
55 | </group>
|
---|
56 | </cmdsynopsis>
|
---|
57 |
|
---|
58 | <cmdsynopsis id="synopsis-vboxmanage-snapshot-take">
|
---|
59 | <command>VBoxManage snapshot</command>
|
---|
60 | <group choice="req">
|
---|
61 | <arg choice="plain"><replaceable>uuid</replaceable></arg>
|
---|
62 | <arg choice="plain"><replaceable>vmname</replaceable></arg>
|
---|
63 | </group>
|
---|
64 |
|
---|
65 | <arg choice="plain">take</arg>
|
---|
66 |
|
---|
67 | <arg choice="req"><replaceable>snapshot-name</replaceable></arg>
|
---|
68 |
|
---|
69 | <arg>--description=<replaceable>description</replaceable></arg>
|
---|
70 |
|
---|
71 | <arg>--live</arg>
|
---|
72 |
|
---|
73 | <arg>--uniquename Number,Timestamp,Space,Force</arg>
|
---|
74 | </cmdsynopsis>
|
---|
75 |
|
---|
76 | <cmdsynopsis id="synopsis-vboxmanage-snapshot-delete">
|
---|
77 | <command>VBoxManage snapshot</command>
|
---|
78 | <group choice="req">
|
---|
79 | <arg choice="plain"><replaceable>uuid</replaceable></arg>
|
---|
80 | <arg choice="plain"><replaceable>vmname</replaceable></arg>
|
---|
81 | </group>
|
---|
82 |
|
---|
83 | <arg choice="plain">delete</arg>
|
---|
84 |
|
---|
85 | <arg choice="req"><replaceable>snapshot-name</replaceable></arg>
|
---|
86 | </cmdsynopsis>
|
---|
87 |
|
---|
88 | <cmdsynopsis id="synopsis-vboxmanage-snapshot-restore">
|
---|
89 | <command>VBoxManage snapshot</command>
|
---|
90 | <group choice="req">
|
---|
91 | <arg choice="plain"><replaceable>uuid</replaceable></arg>
|
---|
92 | <arg choice="plain"><replaceable>vmname</replaceable></arg>
|
---|
93 | </group>
|
---|
94 |
|
---|
95 | <arg choice="plain">restore</arg>
|
---|
96 |
|
---|
97 | <arg choice="req"><replaceable>snapshot-name</replaceable></arg>
|
---|
98 | </cmdsynopsis>
|
---|
99 |
|
---|
100 | <cmdsynopsis id="synopsis-vboxmanage-snapshot-restorecurrent">
|
---|
101 | <command>VBoxManage snapshot</command>
|
---|
102 | <group choice="req">
|
---|
103 | <arg choice="plain"><replaceable>uuid</replaceable></arg>
|
---|
104 | <arg choice="plain"><replaceable>vmname</replaceable></arg>
|
---|
105 | </group>
|
---|
106 |
|
---|
107 | <arg choice="plain">restorecurrent</arg>
|
---|
108 | </cmdsynopsis>
|
---|
109 |
|
---|
110 | <cmdsynopsis id="synopsis-vboxmanage-snapshot-edit">
|
---|
111 | <command>VBoxManage snapshot</command>
|
---|
112 | <group choice="req">
|
---|
113 | <arg choice="plain"><replaceable>uuid</replaceable></arg>
|
---|
114 | <arg choice="plain"><replaceable>vmname</replaceable></arg>
|
---|
115 | </group>
|
---|
116 |
|
---|
117 | <arg choice="plain">edit</arg>
|
---|
118 |
|
---|
119 | <group choice="req">
|
---|
120 | <arg choice="plain"><replaceable>snapshot-name</replaceable></arg>
|
---|
121 | <arg choice="plain">--current</arg>
|
---|
122 | </group>
|
---|
123 |
|
---|
124 | <arg>--description=<replaceable>description</replaceable></arg>
|
---|
125 |
|
---|
126 | <arg>--name=<replaceable>new-name</replaceable></arg>
|
---|
127 | </cmdsynopsis>
|
---|
128 |
|
---|
129 | <cmdsynopsis id="synopsis-vboxmanage-snapshot-list">
|
---|
130 | <command>VBoxManage snapshot</command>
|
---|
131 | <group choice="req">
|
---|
132 | <arg choice="plain"><replaceable>uuid</replaceable></arg>
|
---|
133 | <arg choice="plain"><replaceable>vmname</replaceable></arg>
|
---|
134 | </group>
|
---|
135 |
|
---|
136 | <arg choice="plain">list</arg>
|
---|
137 |
|
---|
138 | <group>
|
---|
139 | <arg choice="plain">--details</arg>
|
---|
140 | <arg choice="plain">--machinereadable</arg>
|
---|
141 | </group>
|
---|
142 | </cmdsynopsis>
|
---|
143 |
|
---|
144 | <cmdsynopsis id="synopsis-vboxmanage-snapshot-showvminfo">
|
---|
145 | <command>VBoxManage snapshot</command>
|
---|
146 | <group choice="req">
|
---|
147 | <arg choice="plain"><replaceable>uuid</replaceable></arg>
|
---|
148 | <arg choice="plain"><replaceable>vmname</replaceable></arg>
|
---|
149 | </group>
|
---|
150 |
|
---|
151 | <arg choice="plain">showvminfo</arg>
|
---|
152 |
|
---|
153 | <arg choice="req"><replaceable>snapshot-name</replaceable></arg>
|
---|
154 | </cmdsynopsis>
|
---|
155 | </refsynopsisdiv>
|
---|
156 |
|
---|
157 | <refsect1 id="vboxmanage-snapshot-description">
|
---|
158 | <title>Description</title>
|
---|
159 | <para>
|
---|
160 | The <command>VBoxManage snapshot</command> command manages
|
---|
161 | snapshots.
|
---|
162 | </para>
|
---|
163 | <para>
|
---|
164 | &product-name; uses snapshots to capture the state of a virtual
|
---|
165 | machine (VM). You can later use the snapshot to revert to the
|
---|
166 | state described by the snapshot.
|
---|
167 | </para>
|
---|
168 | <para>
|
---|
169 | A snapshot is a complete copy of a VM's settings. If you take a
|
---|
170 | snapshot while the VM is running, the snapshot also includes the
|
---|
171 | VM's current running state.
|
---|
172 | </para>
|
---|
173 | <para>
|
---|
174 | After you take a snapshot, &product-name; creates a
|
---|
175 | <emphasis>differencing hard disk</emphasis> for each normal hard
|
---|
176 | disk that is associated with the host machine. When you restore a
|
---|
177 | snapshot, &product-name; uses these differencing files to quickly
|
---|
178 | restore the contents of the VM's virtual hard disks.
|
---|
179 | </para>
|
---|
180 | <para>
|
---|
181 | For each <command>VBoxManage snapshot</command> command, you must
|
---|
182 | specify the name or the universal unique identifier (UUID) of the
|
---|
183 | VM for which you want to take a snapshot.
|
---|
184 | </para>
|
---|
185 | <refsect2 id="vboxmanage-snapshot-common-args">
|
---|
186 | <title>General Command Operand</title>
|
---|
187 | <variablelist>
|
---|
188 | <varlistentry>
|
---|
189 | <term><option><replaceable>uuid</replaceable> | <replaceable>vmname</replaceable></option></term>
|
---|
190 | <listitem><para>
|
---|
191 | Specifies the UUID or name of the VM.
|
---|
192 | </para></listitem>
|
---|
193 | </varlistentry>
|
---|
194 | </variablelist>
|
---|
195 | </refsect2>
|
---|
196 | <refsect2 id="vboxmanage-snapshot-take">
|
---|
197 | <title>Take a Snapshot of a Virtual Machine</title>
|
---|
198 | <remark role="help-copy-synopsis"/>
|
---|
199 | <para>
|
---|
200 | The <command>VBoxManage snapshot take</command> command takes a
|
---|
201 | snapshot of the current state of the VM. You must supply a name
|
---|
202 | for the snapshot and can optionally supply a description. The
|
---|
203 | new snapshot is inserted into the snapshots tree as a child of
|
---|
204 | the current snapshot (if the VM has any snapshots) and then
|
---|
205 | becomes the new current snapshot.
|
---|
206 | </para>
|
---|
207 | <variablelist>
|
---|
208 | <varlistentry>
|
---|
209 | <term><option>--description=<replaceable>description</replaceable></option></term>
|
---|
210 | <listitem><para>
|
---|
211 | Specifies a description of the snapshot.
|
---|
212 | </para></listitem>
|
---|
213 | </varlistentry>
|
---|
214 | <varlistentry>
|
---|
215 | <term><option>--live</option></term>
|
---|
216 | <listitem><para>
|
---|
217 | Specifies that the VM is not stopped while you create the
|
---|
218 | snapshot. This operation is know as live snapshotting.
|
---|
219 | </para></listitem>
|
---|
220 | </varlistentry>
|
---|
221 | <varlistentry>
|
---|
222 | <term><option>--uniquename Number,Timestamp,Space,Force</option></term>
|
---|
223 | <listitem><para>
|
---|
224 | TBD.
|
---|
225 | </para><remark>
|
---|
226 | What does this option do and how is it used?
|
---|
227 | </remark></listitem>
|
---|
228 | </varlistentry>
|
---|
229 | <varlistentry>
|
---|
230 | <term><replaceable>snapshot-name</replaceable></term>
|
---|
231 | <listitem><para>
|
---|
232 | Specifies the name of the snapshot to create.
|
---|
233 | </para></listitem>
|
---|
234 | </varlistentry>
|
---|
235 | </variablelist>
|
---|
236 | </refsect2>
|
---|
237 | <refsect2 id="vboxmanage-snapshot-delete">
|
---|
238 | <title>Delete a Snapshot</title>
|
---|
239 | <remark role="help-copy-synopsis"/>
|
---|
240 | <para>
|
---|
241 | The <command>VBoxManage snapshot delete</command> command
|
---|
242 | removes the specified snapshot.
|
---|
243 | </para>
|
---|
244 | <para>
|
---|
245 | The delete operation may take some time to finish. This is
|
---|
246 | because the differencing images that are associated with the
|
---|
247 | snapshot may need to be merged with their child differencing
|
---|
248 | images.
|
---|
249 | </para>
|
---|
250 | <variablelist>
|
---|
251 | <varlistentry>
|
---|
252 | <term><replaceable>snapshot-name</replaceable></term>
|
---|
253 | <listitem><para>
|
---|
254 | Specifies the UUID or name of the snapshot.
|
---|
255 | </para></listitem>
|
---|
256 | </varlistentry>
|
---|
257 | </variablelist>
|
---|
258 | </refsect2>
|
---|
259 | <refsect2 id="vboxmanage-snapshot-restore">
|
---|
260 | <title>Restore a Snapshot</title>
|
---|
261 | <remark role="help-copy-synopsis"/>
|
---|
262 | <para>
|
---|
263 | The <command>VBoxManage snapshot restore</command> command
|
---|
264 | restores the specified snapshot. This operation resets the VM's
|
---|
265 | settings and current state to that of the snapshot. The state of
|
---|
266 | the VM on which you restore a snapshot is lost. When restored,
|
---|
267 | the specified snapshot becomes the new current snapshot and
|
---|
268 | subsequent snapshots become children of that snapshot.
|
---|
269 | </para>
|
---|
270 | <variablelist>
|
---|
271 | <varlistentry>
|
---|
272 | <term><replaceable>snapshot-name</replaceable></term>
|
---|
273 | <listitem><para>
|
---|
274 | Specifies the UUID or name of the snapshot.
|
---|
275 | </para></listitem>
|
---|
276 | </varlistentry>
|
---|
277 | </variablelist>
|
---|
278 | </refsect2>
|
---|
279 | <refsect2 id="vboxmanage-snapshot-restorecurrent">
|
---|
280 | <title>Restore the Current Snapshot</title>
|
---|
281 | <remark role="help-copy-synopsis"/>
|
---|
282 | <para>
|
---|
283 | The <command>VBoxManage snapshot restorecurrent</command>
|
---|
284 | command restores the current snapshot. The current snapshot is
|
---|
285 | the one from which the current state is derived. This command is
|
---|
286 | equivalent to using the <command>VBoxManage snapshot
|
---|
287 | restore</command> command and specifying the name or UUID of the
|
---|
288 | current snapshot.
|
---|
289 | </para>
|
---|
290 | </refsect2>
|
---|
291 | <refsect2 id="vboxmanage-snapshot-edit">
|
---|
292 | <title>Change the Name or Description of an Existing Snapshot</title>
|
---|
293 | <remark role="help-copy-synopsis"/>
|
---|
294 | <para>
|
---|
295 | The <command>VBoxManage snapshot edit</command> command enables
|
---|
296 | you to change the name or the description of a specified
|
---|
297 | snapshot.
|
---|
298 | </para>
|
---|
299 | <variablelist>
|
---|
300 | <varlistentry>
|
---|
301 | <term><replaceable>snapshot-name</replaceable></term>
|
---|
302 | <listitem><para>
|
---|
303 | Specifies the UUID or name of the snapshot to edit.
|
---|
304 | </para><para>
|
---|
305 | This option is mutually exclusive with the
|
---|
306 | <option>--current</option> option.
|
---|
307 | </para></listitem>
|
---|
308 | </varlistentry>
|
---|
309 | <varlistentry>
|
---|
310 | <term><option>--current</option></term>
|
---|
311 | <listitem><para>
|
---|
312 | Specifies that you update the current version of the
|
---|
313 | snapshot.
|
---|
314 | </para><para>
|
---|
315 | This option is mutually exclusive with a specific snapshot
|
---|
316 | name or its UUID.
|
---|
317 | </para></listitem>
|
---|
318 | </varlistentry>
|
---|
319 | <varlistentry>
|
---|
320 | <term><option>--description=<replaceable>description</replaceable></option></term>
|
---|
321 | <listitem><para>
|
---|
322 | Specifies a new description for the snapshot.
|
---|
323 | </para></listitem>
|
---|
324 | </varlistentry>
|
---|
325 | <varlistentry>
|
---|
326 | <term><option>--name=<replaceable>new-name</replaceable></option></term>
|
---|
327 | <listitem><para>
|
---|
328 | Specifies a new name for the snapshot.
|
---|
329 | </para></listitem>
|
---|
330 | </varlistentry>
|
---|
331 | </variablelist>
|
---|
332 | </refsect2>
|
---|
333 | <refsect2 id="vboxmanage-snapshot-list">
|
---|
334 | <title>List the Snapshots</title>
|
---|
335 | <remark role="help-copy-synopsis"/>
|
---|
336 | <para>
|
---|
337 | The <command>VBoxManage snapshot list</command> command lists
|
---|
338 | all the snapshots for a VM.
|
---|
339 | </para>
|
---|
340 | <variablelist>
|
---|
341 | <varlistentry>
|
---|
342 | <term><option>--details</option></term>
|
---|
343 | <listitem><para>
|
---|
344 | Specifies that the output shows detailed information about
|
---|
345 | the snapshot.
|
---|
346 | </para><para>
|
---|
347 | This option is mutually exclusive with the
|
---|
348 | <option>--machinereadable</option> option.
|
---|
349 | </para></listitem>
|
---|
350 | </varlistentry>
|
---|
351 | <varlistentry>
|
---|
352 | <term><option>--machinereadable</option></term>
|
---|
353 | <listitem><para>
|
---|
354 | Specifies that the output is shown in a machine-readable
|
---|
355 | format.
|
---|
356 | </para><para>
|
---|
357 | This option is mutually exclusive with the
|
---|
358 | <option>--details</option> option.
|
---|
359 | </para></listitem>
|
---|
360 | </varlistentry>
|
---|
361 | </variablelist>
|
---|
362 | </refsect2>
|
---|
363 | <refsect2 id="vboxmanage-snapshot-showvminfo">
|
---|
364 | <title>Show Information About a Snapshot's Settings</title>
|
---|
365 | <remark role="help-copy-synopsis"/>
|
---|
366 | <para>
|
---|
367 | The <command>VBoxManage snapshot showvminfo</command> command
|
---|
368 | enables you to view the VM settings that are part of an existing
|
---|
369 | snapshot.
|
---|
370 | </para>
|
---|
371 | <variablelist>
|
---|
372 | <varlistentry>
|
---|
373 | <term><replaceable>snapshot-name</replaceable></term>
|
---|
374 | <listitem><para>
|
---|
375 | Specifies the UUID or name of the snapshot.
|
---|
376 | </para></listitem>
|
---|
377 | </varlistentry>
|
---|
378 | </variablelist>
|
---|
379 | </refsect2>
|
---|
380 | </refsect1>
|
---|
381 |
|
---|
382 | <refsect1 id="vboxmanage-snapshot-examples">
|
---|
383 | <title>Examples</title>
|
---|
384 | <remark role="help-scope" condition="GLOBAL"/>
|
---|
385 | <para>
|
---|
386 | The following command creates a snapshot of the
|
---|
387 | <computeroutput>ol7u4</computeroutput> VM. The snapshot is called
|
---|
388 | <computeroutput>ol7u4-snap-001</computeroutput>. The command uses
|
---|
389 | the <option>--description</option> option to provide a description
|
---|
390 | of the snapshot contents.
|
---|
391 | </para>
|
---|
392 | <screen>
|
---|
393 | $ VBoxManage snapshot ol7u4 take ol7u4-snap-001 \
|
---|
394 | --description="Oracle Linux 7.4"
|
---|
395 | </screen>
|
---|
396 | <para>
|
---|
397 | The following command lists the snapshots for the
|
---|
398 | <computeroutput>ol7u4</computeroutput> VM.
|
---|
399 | </para>
|
---|
400 | <screen>
|
---|
401 | $ VBoxManage snapshot ol7u4 list
|
---|
402 | </screen>
|
---|
403 | <para>
|
---|
404 | The following command changes the description for the
|
---|
405 | <computeroutput>ol7u4-snap-001</computeroutput> snapshot of the
|
---|
406 | <computeroutput>ol7u4</computeroutput> VM.
|
---|
407 | </para>
|
---|
408 | <screen>
|
---|
409 | $ VBoxManage snapshot ol7u4 edit ol7u4-snap-001 \
|
---|
410 | --description="Oracle Linux 7.4 with UEK4 kernel"
|
---|
411 | </screen>
|
---|
412 | <para>
|
---|
413 | The following command shows VM settings for the
|
---|
414 | <computeroutput>ol7u1-snap-001</computeroutput> snapshot of the
|
---|
415 | <computeroutput>ol7u4</computeroutput> VM.
|
---|
416 | </para>
|
---|
417 | <screen>
|
---|
418 | $ VBoxManage snapshot ol7u4 showvminfo ol7u4-snap-001
|
---|
419 | Name: ol7u4
|
---|
420 | Groups: /
|
---|
421 | Guest OS: Oracle (64-bit)
|
---|
422 | UUID: 43349d78-2ab3-4cb8-978f-0e755cd98090
|
---|
423 | Config file: C:\Users\user1\VirtualBox VMs\ol7u4\ol7u4.vbox
|
---|
424 | ...
|
---|
425 | Snapshots:
|
---|
426 |
|
---|
427 | Name: ol7u4-snap-001 (UUID: 1cffc37d-5c37-4b86-b9c5-a0f157a55f43)
|
---|
428 | Description: Oracle Linux 7.4 with UEK4 kernel
|
---|
429 | </screen>
|
---|
430 | </refsect1>
|
---|
431 | </refentry>
|
---|