VirtualBox

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

Last change on this file since 85704 was 83189, checked in by vboxsync, 5 years ago

doc/VBoxManage: fix --groups parameter in help text of clonevm subcommand ticketref:19371

  • 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-2020 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">--groups=<replaceable>group</replaceable>,</arg>
46
47 <group choice='opt'>
48 <arg choice='plain'>--mode=machine</arg>
49 <arg choice='plain'>--mode=machinechildren</arg>
50 <arg choice='plain'>--mode=all</arg>
51 </group>
52
53 <arg>--name=<replaceable>name</replaceable></arg>
54
55 <arg rep="repeat">--options=<replaceable>option</replaceable>,</arg>
56
57 <arg>--register</arg>
58
59 <arg>--snapshot=<replaceable>snapshot-name</replaceable></arg>
60
61 <arg>--uuid=<replaceable>uuid</replaceable></arg>
62 </cmdsynopsis>
63 </refsynopsisdiv>
64
65 <refsect1>
66 <title>Description</title>
67 <para>
68 The <command>VBoxManage clonevm</command> command creates a clone
69 of an existing virtual machine (VM). The clone can be a full copy
70 of the VM or a linked copy of a VM.
71 </para>
72 <para>
73 You must specify the name or the universal unique identifier
74 (UUID) of the VM you want to clone.
75 </para>
76 </refsect1>
77
78 <refsect1>
79 <title>Command Operand and Options</title>
80 <para>
81 The following list describes the operand and the options that you
82 can use with the <command>VBoxManage clonevm</command> command:
83 </para>
84 <variablelist>
85 <varlistentry>
86 <term><replaceable>vmname|uuid</replaceable></term>
87 <listitem><para>
88 Specifies the name or UUID of the VM to clone.
89 </para></listitem>
90 </varlistentry>
91 <varlistentry>
92 <term><option>--basefolder=<replaceable>basefolder</replaceable></option></term>
93 <listitem><para>
94 Specifies the name of the folder in which to save the
95 configuration for the new VM.
96 </para></listitem>
97 </varlistentry>
98 <varlistentry>
99 <term><option>--groups=<replaceable>group</replaceable>,...</option></term>
100 <listitem><para>
101 Assigns the clone to the specified group or groups. If you
102 specify more than one group, separate each group name with a
103 comma.
104 </para><para>
105 Note that each group is identified by a group ID that starts
106 with a slash character (<computeroutput>/</computeroutput>)
107 so that groups can be nested. By default, a clone is always
108 assigned membership to the
109 <computeroutput>/</computeroutput> group.
110 </para></listitem>
111 </varlistentry>
112 <varlistentry>
113 <term><option>--mode=machine|machineandchildren|all</option></term>
114 <listitem><para>
115 Specifies which of the following cloning modes to use:
116 </para><itemizedlist>
117 <listitem><para>
118 <computeroutput>machine</computeroutput> mode clones the
119 current state of the existing VM without any snapshots.
120 This is the default mode.
121 </para></listitem>
122 <listitem><para>
123 <computeroutput>machineandchildren</computeroutput> mode
124 clones the snapshot specified by by the
125 <option>--snapshot</option> option and all child
126 snapshots.
127 </para></listitem>
128 <listitem><para>
129 <computeroutput>all</computeroutput> mode clones all
130 snapshots and the current state of the existing VM.
131 </para></listitem>
132 </itemizedlist></listitem>
133 </varlistentry>
134 <varlistentry>
135 <term><option>--name=<replaceable>name</replaceable></option></term>
136 <listitem><para>
137 Specifies a new name for the new VM. The default value is
138 <computeroutput><replaceable>original-name</replaceable>
139 Clone</computeroutput> where
140 <replaceable>original-name</replaceable> is the original
141 name of the VM.
142 </para></listitem>
143 </varlistentry>
144 <varlistentry>
145 <term><option>--options=<replaceable>option</replaceable>,...</option></term>
146 <listitem><para>
147 Specifies how to create the new clone.</para>
148 <para>The <option>--options</option> argument can be used multiple
149 times to enable multiple options, or the options can be given as a
150 comma separated list. The options are case insensitive.</para>
151 <para>The following options (case-insensitive) are recognized:</para>
152 <variablelist>
153 <varlistentry>
154 <term><option>Link</option></term>
155 <listitem><para>
156 Creates a linked clone from a snapshot only.
157 </para></listitem>
158 </varlistentry>
159 <varlistentry>
160 <term><option>KeepAllMACs</option></term>
161 <listitem><para>
162 Specifies that the new clone reuses the MAC addresses
163 of each virtual network card from the existing VM.
164 </para><para>
165 If you do not specify this option or the
166 <option>--options=keepnatmacs</option> option, the
167 default behavior is to reinitialize the MAC addresses
168 of each virtual network card.
169 </para></listitem>
170 </varlistentry>
171 <varlistentry>
172 <term><option>KeepNATMACs</option></term>
173 <listitem><para>
174 Specifies that the new clone reuses the MAC addresses
175 of each virtual network card from the existing VM when
176 the network type is NAT.
177 </para><para>
178 If you do not specify this option or the
179 <option>KeepAllMACs</option> option, the
180 default behavior is to reinitialize the MAC addresses
181 of each virtual network card.
182 </para></listitem>
183 </varlistentry>
184 <varlistentry>
185 <term><option>KeepDiskNames</option></term>
186 <listitem><para>
187 Specifies that the new clone reuses the disk image
188 names from the existing VM. By default, disk images
189 are renamed.
190 </para></listitem>
191 </varlistentry>
192 <varlistentry>
193 <term><option>KeepHwUUIDs</option></term>
194 <listitem><para>
195 Specifies that the new clone reuses the hardware IDs
196 from the existing VM. By default, new UUIDs are used.
197 </para></listitem>
198 </varlistentry>
199 </variablelist></listitem>
200 </varlistentry>
201 <varlistentry>
202 <term><option>--register</option></term>
203 <listitem><para>
204 Automatically registers the new clone in this &product-name;
205 installation. You can manually register the new VM later by
206 using the <command>VBoxManage registervm</command> command.
207 See <xref linkend="vboxmanage-registervm" />.
208 </para></listitem>
209 </varlistentry>
210 <varlistentry>
211 <term><option>--snapshot=<replaceable>snapshot-name</replaceable></option></term>
212 <listitem><para>
213 Specifies the snapshot on which to base the new VM. By
214 default, the clone is created from the current state of the
215 specified VM.
216 </para></listitem>
217 </varlistentry>
218 <varlistentry>
219 <term><option>--uuid=<replaceable>uuid</replaceable></option></term>
220 <listitem><para>
221 Specifies the UUID for the new VM. Ensure that this ID is
222 unique for the &product-name; instance if you decide to
223 register this new VM. By default, &product-name; provides a
224 new UUID.
225 </para></listitem>
226 </varlistentry>
227 </variablelist>
228 </refsect1>
229
230 <refsect1>
231 <title>Examples</title>
232 <para>
233 The following command creates and registers an exact clone of the
234 <computeroutput>ol7</computeroutput> VM. The clone is called
235 <computeroutput>ol7-dev-001</computeroutput>.
236 </para>
237 <para>
238 The new clone includes all of the source VM's snapshots. The new
239 VM also reuses all network interface MAC addresses, disk names,
240 and UUIDs from the source VM.
241 </para>
242<screen>
243$ VBoxManage clonevm ol7 --name="ol7-dev-001" --register --mode=all \
244 --options=keepallmacs --options=keepdisknames --options=keephwuuids
245</screen>
246 <para>
247 The following command creates and registers a clone of the
248 <computeroutput>Snapshot 1</computeroutput> snapshot of the
249 <computeroutput>ol7</computeroutput> VM. The clone is called
250 <computeroutput>ol7-dev-002</computeroutput>.
251 </para>
252<screen>
253$ VBoxManage clonevm ol7 --name="ol7-dev-002" --register --snapshot="Snapshot 1"
254</screen>
255 </refsect1>
256
257 <refsect1>
258 <title>See Also</title>
259 <para>
260 <xref linkend="vboxmanage-registervm" />
261 </para>
262 </refsect1>
263</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