VirtualBox

source: vbox/trunk/doc/manual/en_US/man_VBoxManage-createmedium.xml@ 97260

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

Frontends/VBoxManage+Storage/VMDK+doc/manual: 'VBoxManage createmedium
disk --Variant Rawdisk ...' neglects to use the calculated raw disk size
but instead uses the passed in value which is zero (unless --size or
--sizebyte has been specified) when creating the VMDK image and also
forgets to update the physical disk geometry (PCHS) for the VMDK image.
bugref:9224 ticketref:21125

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 9.0 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<!--
3 manpage, user manual, usage: VBoxManage createmedium
4-->
5<!--
6 Copyright (C) 2006-2022 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-createmedium" lang="en">
32 <refentryinfo>
33 <pubdate>$Date: 2022-10-20 23:02:43 +0000 (Thu, 20 Oct 2022) $</pubdate>
34 <title>VBoxManage createmedium</title>
35 </refentryinfo>
36
37 <refmeta>
38 <refentrytitle>VBoxManage-createmedium</refentrytitle>
39 <manvolnum>1</manvolnum>
40 </refmeta>
41
42 <refnamediv>
43 <refname>VBoxManage-createmedium</refname>
44 <refpurpose>create a new medium</refpurpose>
45 <refclass>&product-name;</refclass>
46 </refnamediv>
47
48 <refsynopsisdiv>
49 <cmdsynopsis id="synopsis-vboxmanage-createmedium">
50<!-- The 'id' is mandatory and must start with 'synopsis-'. -->
51 <command>VBoxManage createmedium</command>
52 <group>
53 <arg choice="plain"><replaceable>disk</replaceable></arg>
54 <arg choice="plain"><replaceable>dvd</replaceable></arg>
55 <arg choice="plain"><replaceable>floppy</replaceable></arg>
56 </group>
57 <arg choice="req">--filename=<replaceable>filename</replaceable></arg>
58 <group>
59 <arg choice="plain">--size=<replaceable>megabytes</replaceable></arg>
60 <arg choice="plain">--sizebyte=<replaceable>bytes</replaceable></arg>
61 </group>
62 <arg>--diffparent=<group choice="plain">
63 <arg choice="plain"><replaceable>UUID</replaceable></arg>
64 <arg choice="plain"><replaceable>filename</replaceable></arg>
65 </group></arg>
66 <arg>--format=<group choice="plain">
67 <arg choice="plain"><replaceable>VDI</replaceable></arg>
68 <arg choice="plain"><replaceable>VMDK</replaceable></arg>
69 <arg choice="plain"><replaceable>VHD</replaceable></arg>
70 </group></arg>
71 <arg>--variant Standard,Fixed,Split2G,Stream,ESX,Formatted,RawDisk</arg>
72 <arg choice="plain" rep="repeat">--property
73 <replaceable>name</replaceable>=<replaceable>value</replaceable></arg>
74 <arg choice="plain" rep="repeat">--property-file
75 <replaceable>name</replaceable>=<replaceable>/path/to/file/with/value</replaceable></arg>
76 </cmdsynopsis>
77 </refsynopsisdiv>
78
79 <refsect1>
80 <title>Description</title>
81 <para>
82 The <command>VBoxManage createmedium</command> command creates a
83 new medium, such as a disk image file.
84 </para>
85 <note>
86 <para>
87 For compatibility with earlier versions of &product-name;, you
88 can use the <command>createvdi</command> and
89 <command>createhd</command> commands instead of the
90 <command>createmedium</command> command.
91 </para>
92 </note>
93 <variablelist>
94 <varlistentry>
95 <term>disk | dvd | floppy</term>
96 <listitem><para>
97 Specifies the media type. The default value is
98 <literal>disk</literal>.
99 </para></listitem>
100 </varlistentry>
101 <varlistentry>
102 <term><option>--filename=<replaceable>filename</replaceable></option></term>
103 <listitem><para>
104 Specifies the absolute path name to a file on the host file
105 system.
106 </para></listitem>
107 </varlistentry>
108 <varlistentry>
109 <term><option>--size=<replaceable>megabytes</replaceable></option></term>
110 <listitem><para>
111 Specifies the image capacity in one megabyte units.
112 </para></listitem>
113 </varlistentry>
114 <varlistentry>
115 <term><option>--sizebyte=<replaceable>bytes</replaceable></option></term>
116 <listitem><para>
117 Specifies the image capacity in one byte units.
118 </para></listitem>
119 </varlistentry>
120 <varlistentry>
121 <term><option>--diffparent=<replaceable>UUID</replaceable> | <replaceable>filename</replaceable></option></term>
122 <listitem><para>
123 Specifies the Universally Unique Identifier (UUID) or
124 absolute path name of a differencing image parent file on
125 the host file system.
126 </para><para>
127 Use this file to share a base box disk image among VMs.
128 </para></listitem>
129 </varlistentry>
130 <varlistentry>
131 <term><option>--format=VDI | VMDK | VHD</option></term>
132 <listitem><para>
133 Specifies the file format of the output file. Valid formats
134 are <literal>VDI</literal>, <literal>VMDK</literal>, and
135 <literal>VHD</literal>. The default format is
136 <literal>VDI</literal>.
137 </para></listitem>
138 </varlistentry>
139 <varlistentry>
140 <term><option>--variant=Standard,Fixed,Split2G,Stream,ESX,Formatted,RawDisk</option></term>
141 <listitem><para>
142 Specifies the file format variant for the target medium,
143 which is a comma-separated list of variants. Following are
144 the valid values:
145 </para><itemizedlist>
146 <listitem><para>
147 <literal>Standard</literal> is the default disk image
148 type, which has a dynamically allocated file size.
149 </para></listitem>
150 <listitem><para>
151 <literal>Fixed</literal> uses a disk image that has a
152 fixed file size.
153 </para></listitem>
154 <listitem><para>
155 <literal>Split2G</literal> indicates that the disk image
156 is split into 2GB segments. This value is valid for VMDK
157 disk images only.
158 </para></listitem>
159 <listitem><para>
160 <literal>Stream</literal> optimizes the disk image for
161 downloading. This value is valid for VMDK disk images
162 only.
163 </para></listitem>
164 <listitem><para>
165 <literal>ESX</literal> is used for some VMWare products.
166 This value is valid for VMDK disk images only.
167 </para></listitem>
168 <listitem><para>
169 <literal>Formatted</literal>
170 </para><para>
171 For floppy images only. Formats the medium
172 automatically.
173 </para></listitem>
174 <listitem><para>
175 <literal>RawDisk</literal> is used for creating a VMDK
176 image which provides direct access to the hard disk on
177 the host using its raw interface. This value is valid for
178 VMDK disk images only. For detailed information about raw
179 disk access, see <xref linkend="adv-storage-config"/>.
180 </para></listitem>
181 </itemizedlist><para>
182 Note that not all variant combinations are valid. Specifying
183 incompatible variant values in the list will produce an
184 error message.
185 </para></listitem>
186 </varlistentry>
187 <varlistentry>
188 <term><option>--property <replaceable>name</replaceable>=<replaceable>value</replaceable></option></term>
189 <listitem><para>
190 Specifies any required file format dependent parameters in
191 <literal>key=value</literal> form. Optional.
192 </para>
193 </listitem>
194 </varlistentry>
195 <varlistentry>
196 <term><option>--property-file <replaceable>name
197 </replaceable>=<replaceable>/path/to/file/with/value</replaceable></option></term>
198 <listitem><para>
199 Specifies any required file format dependent parameters in
200 <literal>key=file/with/value</literal> form. The value is
201 taken from the file. Optional.
202 </para></listitem>
203 </varlistentry>
204 </variablelist>
205 </refsect1>
206
207 <refsect1>
208 <title>Examples</title>
209 <remark role="help-scope" condition="GLOBAL" />
210 <para>
211 The following command creates a new disk image file called
212 <filename>disk01.vdi</filename>. The file size is 1024 megabytes.
213 </para>
214<screen>$ VBoxManage createmedium --filename disk01.vdi --size 1024</screen>
215 <para>
216 The following command creates a new floppy disk image file called
217 <filename>floppy01.vdi</filename>. The file size is 1 megabyte.
218 </para>
219<screen>$ VBoxManage createmedium floppy --filename floppy01.img --size 1</screen>
220 </refsect1>
221</refentry>
Note: See TracBrowser for help on using the repository browser.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette