VirtualBox

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

Last change on this file since 98110 was 98103, checked in by vboxsync, 23 months ago

Copyright year updates by scm.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 9.2 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<!--
3 manpage, user manual, usage: VBoxManage createmedium
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-createmedium" lang="en">
32 <refentryinfo>
33 <pubdate>$Date: 2023-01-17 14:15:46 +0000 (Tue, 17 Jan 2023) $</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> formats the medium automatically.
170 This value is valid for floppy images only.
171 </para></listitem>
172 <listitem><para>
173 <literal>RawDisk</literal> is used for creating a VMDK
174 image which provides direct access to the hard disk on
175 the host using its raw interface. This value is valid for
176 VMDK disk images only. For detailed information about raw
177 disk access, see <xref linkend="adv-storage-config"/>.
178 </para></listitem>
179 </itemizedlist><para>
180 Note that not all variant combinations are valid. Specifying
181 incompatible variant values in the list will produce an
182 error message.
183 </para></listitem>
184 </varlistentry>
185 <varlistentry>
186 <term><option>--property <replaceable>name</replaceable>=<replaceable>value</replaceable></option></term>
187 <listitem><para>
188 Specifies any required file format dependent parameters in
189 <literal>key=value</literal> form. Optional.
190 </para>
191 </listitem>
192 </varlistentry>
193 <varlistentry>
194 <term><option>--property-file <replaceable>name
195 </replaceable>=<replaceable>/path/to/file/with/value</replaceable></option></term>
196 <listitem><para>
197 Specifies any required file format dependent parameters in
198 <literal>key=file/with/value</literal> form. The value is
199 taken from the file. Optional.
200 </para></listitem>
201 </varlistentry>
202 </variablelist>
203 </refsect1>
204
205 <refsect1>
206 <title>Examples</title>
207 <remark role="help-scope" condition="GLOBAL" />
208 <para>
209 The following command creates a new disk image file named
210 <filename>disk01.vdi</filename>. The file size is 1024 megabytes.
211 </para>
212<screen>$ VBoxManage createmedium --filename disk01.vdi --size 1024</screen>
213 <para>
214 The following command creates a new floppy disk image file named
215 <filename>floppy01.vdi</filename>. The file size is 1 megabyte.
216 </para>
217<screen>$ VBoxManage createmedium floppy --filename floppy01.img --size 1</screen>
218 <para>
219 The following command creates a raw disk image of an entire physical disk
220 on a Linux host.
221 </para>
222 <screen>$ VBoxManage createmedium disk --filename=/path/to/rawdisk.vmdk --variant=RawDisk --format=VMDK --property RawDrive=/dev/sda</screen>
223 </refsect1>
224</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