VirtualBox

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

Last change on this file since 85683 was 82969, checked in by vboxsync, 5 years ago

Copyright year updates - manual ones.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 7.2 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>August 2019</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>Oracle VM VirtualBox</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 choice="opt">
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</arg>
61 </cmdsynopsis>
62 </refsynopsisdiv>
63
64 <refsect1>
65 <title>Description</title>
66 <para>
67 The <command>VBoxManage createmedium</command> command creates a
68 new medium, such as a disk image file.
69 </para>
70 <note>
71 <para>
72 For compatibility with earlier versions of &product-name;, you
73 can use the <command>createvdi</command> and
74 <command>createhd</command> commands instead of the
75 <command>createmedium</command> command.
76 </para>
77 </note>
78 <variablelist>
79 <varlistentry>
80 <term>disk | dvd | floppy</term>
81 <listitem><para>
82 Specifies the media type. The default value is
83 <literal>disk</literal>.
84 </para></listitem>
85 </varlistentry>
86 <varlistentry>
87 <term><option>--filename=<replaceable>filename</replaceable></option></term>
88 <listitem><para>
89 Specifies the absolute path name to a file on the host file
90 system.
91 </para></listitem>
92 </varlistentry>
93 <varlistentry>
94 <term><option>--size=<replaceable>megabytes</replaceable></option></term>
95 <listitem><para>
96 Specifies the image capacity in one megabyte units.
97 </para></listitem>
98 </varlistentry>
99 <varlistentry>
100 <term><option>--sizebyte=<replaceable>bytes</replaceable></option></term>
101 <listitem><para>
102 Specifies the image capacity in one byte units.
103 </para></listitem>
104 </varlistentry>
105 <varlistentry>
106 <term><option>--diffparent=<replaceable>UUID</replaceable> | <replaceable>filename</replaceable></option></term>
107 <listitem><para>
108 Specifies the Universally Unique Identifier (UUID) or
109 absolute path name of a differencing image parent file on
110 the host file system.
111 </para><para>
112 Use this file to share a base box disk image among VMs.
113 </para></listitem>
114 </varlistentry>
115 <varlistentry>
116 <term><option>--format=VDI | VMDK | VHD</option></term>
117 <listitem><para>
118 Specifies the file format of the output file. Valid formats
119 are <literal>VDI</literal>, <literal>VMDK</literal>, and
120 <literal>VHD</literal>. The default format is
121 <literal>VDI</literal>.
122 </para></listitem>
123 </varlistentry>
124 <varlistentry>
125 <term><option>--variant=Standard,Fixed,Split2G,Stream,ESX, Formatted</option></term>
126 <listitem><para>
127 Specifies the file format variant for the target medium,
128 which is a comma-separated list of variants. Following are
129 the valid values:
130 </para><itemizedlist>
131 <listitem><para>
132 <literal>Standard</literal> is the default disk image
133 type, which has a dynamically allocated file size.
134 </para></listitem>
135 <listitem><para>
136 <literal>Fixed</literal> uses a disk image that has a
137 fixed file size.
138 </para></listitem>
139 <listitem><para>
140 <literal>Split2G</literal> indicates that the disk image
141 is split into 2GB segments. This value is for VMDK only.
142 </para></listitem>
143 <listitem><para>
144 <literal>Stream</literal> optimizes the disk image for
145 downloading. This value is for VMDK only.
146 </para></listitem>
147 <listitem><para>
148 <literal>ESX</literal> is used for some VMWare products.
149 This value is for VMDK only.
150 </para></listitem>
151 <listitem><para>
152 <literal>Formatted</literal>
153 </para><para>
154 For floppy images only. Formats the medium
155 automatically.
156 </para></listitem>
157 </itemizedlist><para>
158 Note that not all variant combinations are valid. Specifying
159 incompatible variant values in the list will produce an
160 error message.
161 </para></listitem>
162 </varlistentry>
163 </variablelist>
164 </refsect1>
165
166 <refsect1>
167 <title>Examples</title>
168 <remark role="help-scope" condition="GLOBAL" />
169 <para>
170 The following command creates a new disk image file called
171 <filename>disk01.vdi</filename>. The file size is 1024 megabytes.
172 </para>
173<screen>$ VBoxManage createmedium --filename disk01.vdi --size 1024</screen>
174 <para>
175 The following command creates a new floppy disk image file called
176 <filename>floppy01.vdi</filename>. The file size is 1 megabyte.
177 </para>
178<screen>$ VBoxManage createmedium floppy --filename floppy01.img --size 1</screen>
179 </refsect1>
180</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