VirtualBox

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

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

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