VirtualBox

source: vbox/trunk/doc/manual/en_US/man_VBoxManage-createvm.xml@ 86692

Last change on this file since 86692 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: 6.2 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<!--
3 manpage, user manual, usage: VBoxManage createvm
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-createvm" lang="en">
21 <refentryinfo>
22 <pubdate>August 2019</pubdate>
23 <title>VBoxManage createvm</title>
24 </refentryinfo>
25
26 <refmeta>
27 <refentrytitle>VBoxManage-createvm</refentrytitle>
28 <manvolnum>1</manvolnum>
29 </refmeta>
30
31 <refnamediv>
32 <refname>VBoxManage-createvm</refname>
33 <refpurpose>create a new virtual machine</refpurpose>
34 <refclass>Oracle VM VirtualBox</refclass>
35 </refnamediv>
36
37 <refsynopsisdiv>
38 <cmdsynopsis id="synopsis-vboxmanage-createvm">
39<!-- The 'id' is mandatory and must start with 'synopsis-'. -->
40 <command>VBoxManage createvm</command>
41 <arg choice="req">--name=<replaceable>name</replaceable></arg>
42 <arg>--basefolder=<replaceable>basefolder</replaceable></arg>
43 <arg>--default</arg>
44 <arg>--group=<replaceable>group-ID</replaceable>, ...</arg>
45 <arg>--ostype=<replaceable>ostype</replaceable></arg>
46 <arg>--register</arg>
47 <arg>--uuid=<replaceable>uuid</replaceable></arg>
48 </cmdsynopsis>
49 </refsynopsisdiv>
50
51 <refsect1>
52 <title>Description</title>
53 <para>
54 The <command>VBoxManage createvm</command> command creates a new
55 XML virtual machine (VM) definition file.
56 </para>
57 <para>
58 You must specify the name of the VM by using <option>--name
59 <replaceable>name</replaceable></option>. This name is used by
60 default as the name of the settings file that has the
61 <filename>.vbox</filename> extension and the machine folder, which
62 is a subfolder of the <filename>$HOME/VirtualBox VMs</filename>
63 directory.
64 </para>
65 <para>
66 Ensure that the VM name conforms to the host OS file name
67 requirements. If you later rename the VM, the file and folder
68 names will be updated to match the new name automatically.
69 </para>
70 </refsect1>
71
72 <refsect1>
73 <title>Command Options</title>
74 <para>
75 In addition to specifying the name or UUID of the VM, which is
76 required, you can specify any of the following options:
77 </para>
78 <variablelist>
79 <varlistentry>
80 <term><option>--basefolder=<replaceable>basefolder</replaceable></option></term>
81 <listitem><para>
82 Specifies the name of the folder in which to save the
83 machine configuration file for the new VM.
84 </para><para>
85 Note that the names of the file and the folder do not change
86 if you rename the VM.
87 </para></listitem>
88 </varlistentry>
89 <varlistentry>
90 <term><option>--default</option></term>
91 <listitem><para>
92 Applies a default hardware configuration for the specified
93 guest OS. By default, the VM is created with minimal
94 hardware.
95 </para></listitem>
96 </varlistentry>
97 <varlistentry>
98 <term><option>--group=<replaceable>group-ID</replaceable>, ...</option></term>
99 <listitem><para>
100 Assigns the VM to the specified groups. If you specify more
101 than one group, separate each group name with a comma.
102 </para><para>
103 Note that each group is identified by a group ID that starts
104 with a slash character (<literal>/</literal>) so that groups
105 can be nested. By default, a VM is always assigned
106 membership to the <literal>/</literal> group.
107 </para></listitem>
108 </varlistentry>
109 <varlistentry>
110 <term><option>--ostype=<replaceable>ostype</replaceable></option></term>
111 <listitem><para>
112 Specifies the guest OS to run in the VM. Run the
113 <command>VBoxManage list ostypes</command> command to see
114 the available OS types.
115 </para></listitem>
116 </varlistentry>
117 <varlistentry>
118 <term><option>--register</option></term>
119 <listitem><para>
120 Registers the VM with your &product-name; installation. By
121 default, the <command>VBoxManage createvm</command> command
122 creates only the XML configuration for the VM but does not
123 register the VM. If you do not register the VM at creation,
124 you can run the <command>VBoxManage registervm</command>
125 command after you create the VM.
126 </para></listitem>
127 </varlistentry>
128 <varlistentry>
129 <term><option>--uuid=<replaceable>uuid</replaceable></option></term>
130 <listitem><para>
131 Specifies the Universally Unique Identifier (UUID) of the
132 VM. Ensure that this UUID is unique within the
133 &product-name; namespace of the host or of its VM group
134 memberships if you decide to register the VM. By default,
135 &product-name; command provides the UUID.
136 </para></listitem>
137 </varlistentry>
138 </variablelist>
139 </refsect1>
140
141 <refsect1>
142 <title>Examples</title>
143 <remark role="help-scope" condition="GLOBAL" />
144 <para>
145 The following command creates a VM called <literal>vm2</literal>
146 where you plan to run a 64-bit version of Oracle Linux.
147 </para>
148<screen>$ VBoxManage createvm --name "vm2" --ostype "Oracle_64"</screen>
149 <para>
150 The following command creates and registers a VM called
151 <literal>vm3</literal>.
152 </para>
153<screen>$ VBoxManage createvm --name "vm3" --register</screen>
154 </refsect1>
155
156 <refsect1>
157 <title>See Also</title>
158 <para>
159 <xref linkend="vboxmanage-list" />,
160 <xref linkend="vboxmanage-registervm" />
161 </para>
162 </refsect1>
163</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