VirtualBox

source: vbox/trunk/doc/manual/en_US/man_VBoxManage-common.xml@ 96300

最後變更 在這個檔案從96300是 96300,由 vboxsync 提交於 3 年 前

doc: comment fixing

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Author Date Id Revision
檔案大小: 10.6 KB
 
1<?xml version="1.0" encoding="UTF-8"?>
2<!--
3 manpage, user manual, usage: VBoxManage
4-->
5<!--
6 Copyright (C) 2006-2020 Oracle Corporation
7
8 This file is part of VirtualBox Open Source Edition (OSE), as
9 available from http://www.alldomusa.eu.org. This file is free software;
10 you can redistribute it and/or modify it under the terms of the GNU
11 General Public License (GPL) as published by the Free Software
12 Foundation, in version 2 as it comes in the "COPYING" file of the
13 VirtualBox OSE distribution. VirtualBox OSE is distributed in the
14 hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
15-->
16<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
17 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"[
18<!ENTITY % all.entities SYSTEM "all-entities.ent">
19%all.entities;
20]>
21<refentry id="vboxmanage-common" lang="en">
22 <refentryinfo>
23 <pubdate>$Date: 2022-08-18 17:27:14 +0000 (Thu, 18 Aug 2022) $</pubdate>
24 <title>VBoxManage</title>
25 </refentryinfo>
26
27 <refmeta>
28 <refentrytitle>VBoxManage</refentrytitle>
29 <manvolnum>1</manvolnum>
30 </refmeta>
31
32 <refnamediv>
33 <refname>VBoxManage</refname>
34 <refpurpose>&product-name; command-line interface</refpurpose>
35 <refclass>&product-name;</refclass>
36 </refnamediv>
37
38 <refsynopsisdiv>
39 <cmdsynopsis id="synopsis-vboxmanage-common">
40<!-- The 'id' is mandatory and must start with 'synopsis-'. -->
41 <command>VBoxManage</command>
42 <group>
43 <arg choice="plain">-V</arg>
44 <arg choice="plain">--version</arg>
45 </group>
46 <arg>--dump-build-type</arg>
47 <group>
48 <arg choice="plain">-q</arg>
49 <arg choice="plain">--nologo</arg>
50 </group>
51 <arg>--settingspw=<replaceable>password</replaceable></arg>
52 <arg>--settingspwfile=<replaceable>pw-file</replaceable></arg>
53 <arg>@<replaceable>response-file</replaceable></arg>
54 <arg><arg>help</arg> <replaceable>subcommand</replaceable></arg>
55 </cmdsynopsis>
56 </refsynopsisdiv>
57
58 <refsect1>
59 <title>Description</title>
60 <para>
61 The <command>VBoxManage</command> command is the command-line
62 interface (CLI) for the &product-name; software. The CLI supports
63 all the features that are available with the &product-name;
64 graphical user interface (GUI). In addition, you can use the
65 <command>VBoxManage</command> command to manage the features of
66 the virtualization engine that cannot be managed by the GUI.
67 </para>
68 <para>
69 Each time you invoke the <command>VBoxManage</command> command,
70 only one command is executed. Note that some
71 <command>VBoxManage</command> subcommands invoke several
72 subcommands.
73 </para>
74 <para>
75 Run the <command>VBoxManage</command> command from the command
76 line of the host operating system (OS) to control &product-name;
77 software.
78 </para>
79 <para>
80 The <command>VBoxManage</command> command is stored in the
81 following locations on the host system:
82 </para>
83 <itemizedlist>
84 <listitem><para>
85 <emphasis role="bold">Linux:</emphasis>
86 <filename>/usr/bin/VBoxManage</filename>
87 </para></listitem>
88 <listitem><para>
89 <emphasis role="bold">Mac OS X:</emphasis>
90 <filename>/Applications/VirtualBox.app/Contents/MacOS/VBoxManage</filename>
91 </para></listitem>
92 <listitem><para>
93 <emphasis role="bold">Oracle Solaris:</emphasis>
94 <filename>/opt/VirtualBox/bin/VBoxManage</filename>
95 </para></listitem>
96 <listitem><para>
97 <emphasis role="bold">Windows:</emphasis>
98 <filename>C:\Program
99 Files\Oracle\VirtualBox\VBoxManage.exe</filename>
100 </para></listitem>
101 </itemizedlist>
102 <para>
103 In addition to managing virtual machines (VMs) with this CLI or
104 the GUI, you can use the <command>VBoxHeadless</command> CLI to
105 manage VMs remotely.
106 </para>
107 <para>
108 The <command>VBoxManage</command> command performs particular
109 tasks by using subcommands, such as <command>list</command>,
110 <command>createvm</command>, and <command>startvm</command>. See
111 the associated information for each <command>VBoxManage</command>
112 subcommand.
113 </para>
114 <para>
115 If required, specify the VM by its name or by its Universally
116 Unique Identifier (UUID).
117 </para>
118 <para>
119 Use the <command>VBoxManage list vms</command> command to obtain
120 information about all currently registered VMs, including the VM
121 names and associated UUIDs.
122 </para>
123 <para>
124 Note that you must enclose the entire VM name in double quotes if
125 it contains spaces.
126 </para>
127 <refsect2 id="vboxmanage-common-options">
128 <title>General Options</title>
129 <variablelist>
130 <varlistentry>
131 <term><option>--nologo</option></term>
132 <listitem><para>
133 Suppresses the output of the logo information, which is
134 useful for scripts.
135 </para><para>
136 The short version of this option is <option>-q</option>.
137 </para></listitem>
138 </varlistentry>
139 <varlistentry>
140 <term><option>--settingspw=[<replaceable>password</replaceable>]</option></term>
141 <listitem><para>
142 Specifies the settings password. You can optionally
143 specify the password as an argument to this option. If you
144 do not specify the password in this way, the
145 <command>VBoxManage</command> command prompts you for the
146 password.
147 </para><para>
148 The settings password is a security feature that encrypts
149 stored settings, which are stored as plain text by
150 default.
151 </para><para>
152 You cannot unencrypt encrypted settings. So, if the
153 settings are encrypted, you must continue to specify the
154 <option>--settingspw</option> or
155 <option>--settingspwfile</option> option.
156 </para><para>
157 Only the iSCSI secret is encrypted at this time.
158 </para><remark>
159 This design does not conform to Oracle's security
160 guidelines. You should not be able to specify a password
161 on the command line because the password can be seen in a
162 process listing.
163 </remark></listitem>
164 </varlistentry>
165 <varlistentry>
166 <term><option>--settingspwfile=<replaceable>pw-filename</replaceable></option></term>
167 <listitem><para>
168 Specifies the file that contains the settings password.
169 </para></listitem>
170 </varlistentry>
171 <varlistentry>
172 <term><option>--version</option></term>
173 <listitem><para>
174 Shows version information about the
175 <command>VBoxManage</command> command.
176 </para><para>
177 The short version of this option is <option>-V</option>.
178 </para></listitem>
179 </varlistentry>
180 <varlistentry>
181 <term>@<replaceable>response-file</replaceable></term>
182 <listitem><para>
183 Loads arguments from the specified Bourne shell response
184 file.
185 </para></listitem>
186 </varlistentry>
187 <varlistentry>
188 <term><replaceable>subcommand</replaceable></term>
189 <listitem><para>
190 Specifies one of the <command>VBoxManage</command>
191 subcommands, such as <command>controlvm</command>,
192 <command>createvm</command>, <command>list</command>,
193 <command>modifyvm</command>,
194 <command>showvminfo</command>, <command>startvm</command>,
195 <command>storageattach</command>, and
196 <command>storagectl</command>.
197 </para><para>
198 Each subcommand is described in its own command topic,
199 some of which are shown in See Also sections.
200 </para></listitem>
201 </varlistentry>
202 </variablelist>
203 </refsect2>
204 </refsect1>
205
206 <refsect1>
207 <title>Examples</title>
208 <remark role="help-scope" condition="GLOBAL"/>
209 <para>
210 The following command creates a virtual machine called
211 <literal>Win8</literal> and registers it with &product-name; by
212 using the <option>--register</option> option.
213 </para>
214<screen>$ VBoxManage createvm --name "Win8" --register
215Virtual machine 'Win8' is created.
216UUID: <replaceable>UUID-string</replaceable>
217Settings file: '/home/<replaceable>username</replaceable>/VirtualBox VMs/Win8/Win8.vbox'</screen>
218 <para>
219 The command output shows that the <literal>Win8</literal> VM is
220 assigned a UUID and an XML machine settings file.
221 </para>
222 <para>
223 You can use the <command>VBoxManage showvminfo</command> command
224 to view the configuration information of a VM.
225 </para>
226 <para>
227 The following example uses the <command>VBoxManage
228 modifyvm</command> command to change the amount of memory for the
229 <literal>Windows XP</literal> VM to be 1024 megabytes:
230 </para>
231<screen>$ VBoxManage modifyvm "Windows XP" --memory 1024</screen>
232 <para>
233 Note that you can use the <command>VBoxManage modifyvm</command>
234 command even when the VM is powered off.
235 </para>
236 <para>
237 You can use the <command>VBoxManage storagectl</command> command
238 or the <command>VBoxManage storageattach</command> command to
239 modify the storage configuration for a VM. For example, to create
240 a SATA storage controller called <literal>sata01</literal> and add
241 it to the <literal>ol7</literal> VM:
242 </para>
243<screen>$ VBoxManage storagectl ol7 --name "sata01" --add sata</screen>
244 <para>
245 Use the <command>VBoxManage startvm</command> command to start a
246 VM that is currently powered off. For example, to start the
247 <literal>win7</literal> VM:
248 </para>
249<screen>$ VBoxManage startvm win7</screen>
250 <para>
251 Use the <command>VBoxManage controlvm</command> command to pause
252 or save a VM that is currently running. You can also use this
253 command to modify settings for the VM. For example, to enable
254 audio input for the <literal>ol6u9</literal> VM.
255 </para>
256<screen>$ VBoxManage controlvm ol6u9 audioin on</screen>
257 </refsect1>
258
259 <refsect1>
260 <title>See Also</title>
261 <para>
262 <xref linkend="vboxmanage-controlvm" />,
263 <xref linkend="vboxmanage-createvm" />,
264 <xref linkend="vboxmanage-list" />,
265 <xref linkend="vboxmanage-modifyvm" />,
266 <xref linkend="vboxmanage-showvminfo" />,
267 <xref linkend="vboxmanage-startvm" />,
268 <xref linkend="vboxmanage-storageattach" />,
269 <xref linkend="vboxmanage-storagectl" />
270 </para>
271 </refsect1>
272</refentry>
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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