VirtualBox

source: vbox/trunk/doc/manual/en_US/man_VBoxManage-convertfromraw.xml@ 99513

Last change on this file since 99513 was 99513, checked in by vboxsync, 13 months ago

manual,VBoxManage,isomaker/viso: Require all refsect1 and refsect2 elements to have @id attributes in manpages (refentry) to make these predictable and the split up topic files easier to handle for the docs team. Also requires these @id values to start with the refentry @id + '-'. Corrected a few bogus ones. Because 'controlvm' has too many sub-commands, HELP_SCOPE_ IDs will not be generated for 'See Also' and 'Examples' sections. bugref:10302

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 10.7 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<!--
3 manpage, user manual, usage: VBoxManage convertfromraw
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-convertfromraw" lang="en">
32 <refentryinfo>
33 <pubdate>$Date: 2023-04-21 21:59:02 +0000 (Fri, 21 Apr 2023) $</pubdate>
34 <title>VBoxManage convertfromraw</title>
35 </refentryinfo>
36
37 <refmeta>
38 <refentrytitle>VBoxManage-convertfromraw</refentrytitle>
39 <manvolnum>1</manvolnum>
40 </refmeta>
41
42 <refnamediv>
43 <refname>VBoxManage-convertfromraw</refname>
44 <refpurpose>convert a raw disk image to a virtual disk image</refpurpose>
45 <refclass>&product-name;</refclass>
46 </refnamediv>
47
48 <refsynopsisdiv>
49<!-- The 'id' is mandatory and must start with 'synopsis-'. -->
50 <cmdsynopsis id="synopsis-vboxmanage-convertfromraw-file">
51 <command>VBoxManage convertfromraw</command>
52 <arg choice="req"><replaceable>inputfile</replaceable></arg>
53 <arg choice="req"><replaceable>outputfile</replaceable></arg>
54 <arg>--format=<group choice="plain">
55 <arg choice="plain">VDI</arg>
56 <arg choice="plain">VMDK</arg>
57 <arg choice="plain">VHD</arg>
58 </group></arg>
59 <arg>--uuid=<replaceable>uuid</replaceable></arg>
60 <arg rep="repeat" role="compact">--variant=<group choice="plain">
61 <arg choice="plain">Standard</arg>
62 <arg choice="plain">Fixed</arg>
63 <arg choice="plain">Split2G</arg>
64 <arg choice="plain">Stream</arg>
65 <arg choice="plain">ESX</arg>
66 </group></arg> <!-- Value can be repated with comma separator. Difficult to express with docbook. -->
67 </cmdsynopsis>
68
69 <cmdsynopsis id="synopsis-vboxmanage-convertfromraw-stdin">
70 <command>VBoxManage convertfromraw stdin</command>
71 <arg choice="req"><replaceable>outputfile</replaceable></arg>
72 <arg>--format=<group choice="plain">
73 <arg choice="plain">VDI</arg>
74 <arg choice="plain">VMDK</arg>
75 <arg choice="plain">VHD</arg>
76 </group></arg>
77 <arg>--uuid=<replaceable>uuid</replaceable></arg>
78 <arg rep="repeat" role="compact">--variant=<group choice="plain">
79 <arg choice="plain">Standard</arg>
80 <arg choice="plain">Fixed</arg>
81 <arg choice="plain">Split2G</arg>
82 <arg choice="plain">Stream</arg>
83 <arg choice="plain">ESX</arg>
84 </group></arg> <!-- Value can be repated with comma separator. Difficult to express with docbook. -->
85 </cmdsynopsis>
86 </refsynopsisdiv>
87
88 <refsect1 id="vboxmanage-convertfromraw-description">
89 <title>Description</title>
90 <para>
91 The <command>VBoxManage convertfromraw</command> command enables
92 you to convert a raw disk image to an &product-name; virtual disk
93 image (VDI).
94 </para>
95 <note>
96 <para>
97 For compatibility with earlier versions of &product-name;, you
98 can use the <command>VBoxManage convertdd</command> command
99 instead of the <command>VBoxManage convertfromraw</command>
100 command.
101 </para>
102 </note>
103 <refsect2 id="vboxmanage-convertfromraw-file">
104 <title>Convert a Raw Disk File to a Virtual Disk Image File</title>
105 <remark role="help-copy-synopsis"/>
106 <para>
107 The <command>VBoxManage convertfromraw</command> command
108 converts the specified raw disk image input file to an
109 &product-name; VDI file.
110 </para>
111 <variablelist>
112 <varlistentry>
113 <term><replaceable>inputfile</replaceable></term>
114 <listitem><para>
115 Specifies the name of the raw disk image file to convert.
116 </para></listitem>
117 </varlistentry>
118 <varlistentry>
119 <term><replaceable>outputfile</replaceable></term>
120 <listitem><para>
121 Specifies the name of the file in which to write the VDI
122 output.
123 </para></listitem>
124 </varlistentry>
125 <varlistentry>
126 <term><option>--format=VDI | VMDK | VHD</option></term>
127 <listitem><para>
128 Specifies the format of the disk image to create. Valid
129 values are <literal>VDI</literal>,
130 <literal>VMDK</literal>, and <literal>VHD</literal>. The
131 default format is <literal>VDI</literal>.
132 </para></listitem>
133 </varlistentry>
134 <varlistentry>
135 <term><option>--uuid=<replaceable>uuid</replaceable></option></term>
136 <listitem><para>
137 Specifies the Universally Unique Identifier (UUID) of the
138 output file.
139 </para></listitem>
140 </varlistentry>
141 <varlistentry>
142 <term><option>--variant=Standard | Fixed | Split2G | Stream | ESX[,...]</option></term>
143 <listitem><para>
144 Specifies any required file format variants for the output
145 file. This is a comma-separated list of variant values.
146 Following are the valid values:
147 </para><itemizedlist>
148 <listitem><para>
149 <literal>Standard</literal> is the default disk image
150 type, which has a dynamically allocated file size.
151 </para></listitem>
152 <listitem><para>
153 <literal>Fixed</literal> uses a disk image that has a
154 fixed file size.
155 </para></listitem>
156 <listitem><para>
157 <literal>Split2G</literal> indicates that the disk
158 image is split into 2GB segments. This value is for
159 VMDK only.
160 </para></listitem>
161 <listitem><para>
162 <literal>Stream</literal> optimizes the disk image for
163 downloading. This value is for VMDK only.
164 </para></listitem>
165 <listitem><para>
166 <literal>ESX</literal> is used for some VMWare
167 products. This value is for VMDK only.
168 </para></listitem>
169 </itemizedlist><para>
170 Note that not all variant combinations are valid.
171 Specifying incompatible variant values in the list will
172 produce an error message.
173 </para></listitem>
174 </varlistentry>
175 </variablelist>
176 </refsect2>
177 <refsect2 id="vboxmanage-convertfromraw-stdin">
178 <title>Convert Raw Data From Standard Input to a Virtual Disk Image File</title>
179 <remark role="help-copy-synopsis"/>
180 <para>
181 The <command>VBoxManage convertfromraw stdin</command> command
182 reads the content of the disk image from standard input.
183 Consider using this form of the command in a pipe sequence.
184 </para>
185 <variablelist>
186 <varlistentry>
187 <term><replaceable>outputfile</replaceable></term>
188 <listitem><para>
189 Specifies the name of the file in which to write the VDI
190 output.
191 </para></listitem>
192 </varlistentry>
193 <varlistentry>
194 <term><option>--format=VDI | VMDK | VHD</option></term>
195 <listitem><para>
196 Specifies the format of the disk image to create. Valid
197 values are <literal>VDI</literal>,
198 <literal>VMDK</literal>, and <literal>VHD</literal>. The
199 default format is <literal>VDI</literal>.
200 </para></listitem>
201 </varlistentry>
202 <varlistentry>
203 <term><option>--uuid=<replaceable>uuid</replaceable></option></term>
204 <listitem><para>
205 Specifies the UUID of the output file.
206 </para></listitem>
207 </varlistentry>
208 <varlistentry>
209 <term><option>--variant=Standard,Fixed,Split2G,Stream,ESX</option></term>
210 <listitem><para>
211 Specifies any required file format variants for the output
212 file. This is a comma-separated list of variant values.
213 Following are the valid values:
214 </para><itemizedlist>
215 <listitem><para>
216 <literal>Standard</literal> is the default disk image
217 type, which has a dynamically allocated file size.
218 </para></listitem>
219 <listitem><para>
220 <literal>Fixed</literal> uses a disk image that has a
221 fixed file size.
222 </para></listitem>
223 <listitem><para>
224 <literal>Split2G</literal> indicates that the disk
225 image is split into 2GB segments. This value is for
226 VMDK only.
227 </para></listitem>
228 <listitem><para>
229 <literal>Stream</literal> optimizes the disk image for
230 downloading. This value is for VMDK only.
231 </para></listitem>
232 <listitem><para>
233 <literal>ESX</literal> is used for some VMWare
234 products. This value is for VMDK only.
235 </para></listitem>
236 </itemizedlist><para>
237 Note that not all variant combinations are valid.
238 Specifying incompatible variant values in the list will
239 produce an error message.
240 </para></listitem>
241 </varlistentry>
242 </variablelist>
243 </refsect2>
244 </refsect1>
245
246 <refsect1 id="vboxmanage-convertfromraw-examples">
247 <title>Examples</title>
248 <remark role="help-scope" condition="GLOBAL" />
249 <para>
250 The following command converts the raw disk image input file
251 <filename>disk01.raw</filename>. The output file is a VDI disk
252 image called <filename>disk02.vdi</filename>.
253 </para>
254<screen>$ VBoxManage convertfromraw disk01.raw disk02.vdi</screen>
255 <para>
256 The following command converts the raw disk image input file
257 <filename>disk01.raw</filename>. The output file is a VMDK disk
258 image called <filename>disk02.vmdk</filename>.
259 </para>
260<screen>$ VBoxManage convertfromraw disk01.raw disk02.vmdk --format VMDK</screen>
261 </refsect1>
262</refentry>
Note: See TracBrowser for help on using the repository browser.

© 2023 Oracle
ContactPrivacy policyTerms of Use