VirtualBox

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

Last change on this file since 94199 was 94199, checked in by vboxsync, 3 years ago

doc/manual,FE/VBoxManage: Convert clonemedium command to refentry documentation, ​bugref:9186

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