VirtualBox

source: vbox/trunk/doc/manual/en_US/man_VBoxManage-clonemedium.xml@ 99100

Last change on this file since 99100 was 98103, checked in by vboxsync, 2 years ago

Copyright year updates by scm.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 8.4 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<!--
3 manpage, user manual, usage: VBoxManage clonemedium
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-clonemedium" lang="en">
32 <refentryinfo>
33 <pubdate>$Date: 2023-01-17 14:15:46 +0000 (Tue, 17 Jan 2023) $</pubdate>
34 <title>VBoxManage clonemedium</title>
35 </refentryinfo>
36
37 <refmeta>
38 <refentrytitle>VBoxManage-clonemedium</refentrytitle>
39 <manvolnum>1</manvolnum>
40 </refmeta>
41
42 <refnamediv>
43 <refname>VBoxManage-clonemedium</refname>
44 <refpurpose>create a clone of a medium</refpurpose>
45 <refclass>&product-name;</refclass>
46 </refnamediv>
47
48 <refsynopsisdiv>
49 <cmdsynopsis id="synopsis-vboxmanage-clonemedium">
50<!-- The 'id' is mandatory and must start with 'synopsis-'. -->
51 <command>VBoxManage clonemedium</command>
52 <group choice="req">
53 <arg choice="plain"><replaceable>uuid</replaceable></arg>
54 <arg choice="plain"><replaceable>source-medium</replaceable></arg>
55 </group>
56 <group choice="req">
57 <arg choice="plain"><replaceable>uuid</replaceable></arg>
58 <arg choice="plain"><replaceable>target-medium</replaceable></arg>
59 </group>
60 <group>
61 <arg choice="plain">disk</arg>
62 <arg choice="plain">dvd</arg>
63 <arg choice="plain">floppy</arg>
64 </group>
65 <arg>--existing</arg>
66 <arg>--format=<group choice="plain">
67 <arg choice="plain">VDI</arg>
68 <arg choice="plain">VMDK</arg>
69 <arg choice="plain">VHD</arg>
70 <arg choice="plain">RAW</arg>
71 <arg choice="plain"><replaceable>other</replaceable></arg>
72 </group></arg>
73 <arg>--variant=Standard,Fixed,Split2G,Stream,ESX</arg>
74 </cmdsynopsis>
75 </refsynopsisdiv>
76
77 <refsect1>
78 <title>Description</title>
79 <para>
80 The <command>VBoxManage clonemedium</command> command enables you
81 to clone an existing medium (virtual disk, DVD, or floppy), which
82 is typically an image file. Only the Universally Unique Identifier
83 (UUID) differs between the original image and the cloned image.
84 </para>
85 <para>
86 You can use the Virtual Media Manager to transfer the cloned image
87 to another host system or reimport it into &product-name;. See
88 <xref linkend="virtual-media-manager" /> and <xref linkend="cloningvdis" />.
89 </para>
90 <variablelist>
91 <varlistentry>
92 <term><replaceable>uuid</replaceable> | <replaceable>source-medium</replaceable></term>
93 <listitem><para>
94 Specifies the UUID or the absolute or relative file name of
95 the source medium to clone. You can specify the UUID of the
96 medium only if it is registered. Use the <command>VBoxManage
97 list hdds</command> command to list registered images.
98 </para></listitem>
99 </varlistentry>
100 <varlistentry>
101 <term><replaceable>uuid</replaceable> | <replaceable>target-medium</replaceable></term>
102 <listitem><para>
103 Specifies the UUID or the absolute or relative file name of
104 the target (clone) medium. You can specify the UUID of the
105 target medium only if it is registered. Use the
106 <command>VBoxManage list hdds</command> command to list
107 registered images.
108 </para></listitem>
109 </varlistentry>
110 <varlistentry>
111 <term><literal>disk</literal> | <literal>dvd</literal> | <literal>floppy</literal></term>
112 <listitem><para>
113 Specifies the type of the medium to clone. Valid values are
114 <literal>disk</literal>, <literal>dvd</literal>, and
115 <literal>floppy</literal>. The default value is
116 <literal>disk</literal>.
117 </para></listitem>
118 </varlistentry>
119 <varlistentry>
120 <term><option>--existing</option></term>
121 <listitem><para>
122 Performs the clone operation by overwriting an existing
123 target medium. The result is that only the portion of the
124 source medium that fits into the existing target medium is
125 copied.
126 </para><para>
127 If the target medium is smaller than the source, only the
128 portion of the source medium up to the size of the target
129 medium is copied.
130 </para><para>
131 If the target medium is larger than the source, the
132 remaining part of the target medium is unchanged.
133 </para></listitem>
134 </varlistentry>
135 <varlistentry>
136 <term><option>--format</option></term>
137 <listitem><para>
138 Specifies the file format of the target medium if it differs
139 from the format of the source medium. Valid values are
140 <literal>VDI</literal>, <literal>VMDK</literal>,
141 <literal>VHD</literal>, <literal>RAW</literal>, and
142 <replaceable>other</replaceable>.
143 </para><remark>
144 What file formats can <replaceable>other</replaceable> be?
145 </remark></listitem>
146 </varlistentry>
147 <varlistentry>
148 <term><option>--variant=Standard,Fixed,Split2G,Stream,ESX</option></term>
149 <listitem><para>
150 Specifies the file format variant for the target medium,
151 which is a comma-separated list of variants. Following are
152 the valid values:
153 </para><itemizedlist>
154 <listitem><para>
155 <literal>Standard</literal> is the default disk image
156 type, which has a dynamically allocated file size.
157 </para></listitem>
158 <listitem><para>
159 <literal>Fixed</literal> uses a disk image that has a
160 fixed file size.
161 </para></listitem>
162 <listitem><para>
163 <literal>Split2G</literal> indicates that the disk image
164 is split into 2GB segments. This value is for VMDK only.
165 </para></listitem>
166 <listitem><para>
167 <literal>Stream</literal> optimizes the disk image for
168 downloading. This value is for VMDK only.
169 </para></listitem>
170 <listitem><para>
171 <literal>ESX</literal> is used for some VMWare products.
172 This value is for VMDK only.
173 </para></listitem>
174 </itemizedlist><para>
175 Note that not all variant combinations are valid. Specifying
176 incompatible variant values in the list will produce an
177 error message.
178 </para></listitem>
179 </varlistentry>
180 </variablelist>
181 <note>
182 <para>
183 For compatibility with earlier versions of &product-name;, you
184 can use the <command>clonevdi</command> and
185 <command>clonehd</command> commands instead of the
186 <command>clonemedium</command> command.
187 </para>
188 </note>
189 </refsect1>
190
191 <refsect1>
192 <title>Examples</title>
193 <remark role="help-scope" condition="GLOBAL" />
194 <para>
195 The following command creates a clone of the
196 <filename>disk01.vdi</filename> disk image file. The clone is
197 called <filename>disk02.vdi</filename>.
198 </para>
199<screen>$ VBoxManage clonemedium disk01.vdi disk02.vdi</screen>
200 <para>
201 The following command creates a clone of the
202 <filename>disk01.vdi</filename> disk image file. The clone is in
203 VMDK format and is called <filename>disk02.vmdk</filename>.
204 </para>
205<screen>$ VBoxManage clonemedium disk01.vdi disk02.vmdk --format VMDK</screen>
206 </refsect1>
207
208 <refsect1>
209 <title>See Also</title>
210 <para>
211 <xref linkend="vboxmanage-list" />
212 </para>
213 </refsect1>
214</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