VirtualBox

source: vbox/trunk/doc/manual/en_US/man_VBoxManage-clonevm.xml@ 78144

Last change on this file since 78144 was 77888, checked in by vboxsync, 6 years ago

man_VBoxManage-clonevm.xml: Checked how --options actually work and adjusted the synopsis+text accordingly.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 10.3 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<!--
3 manpage, user manual, usage: VBoxManage clonevm
4
5 Copyright (C) 2006-2019 Oracle Corporation
6
7 This file is part of VirtualBox Open Source Edition (OSE), as
8 available from http://www.virtualbox.org. This file is free software;
9 you can redistribute it and/or modify it under the terms of the GNU
10 General Public License (GPL) as published by the Free Software
11 Foundation, in version 2 as it comes in the "COPYING" file of the
12 VirtualBox OSE distribution. VirtualBox OSE is distributed in the
13 hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
14 -->
15<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
16 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"[
17<!ENTITY % all.entities SYSTEM "all-entities.ent">
18%all.entities;
19]>
20<refentry id="vboxmanage-clonevm" lang="en">
21 <refentryinfo>
22 <pubdate>February 2019</pubdate>
23 <title>VBoxManage clonevm</title>
24 </refentryinfo>
25
26 <refmeta>
27 <refentrytitle>VBoxManage-clonevm</refentrytitle>
28 <manvolnum>1</manvolnum>
29 </refmeta>
30
31 <refnamediv>
32 <refname>VBoxManage-clonevm</refname>
33 <refpurpose>create a clone of an existing &product-name; virtual machine</refpurpose>
34 <refclass>Oracle VM VirtualBox</refclass>
35 </refnamediv>
36
37 <refsynopsisdiv>
38 <cmdsynopsis id="synopsis-vboxmanage-clonevm">
39<!-- The 'id' is mandatory and must start with 'synopsis-'. -->
40 <command>VBoxManage clonevm</command>
41 <arg choice="req"><replaceable>vmname|uuid</replaceable></arg>
42
43 <arg>--basefolder=<replaceable>basefolder</replaceable></arg>
44
45 <arg rep="repeat">--group=<replaceable>group</replaceable>,</arg>
46
47 <arg>--mode=<group choice='plain'><arg choice='plain'>machine</arg><arg choice='plain'>machinechildren</arg><arg choice='plain'>all</arg></group></arg>
48
49 <arg>--name=<replaceable>name</replaceable></arg>
50
51 <arg rep="repeat">--options=<replaceable>option</replaceable>,</arg>
52
53 <arg>--register</arg>
54
55 <arg>--snapshot=<replaceable>snapshot-name</replaceable></arg>
56
57 <arg>--uuid=<replaceable>uuid</replaceable></arg>
58 </cmdsynopsis>
59 </refsynopsisdiv>
60
61 <refsect1>
62 <title>Description</title>
63 <para>
64 The <command>VBoxManage clonevm</command> command creates a clone
65 of an existing virtual machine (VM). The clone can be a full copy
66 of the VM or a linked copy of a VM.
67 </para>
68 <para>
69 You must specify the name or the universal unique identifier
70 (UUID) of the VM you want to clone.
71 </para>
72 </refsect1>
73
74 <refsect1>
75 <title>Command Operand and Options</title>
76 <para>
77 The following list describes the operand and the options that you
78 can use with the <command>VBoxManage clonevm</command> command:
79 </para>
80 <variablelist>
81 <varlistentry>
82 <term><replaceable>vmname|uuid</replaceable></term>
83 <listitem><para>
84 Specifies the name or UUID of the VM to clone.
85 </para></listitem>
86 </varlistentry>
87 <varlistentry>
88 <term><option>--basefolder=<replaceable>basefolder</replaceable></option></term>
89 <listitem><para>
90 Specifies the name of the folder in which to save the
91 configuration for the new VM.
92 </para></listitem>
93 </varlistentry>
94 <varlistentry>
95 <term><option>--groups=<replaceable>group</replaceable>,...</option></term>
96 <listitem><para>
97 Assigns the clone to the specified group or groups. If you
98 specify more than one group, separate each group name with a
99 comma.
100 </para><para>
101 Note that each group is identified by a group ID that starts
102 with a slash character (<computeroutput>/</computeroutput>)
103 so that groups can be nested. By default, a clone is always
104 assigned membership to the
105 <computeroutput>/</computeroutput> group.
106 </para></listitem>
107 </varlistentry>
108 <varlistentry>
109 <term><option>--mode=machine|machineandchildren|all</option></term>
110 <listitem><para>
111 Specifies which of the following cloning modes to use:
112 </para><itemizedlist>
113 <listitem><para>
114 <computeroutput>machine</computeroutput> mode clones the
115 current state of the existing VM without any snapshots.
116 This is the default mode.
117 </para></listitem>
118 <listitem><para>
119 <computeroutput>machineandchildren</computeroutput> mode
120 clones the snapshot specified by by the
121 <option>--snapshot</option> option and all child
122 snapshots.
123 </para></listitem>
124 <listitem><para>
125 <computeroutput>all</computeroutput> mode clones all
126 snapshots and the current state of the existing VM.
127 </para></listitem>
128 </itemizedlist></listitem>
129 </varlistentry>
130 <varlistentry>
131 <term><option>--name=<replaceable>name</replaceable></option></term>
132 <listitem><para>
133 Specifies a new name for the new VM. The default value is
134 <computeroutput><replaceable>original-name</replaceable>
135 Clone</computeroutput> where
136 <replaceable>original-name</replaceable> is the original
137 name of the VM.
138 </para></listitem>
139 </varlistentry>
140 <varlistentry>
141 <term><option>--options=<replaceable>option</replaceable>,...</option></term>
142 <listitem><para>
143 Specifies how to create the new clone.</para>
144 <para>The <option>--options</option> argument can be used multiple
145 times to enable multiple options, or the options can be given as a
146 comma separated list. The options are case insensitive.</para>
147 <para>The following options (case-insensitive) are recognized:</para>
148 <variablelist>
149 <varlistentry>
150 <term><option>Link</option></term>
151 <listitem><para>
152 Creates a linked clone from a snapshot only.
153 </para></listitem>
154 </varlistentry>
155 <varlistentry>
156 <term><option>KeepAllMACs</option></term>
157 <listitem><para>
158 Specifies that the new clone reuses the MAC addresses
159 of each virtual network card from the existing VM.
160 </para><para>
161 If you do not specify this option or the
162 <option>--options=keepnatmacs</option> option, the
163 default behavior is to reinitialize the MAC addresses
164 of each virtual network card.
165 </para></listitem>
166 </varlistentry>
167 <varlistentry>
168 <term><option>KeepNATMACs</option></term>
169 <listitem><para>
170 Specifies that the new clone reuses the MAC addresses
171 of each virtual network card from the existing VM when
172 the network type is NAT.
173 </para><para>
174 If you do not specify this option or the
175 <option>KeepAllMACs</option> option, the
176 default behavior is to reinitialize the MAC addresses
177 of each virtual network card.
178 </para></listitem>
179 </varlistentry>
180 <varlistentry>
181 <term><option>KeepDiskNames</option></term>
182 <listitem><para>
183 Specifies that the new clone reuses the disk image
184 names from the existing VM. By default, disk images
185 are renamed.
186 </para></listitem>
187 </varlistentry>
188 <varlistentry>
189 <term><option>KeepHwUUIDs</option></term>
190 <listitem><para>
191 Specifies that the new clone reuses the hardware IDs
192 from the existing VM. By default, new UUIDs are used.
193 </para></listitem>
194 </varlistentry>
195 </variablelist></listitem>
196 </varlistentry>
197 <varlistentry>
198 <term><option>--register</option></term>
199 <listitem><para>
200 Automatically registers the new clone in this &product-name;
201 installation. You can manually register the new VM later by
202 using the <command>VBoxManage registervm</command> command.
203 See <xref linkend="vboxmanage-registervm" />.
204 </para></listitem>
205 </varlistentry>
206 <varlistentry>
207 <term><option>--snapshot=<replaceable>snapshot-name</replaceable></option></term>
208 <listitem><para>
209 Specifies the snapshot on which to base the new VM. By
210 default, the clone is created from the current state of the
211 specified VM.
212 </para></listitem>
213 </varlistentry>
214 <varlistentry>
215 <term><option>--uuid=<replaceable>uuid</replaceable></option></term>
216 <listitem><para>
217 Specifies the UUID for the new VM. Ensure that this ID is
218 unique for the &product-name; instance if you decide to
219 register this new VM. By default, &product-name; provides a
220 new UUID.
221 </para></listitem>
222 </varlistentry>
223 </variablelist>
224 </refsect1>
225
226 <refsect1>
227 <title>Examples</title>
228 <para>
229 The following command creates and registers an exact clone of the
230 <computeroutput>ol7</computeroutput> VM. The clone is called
231 <computeroutput>ol7-dev-001</computeroutput>.
232 </para>
233 <para>
234 The new clone includes all of the source VM's snapshots. The new
235 VM also reuses all network interface MAC addresses, disk names,
236 and UUIDs from the source VM.
237 </para>
238<screen>
239$ VBoxManage clonevm ol7 --name="ol7-dev-001" --register --mode=all \
240 --options=keepallmacs --options=keepdisknames --options=keephwuuids
241</screen>
242 <para>
243 The following command creates and registers a clone of the
244 <computeroutput>Snapshot 1</computeroutput> snapshot of the
245 <computeroutput>ol7</computeroutput> VM. The clone is called
246 <computeroutput>ol7-dev-002</computeroutput>.
247 </para>
248<screen>
249$ VBoxManage clonevm ol7 --name="ol7-dev-002" --register --snapshot="Snapshot 1"
250</screen>
251 </refsect1>
252
253 <refsect1>
254 <title>See Also</title>
255 <para>
256 <xref linkend="vboxmanage-registervm" />
257 </para>
258 </refsect1>
259</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