1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
2 | <!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
---|
3 | "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd">
|
---|
4 | <chapter id="AdvancedTopics">
|
---|
5 | <title>Advanced topics</title>
|
---|
6 |
|
---|
7 | <sect1 id="vboxsdl">
|
---|
8 | <title>VBoxSDL, the simplified VM displayer</title>
|
---|
9 |
|
---|
10 | <sect2>
|
---|
11 | <title>Introduction</title>
|
---|
12 |
|
---|
13 | <para>VBoxSDL is a simple graphical user interface (GUI) that lacks the
|
---|
14 | nice point-and-click support which VirtualBox, our main GUI, provides.
|
---|
15 | VBoxSDL is currently primarily used internally for debugging VirtualBox
|
---|
16 | and therefore not officially supported. Still, you may find it useful
|
---|
17 | for environments where the virtual machines are not necessarily
|
---|
18 | controlled by the same person that uses the virtual machine.<note>
|
---|
19 | <para>VBoxSDL is not available on the Mac OS X host platform.</para>
|
---|
20 | </note></para>
|
---|
21 |
|
---|
22 | <para>As you can see in the following screenshot, VBoxSDL does indeed
|
---|
23 | only provide a simple window that contains only the "pure" virtual
|
---|
24 | machine, without menus or other controls to click upon and no additional
|
---|
25 | indicators of virtual machine activity:</para>
|
---|
26 |
|
---|
27 | <para><mediaobject>
|
---|
28 | <imageobject>
|
---|
29 | <imagedata align="center" fileref="images/vbox-sdl.png"
|
---|
30 | width="10cm" />
|
---|
31 | </imageobject>
|
---|
32 | </mediaobject></para>
|
---|
33 |
|
---|
34 | <para>To start a virtual machine with VBoxSDL instead of the VirtualBox
|
---|
35 | GUI, enter the following on a command line:<screen>VBoxSDL --startvm <vm></screen></para>
|
---|
36 |
|
---|
37 | <para>where <computeroutput><vm></computeroutput> is, as usual
|
---|
38 | with VirtualBox command line parameters, the name or UUID of an existing
|
---|
39 | virtual machine.</para>
|
---|
40 | </sect2>
|
---|
41 |
|
---|
42 | <sect2>
|
---|
43 | <title>Secure labeling with VBoxSDL</title>
|
---|
44 |
|
---|
45 | <para>When running guest operating systems in full screen mode, the guest
|
---|
46 | operating system usually has control over the whole screen. This could
|
---|
47 | present a security risk as the guest operating system might fool the
|
---|
48 | user into thinking that it is either a different system (which might
|
---|
49 | have a higher security level) or it might present messages on the screen
|
---|
50 | that appear to stem from the host operating system.</para>
|
---|
51 |
|
---|
52 | <para>In order to protect the user against the above mentioned security
|
---|
53 | risks, the secure labeling feature has been developed. Secure labeling
|
---|
54 | is currently available only for VBoxSDL. When enabled, a portion of the
|
---|
55 | display area is reserved for a label in which a user defined message is
|
---|
56 | displayed. The label height in set to 20 pixels in VBoxSDL. The label
|
---|
57 | font color and background color can be optionally set as hexadecimal RGB
|
---|
58 | color values. The following syntax is used to enable secure
|
---|
59 | labeling:</para>
|
---|
60 |
|
---|
61 | <screen>VBoxSDL --startvm "VM name"
|
---|
62 | --securelabel --seclabelfnt ~/fonts/arial.ttf
|
---|
63 | --seclabelsiz 14 --seclabelfgcol 00FF00 --seclabelbgcol 00FFFF</screen>
|
---|
64 |
|
---|
65 | <para>In addition to enabling secure labeling, a TrueType font has to be
|
---|
66 | supplied. To use another font size than 12 point use the parameter
|
---|
67 | <computeroutput>--seclabelsiz</computeroutput>.</para>
|
---|
68 |
|
---|
69 | <para>The label text can be set with <screen>VBoxManage setextradata "VM name" "VBoxSDL/SecureLabel" "The Label"</screen>
|
---|
70 | Changing this label will take effect immediately.</para>
|
---|
71 |
|
---|
72 | <para>Typically, full screen resolutions are limited to certain
|
---|
73 | "standard" geometries such as 1024 x 768. Increasing this by twenty
|
---|
74 | lines is not usually feasible, so in most cases, VBoxSDL will chose the
|
---|
75 | next higher resolution, e.g. 1280 x 1024 and the guest's screen will not
|
---|
76 | cover the whole display surface. If VBoxSDL is unable to choose a higher
|
---|
77 | resolution, the secure label will be painted on top of the guest's
|
---|
78 | screen surface. In order to address the problem of the bottom part of
|
---|
79 | the guest screen being hidden, VBoxSDL can provide custom video modes to
|
---|
80 | the guest that are reduced by the height of the label. For Windows
|
---|
81 | guests and recent Solaris and Linux guests, the VirtualBox Guest
|
---|
82 | Additions automatically provide the reduced video modes. Additionally,
|
---|
83 | the VESA BIOS has been adjusted to duplicate its standard mode table
|
---|
84 | with adjusted resolutions. The adjusted mode IDs can be calculated using
|
---|
85 | the following formula:</para>
|
---|
86 |
|
---|
87 | <screen>reduced_modeid = modeid + 0x30</screen>
|
---|
88 |
|
---|
89 | <para>For example, in order to start Linux with 1024 x 748 x 16, the
|
---|
90 | standard mode 0x117 (1024 x 768 x 16) is used as a base. The Linux video
|
---|
91 | mode kernel parameter can then be calculated using:</para>
|
---|
92 |
|
---|
93 | <screen>vga = 0x200 | 0x117 + 0x30
|
---|
94 | vga = 839</screen>
|
---|
95 |
|
---|
96 | <para>The reason for duplicating the standard modes instead of only
|
---|
97 | supplying the adjusted modes is that most guest operating systems
|
---|
98 | require the standard VESA modes to be fixed and refuse to start with
|
---|
99 | different modes.</para>
|
---|
100 |
|
---|
101 | <para>When using the X.org VESA driver, custom modelines have to be
|
---|
102 | calculated and added to the configuration (usually in
|
---|
103 | <literal>/etc/X11/xorg.conf</literal>. A handy tool to determine
|
---|
104 | modeline entries can be found at <literal><ulink
|
---|
105 | url="http://www.tkk.fi/Misc/Electronics/faq/vga2rgb/calc.html">http://www.tkk.fi/Misc/Electronics/faq/vga2rgb/calc.html</ulink></literal>.)</para>
|
---|
106 | </sect2>
|
---|
107 |
|
---|
108 | <sect2>
|
---|
109 | <title>Releasing modifiers with VBoxSDL on Linux</title>
|
---|
110 |
|
---|
111 | <para>When switching from a X virtual terminal (VT) to another VT using
|
---|
112 | Ctrl-Alt-Fx while the VBoxSDL window has the input focus, the guest will
|
---|
113 | receive Ctrl and Alt keypress events without receiving the corresponding
|
---|
114 | key release events. This is an architectural limitation of Linux. In
|
---|
115 | order to reset the modifier keys, it is possible to send
|
---|
116 | <computeroutput>SIGUSR1</computeroutput> to the VBoxSDL main thread
|
---|
117 | (first entry in the <computeroutput>ps</computeroutput> list). For
|
---|
118 | example, when switching away to another VT and saving the virtual
|
---|
119 | machine from this terminal, the following sequence can be used to make
|
---|
120 | sure the VM is not saved with stuck modifiers:</para>
|
---|
121 |
|
---|
122 | <para><screen>kill -usr1 <pid>
|
---|
123 | VBoxManage controlvm "Windows 2000" savestate</screen></para>
|
---|
124 | </sect2>
|
---|
125 | </sect1>
|
---|
126 |
|
---|
127 | <sect1 id="autologon">
|
---|
128 | <title>Automated guest logons</title>
|
---|
129 |
|
---|
130 | <para>VirtualBox provides Guest Addition modules for Windows, Linux and
|
---|
131 | Solaris to enable automated logons on the guest.</para>
|
---|
132 |
|
---|
133 | <para>When a guest operating system is running in a virtual machine, it
|
---|
134 | might be desirable to perform coordinated and automated logons using
|
---|
135 | credentials from a master logon system. (With "credentials", we are
|
---|
136 | referring to logon information consisting of user name, password and
|
---|
137 | domain name, where each value might be empty.)</para>
|
---|
138 |
|
---|
139 | <sect2 id="autologon_win">
|
---|
140 | <title>Automated Windows guest logons</title>
|
---|
141 |
|
---|
142 | <para>Since Windows NT, Windows has provided a modular system logon
|
---|
143 | subsystem ("Winlogon") which can be customized and extended by means of
|
---|
144 | so-called GINA modules (Graphical Identification and Authentication).
|
---|
145 | With Windows Vista and Windows 7, the GINA modules were replaced with a
|
---|
146 | new mechanism called "credential providers". The VirtualBox Guest
|
---|
147 | Additions for Windows come with both, a GINA and a credential provider
|
---|
148 | module, and therefore enable any Windows guest to perform automated
|
---|
149 | logons.</para>
|
---|
150 |
|
---|
151 | <para>To activate the VirtualBox GINA or credential provider module,
|
---|
152 | install the Guest Additions with using the command line switch
|
---|
153 | <computeroutput>/with_autologon</computeroutput>. All the following
|
---|
154 | manual steps required for installing these modules will be then done by
|
---|
155 | the installer.</para>
|
---|
156 |
|
---|
157 | <para>To manually install the VirtualBox GINA module, extract the Guest
|
---|
158 | Additions (see <xref linkend="windows-guest-file-extraction" />) and
|
---|
159 | copy the file <computeroutput>VBoxGINA.dll</computeroutput> to the
|
---|
160 | Windows <computeroutput>SYSTEM32</computeroutput> directory. Then, in
|
---|
161 | the registry, create the following key: <screen>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\GinaDLL</screen>
|
---|
162 | with a value of <computeroutput>VBoxGINA.dll</computeroutput>.</para>
|
---|
163 |
|
---|
164 | <note>
|
---|
165 | <para>The VirtualBox GINA module is implemented as a wrapper around
|
---|
166 | the standard Windows GINA module
|
---|
167 | (<computeroutput>MSGINA.DLL</computeroutput>). As a result, it will
|
---|
168 | most likely not work correctly with 3rd party GINA modules.</para>
|
---|
169 | </note>
|
---|
170 |
|
---|
171 | <para>To manually install the VirtualBox credential provider module,
|
---|
172 | extract the Guest Additions (see <xref
|
---|
173 | linkend="windows-guest-file-extraction" />) and copy the file
|
---|
174 | <computeroutput>VBoxCredProv.dll</computeroutput> to the Windows
|
---|
175 | <computeroutput>SYSTEM32</computeroutput> directory. Then, in the
|
---|
176 | registry, create the following keys:<screen>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\
|
---|
177 | Authentication\Credential Providers\{275D3BCC-22BB-4948-A7F6-3A3054EBA92B}
|
---|
178 |
|
---|
179 | HKEY_CLASSES_ROOT\CLSID\{275D3BCC-22BB-4948-A7F6-3A3054EBA92B}
|
---|
180 |
|
---|
181 | HKEY_CLASSES_ROOT\CLSID\{275D3BCC-22BB-4948-A7F6-3A3054EBA92B}\InprocServer32</screen></para>
|
---|
182 |
|
---|
183 | <para>with all default values (the key named
|
---|
184 | <computeroutput>(Default)</computeroutput> in each key) set to
|
---|
185 | <computeroutput>VBoxCredProv</computeroutput>. After that a new string
|
---|
186 | named <screen>HKEY_CLASSES_ROOT\CLSID\{275D3BCC-22BB-4948-A7F6-3A3054EBA92B}\InprocServer32\ThreadingModel</screen>
|
---|
187 | with a value of <computeroutput>Apartment</computeroutput> has to be
|
---|
188 | created.</para>
|
---|
189 |
|
---|
190 | <para>To set credentials, use the following command on a
|
---|
191 | <emphasis>running</emphasis> VM:</para>
|
---|
192 |
|
---|
193 | <screen>VBoxManage controlvm "Windows XP" setcredentials "John Doe" "secretpassword" "DOMTEST"</screen>
|
---|
194 |
|
---|
195 | <para>While the VM is running, the credentials can be queried by the
|
---|
196 | VirtualBox logon modules (GINA or credential provider) using the
|
---|
197 | VirtualBox Guest Additions device driver. When Windows is in "logged
|
---|
198 | out" mode, the logon modules will constantly poll for credentials and if
|
---|
199 | they are present, a logon will be attempted. After retrieving the
|
---|
200 | credentials, the logon modules will erase them so that the above command
|
---|
201 | will have to be repeated for subsequent logons.</para>
|
---|
202 |
|
---|
203 | <para>For security reasons, credentials are not stored in any persistent
|
---|
204 | manner and will be lost when the VM is reset. Also, the credentials are
|
---|
205 | "write-only", i.e. there is no way to retrieve the credentials from the
|
---|
206 | host side. Credentials can be reset from the host side by setting empty
|
---|
207 | values.</para>
|
---|
208 |
|
---|
209 | <para>Depending on the particular variant of the Windows guest, the
|
---|
210 | following restrictions apply: <orderedlist>
|
---|
211 | <listitem>
|
---|
212 | <para>For <emphasis role="bold">Windows XP guests,</emphasis> the
|
---|
213 | logon subsystem needs to be configured to use the classic logon
|
---|
214 | dialog as the VirtualBox GINA module does not support the XP-style
|
---|
215 | welcome dialog.</para>
|
---|
216 | </listitem>
|
---|
217 |
|
---|
218 | <listitem>
|
---|
219 | <para>For <emphasis role="bold">Windows Vista, Windows 7
|
---|
220 | and Windows 8 guests,</emphasis> the logon subsystem does not support
|
---|
221 | the so-called Secure Attention Sequence
|
---|
222 | (<computeroutput>CTRL+ALT+DEL</computeroutput>). As a result, the
|
---|
223 | guest's group policy settings need to be changed to not use the
|
---|
224 | Secure Attention Sequence. Also, the user name given is only
|
---|
225 | compared to the true user name, not the user friendly name. This
|
---|
226 | means that when you rename a user, you still have to supply the
|
---|
227 | original user name (internally, Windows never renames user
|
---|
228 | accounts).</para>
|
---|
229 | </listitem>
|
---|
230 |
|
---|
231 | <listitem>
|
---|
232 | <para>Auto-logon handling of the built-in Windows Remote Desktop
|
---|
233 | Service (formerly known as Terminal Services) is disabled by
|
---|
234 | default. To enable it, create the registry key <screen>HKEY_LOCAL_MACHINE\SOFTWARE\Oracle\VirtualBox Guest Additions\AutoLogon</screen>
|
---|
235 | with a <computeroutput>DWORD</computeroutput> value of
|
---|
236 | <computeroutput>1</computeroutput>.</para>
|
---|
237 | </listitem>
|
---|
238 | </orderedlist></para>
|
---|
239 |
|
---|
240 | <para>The following command forces VirtualBox to keep the credentials
|
---|
241 | after they were read by the guest and on VM reset: <screen>VBoxManage setextradata "Windows XP" VBoxInternal/Devices/VMMDev/0/Config/KeepCredentials 1</screen>Note
|
---|
242 | that this is a potential security risk as a malicious application
|
---|
243 | running on the guest could request this information using the proper
|
---|
244 | interface.</para>
|
---|
245 | </sect2>
|
---|
246 |
|
---|
247 | <sect2 id="autologon_unix">
|
---|
248 | <title>Automated Linux/Unix guest logons</title>
|
---|
249 |
|
---|
250 | <para>Starting with version 3.2, VirtualBox provides a custom PAM module
|
---|
251 | (Pluggable Authentication Module) which can be used to perform automated
|
---|
252 | guest logons on platforms which support this framework. Virtually all
|
---|
253 | modern Linux/Unix distributions rely on PAM.</para>
|
---|
254 |
|
---|
255 | <para>For automated logons on Ubuntu (or Ubuntu-derived) distributions
|
---|
256 | using LightDM as the display manager, please see
|
---|
257 | <xref linkend="autologon_unix_lightdm" />.</para>
|
---|
258 |
|
---|
259 | <para>The <computeroutput>pam_vbox.so</computeroutput> module itself
|
---|
260 | <emphasis role="bold">does not</emphasis> do an actual verification of
|
---|
261 | the credentials passed to the guest OS; instead it relies on other
|
---|
262 | modules such as <computeroutput>pam_unix.so</computeroutput> or
|
---|
263 | <computeroutput>pam_unix2.so</computeroutput> down in the PAM stack to
|
---|
264 | do the actual validation using the credentials retrieved by
|
---|
265 | <computeroutput>pam_vbox.so</computeroutput>. Therefore
|
---|
266 | <computeroutput>pam_vbox.so</computeroutput> has to be on top of the
|
---|
267 | authentication PAM service list.</para>
|
---|
268 |
|
---|
269 | <note>
|
---|
270 | <para>The <computeroutput>pam_vbox.so</computeroutput> only supports
|
---|
271 | the <computeroutput>auth</computeroutput> primitive. Other primitives
|
---|
272 | such as <computeroutput>account</computeroutput>,
|
---|
273 | <computeroutput>session</computeroutput> or
|
---|
274 | <computeroutput>password</computeroutput> are not supported.</para>
|
---|
275 | </note>
|
---|
276 |
|
---|
277 | <para>The <computeroutput>pam_vbox.so</computeroutput> module is shipped
|
---|
278 | as part of the Guest Additions but it is not installed and/or activated
|
---|
279 | on the guest OS by default. In order to install it, it has to be copied
|
---|
280 | from
|
---|
281 | <computeroutput>/opt/VBoxGuestAdditions-<version>/lib/VBoxGuestAdditions/</computeroutput>
|
---|
282 | to the security modules directory, usually
|
---|
283 | <computeroutput>/lib/security/</computeroutput> on 32-bit guest Linuxes
|
---|
284 | or <computeroutput>/lib64/security/</computeroutput> on 64-bit ones.
|
---|
285 | Please refer to your guest OS documentation for the correct PAM module
|
---|
286 | directory.</para>
|
---|
287 |
|
---|
288 | <para>For example, to use <computeroutput>pam_vbox.so</computeroutput>
|
---|
289 | with a Ubuntu Linux guest OS and GDM (the GNOME Desktop Manager) to
|
---|
290 | logon users automatically with the credentials passed by the host, the
|
---|
291 | guest OS has to be configured like the following:</para>
|
---|
292 |
|
---|
293 | <orderedlist>
|
---|
294 | <listitem>
|
---|
295 | <para>The <computeroutput>pam_vbox.so</computeroutput> module has to
|
---|
296 | be copied to the security modules directory, in this case it is
|
---|
297 | <computeroutput>/lib/security</computeroutput>.</para>
|
---|
298 | </listitem>
|
---|
299 |
|
---|
300 | <listitem>
|
---|
301 | <para>Edit the PAM configuration file for GDM found at
|
---|
302 | <computeroutput>/etc/pam.d/gdm</computeroutput>, adding the line
|
---|
303 | <computeroutput>auth requisite pam_vbox.so</computeroutput> at the
|
---|
304 | top. Additionaly, in most Linux distributions there is a file called
|
---|
305 | <computeroutput>/etc/pam.d/common-auth</computeroutput>. This file
|
---|
306 | is included in many other services (like the GDM file mentioned
|
---|
307 | above). There you also have to add the line <computeroutput>auth
|
---|
308 | requisite pam_vbox.so</computeroutput>.</para>
|
---|
309 | </listitem>
|
---|
310 |
|
---|
311 | <listitem>
|
---|
312 | <para>If authentication against the shadow database using
|
---|
313 | <computeroutput>pam_unix.so</computeroutput> or
|
---|
314 | <computeroutput>pam_unix2.so</computeroutput> is desired, the
|
---|
315 | argument <computeroutput>try_first_pass</computeroutput> for
|
---|
316 | <computeroutput>pam_unix.so</computeroutput> or
|
---|
317 | <computeroutput>use_first_pass</computeroutput> for
|
---|
318 | <computeroutput>pam_unix2.so</computeroutput> is needed in order to
|
---|
319 | pass the credentials from the VirtualBox module to the shadow
|
---|
320 | database authentication module. For Ubuntu, this needs to be added
|
---|
321 | to <computeroutput>/etc/pam.d/common-auth</computeroutput>, to the
|
---|
322 | end of the line referencing
|
---|
323 | <computeroutput>pam_unix.so</computeroutput>. This argument tells
|
---|
324 | the PAM module to use credentials already present in the stack, i.e.
|
---|
325 | the ones provided by the VirtualBox PAM module.</para>
|
---|
326 | </listitem>
|
---|
327 | </orderedlist>
|
---|
328 |
|
---|
329 | <para><warning>
|
---|
330 | <para>An incorrectly configured PAM stack can effectively prevent
|
---|
331 | you from logging into your guest system!</para>
|
---|
332 | </warning></para>
|
---|
333 |
|
---|
334 | <para>To make deployment easier, you can pass the argument
|
---|
335 | <computeroutput>debug</computeroutput> right after the
|
---|
336 | <computeroutput>pam_vbox.so</computeroutput> statement. Debug log output
|
---|
337 | will then be recorded using syslog.</para>
|
---|
338 |
|
---|
339 | <para><note>
|
---|
340 | <para>By default, pam_vbox will not wait for credentials to arrive
|
---|
341 | from the host, in other words: When a login prompt is shown (for
|
---|
342 | example by GDM/KDM or the text console) and pam_vbox does not yet
|
---|
343 | have credentials it does not wait until they arrive. Instead the
|
---|
344 | next module in the PAM stack (depending on the PAM configuration)
|
---|
345 | will have the chance for authentication.</para>
|
---|
346 | </note></para>
|
---|
347 |
|
---|
348 | <para>Starting with VirtualBox 4.1.4 pam_vbox supports various guest
|
---|
349 | property parameters which all reside in
|
---|
350 | <computeroutput>/VirtualBox/GuestAdd/PAM/</computeroutput>. These
|
---|
351 | parameters allow pam_vbox to wait for credentials to be provided by the
|
---|
352 | host and optionally can show a message while waiting for those. The
|
---|
353 | following guest properties can be set:</para>
|
---|
354 |
|
---|
355 | <orderedlist>
|
---|
356 | <listitem>
|
---|
357 | <para><computeroutput>CredsWait</computeroutput>: Set to "1" if
|
---|
358 | pam_vbox should start waiting until credentials arrive from the
|
---|
359 | host. Until then no other authentication methods such as manually
|
---|
360 | logging in will be available. If this property is empty or get
|
---|
361 | deleted no waiting for credentials will be performed and pam_vbox
|
---|
362 | will act like before (see paragraph above). This property must be
|
---|
363 | set read-only for the guest
|
---|
364 | (<computeroutput>RDONLYGUEST</computeroutput>).</para>
|
---|
365 | </listitem>
|
---|
366 |
|
---|
367 | <listitem>
|
---|
368 | <para><computeroutput>CredsWaitAbort</computeroutput>: Aborts waiting
|
---|
369 | for credentials when set to any value. Can be set from host and the
|
---|
370 | guest.</para>
|
---|
371 | </listitem>
|
---|
372 |
|
---|
373 | <listitem>
|
---|
374 | <para><computeroutput>CredsWaitTimeout</computeroutput>: Timeout (in
|
---|
375 | seconds) to let pam_vbox wait for credentials to arrive. When no
|
---|
376 | credentials arrive within this timeout, authentication of pam_vbox
|
---|
377 | will be set to failed and the next PAM module in chain will be
|
---|
378 | asked. If this property is not specified, set to "0" or an invalid
|
---|
379 | value, an infinite timeout will be used. This property must be set
|
---|
380 | read-only for the guest
|
---|
381 | (<computeroutput>RDONLYGUEST</computeroutput>).</para>
|
---|
382 | </listitem>
|
---|
383 | </orderedlist>
|
---|
384 |
|
---|
385 | <para>To customize pam_vbox further there are the following guest
|
---|
386 | properties:</para>
|
---|
387 |
|
---|
388 | <orderedlist>
|
---|
389 | <listitem>
|
---|
390 | <para><computeroutput>CredsMsgWaiting</computeroutput>: Custom
|
---|
391 | message showed while pam_vbox is waiting for credentials from the
|
---|
392 | host. This property must be set read-only for the guest
|
---|
393 | (<computeroutput>RDONLYGUEST</computeroutput>).</para>
|
---|
394 | </listitem>
|
---|
395 |
|
---|
396 | <listitem>
|
---|
397 | <para><computeroutput>CredsMsgWaitTimeout</computeroutput>: Custom
|
---|
398 | message showed when waiting for credentials by pam_vbox timed out,
|
---|
399 | e.g. did not arrive within time. This property must be set read-only
|
---|
400 | for the guest (<computeroutput>RDONLYGUEST</computeroutput>).</para>
|
---|
401 | </listitem>
|
---|
402 | </orderedlist>
|
---|
403 |
|
---|
404 | <para><note>
|
---|
405 | <para>If a pam_vbox guest property does not have set the right flags
|
---|
406 | (<computeroutput>RDONLYGUEST</computeroutput>) this property will be
|
---|
407 | ignored then and - depending on the property - a default value will
|
---|
408 | be set. This can result in pam_vbox not waiting for credentials.
|
---|
409 | Consult the appropriate syslog file for more information and use the
|
---|
410 | <computeroutput>debug</computeroutput> option.</para>
|
---|
411 | </note></para>
|
---|
412 |
|
---|
413 | <sect3 id="autologon_unix_lightdm">
|
---|
414 | <title>VirtualBox Greeter for Ubuntu / LightDM</title>
|
---|
415 |
|
---|
416 | <para>Starting with version 4.2.12, VirtualBox comes with an own greeter
|
---|
417 | module named vbox-greeter which can be used with LightDM 1.0.1 or later.
|
---|
418 | LightDM is the default display manager since Ubuntu 10.11 and therefore
|
---|
419 | also can be used for automated guest logons.</para>
|
---|
420 |
|
---|
421 | <para>vbox-greeter does not need the pam_vbox module described above
|
---|
422 | in order to function -- it comes with its own authentication mechanism
|
---|
423 | provided by LightDM. However, to provide maximum of flexibility both
|
---|
424 | modules can be used together on the same guest.</para>
|
---|
425 |
|
---|
426 | <para>As for the pam_vbox module, vbox-greeter is shipped as part of
|
---|
427 | the Guest Additions but it is not installed and/or activated on the
|
---|
428 | guest OS by default For installing vbox-greeter automatically upon
|
---|
429 | Guest Additions installation, use the
|
---|
430 | <computeroutput>--with-autologon</computeroutput> switch when starting
|
---|
431 | the VBoxLinuxAdditions.run file:</para><screen># ./VBoxLinuxAdditions.run -- --with-autologon</screen>
|
---|
432 |
|
---|
433 | <para>For manual or postponed installation, the
|
---|
434 | <computeroutput>vbox-greeter.desktop</computeroutput>
|
---|
435 | file has to be copied from
|
---|
436 | <computeroutput>/opt/VBoxGuestAdditions-<version>/shared/VBoxGuestAdditions/</computeroutput>
|
---|
437 | to the <computeroutput>xgreeters</computeroutput> directory, usually
|
---|
438 | <computeroutput>/usr/share/xgreeters/</computeroutput>.
|
---|
439 | Please refer to your guest OS documentation for the correct LightDM
|
---|
440 | greeter directory.</para>
|
---|
441 |
|
---|
442 | <para>The vbox-greeter module itself already was installed by the
|
---|
443 | VirtualBox Guest Additions installer and resides in
|
---|
444 | <computeroutput>/usr/sbin/</computeroutput>. To enable vbox-greeter as
|
---|
445 | the standard greeter module, the file
|
---|
446 | <computeroutput>/etc/lightdm/lightdm.conf</computeroutput> needs to be
|
---|
447 | edited:</para>
|
---|
448 |
|
---|
449 | <para><screen>[SeatDefaults]
|
---|
450 | greeter-session=vbox-greeter</screen></para>
|
---|
451 |
|
---|
452 | <note><para>The LightDM server needs to be fully restarted in order to
|
---|
453 | get vbox-greeter used as the default greeter. As root, do a
|
---|
454 | <computeroutput>service lightdm --full-restart</computeroutput> on
|
---|
455 | Ubuntu, or simply restart the guest.</para></note>
|
---|
456 |
|
---|
457 | <note><para>vbox-greeter is independent of the graphical session chosen
|
---|
458 | by the user (like Gnome, KDE, Unity etc). However, it requires FLTK 1.3
|
---|
459 | for representing its own user interface.</para></note>
|
---|
460 |
|
---|
461 | <para>There are numerous guest properties which can be used to further
|
---|
462 | customize the login experience. For automatically logging in users, the
|
---|
463 | same guest properties apply as for pam_vbox, see
|
---|
464 | <xref linkend="autologon_unix" />.</para>
|
---|
465 |
|
---|
466 | <para>In addition to the above mentioned guest properties, vbox-greeter
|
---|
467 | allows further customization of its user interface. These special guest
|
---|
468 | properties all reside in
|
---|
469 | <computeroutput>/VirtualBox/GuestAdd/Greeter/</computeroutput>:</para>
|
---|
470 |
|
---|
471 | <orderedlist>
|
---|
472 | <listitem>
|
---|
473 | <para><computeroutput>HideRestart</computeroutput>: Set to "1" if
|
---|
474 | vbox-greeter should hide the button to restart the guest. This
|
---|
475 | property must be set read-only for the guest
|
---|
476 | (<computeroutput>RDONLYGUEST</computeroutput>).</para>
|
---|
477 | </listitem>
|
---|
478 |
|
---|
479 | <listitem>
|
---|
480 | <para><computeroutput>HideShutdown</computeroutput>: Set to "1" if
|
---|
481 | vbox-greeter should hide the button to shutdown the guest. This
|
---|
482 | property must be set read-only for the guest
|
---|
483 | (<computeroutput>RDONLYGUEST</computeroutput>).</para>
|
---|
484 | </listitem>
|
---|
485 |
|
---|
486 | <listitem>
|
---|
487 | <para><computeroutput>BannerPath</computeroutput>: Path to a .PNG
|
---|
488 | file for using it as a banner on the top. The image size must be
|
---|
489 | 460 x 90 pixels, any bit depth. This property must be
|
---|
490 | set read-only for the guest
|
---|
491 | (<computeroutput>RDONLYGUEST</computeroutput>).</para>
|
---|
492 | </listitem>
|
---|
493 |
|
---|
494 | <listitem>
|
---|
495 | <para><computeroutput>UseTheming</computeroutput>: Set to "1" for
|
---|
496 | turning on the following theming options. This property must be
|
---|
497 | set read-only for the guest
|
---|
498 | (<computeroutput>RDONLYGUEST</computeroutput>).</para>
|
---|
499 | </listitem>
|
---|
500 |
|
---|
501 | <listitem>
|
---|
502 | <para><computeroutput>Theme/BackgroundColor</computeroutput>:
|
---|
503 | Hexadecimal RRGGBB color for the background. This property must be
|
---|
504 | set read-only for the guest
|
---|
505 | (<computeroutput>RDONLYGUEST</computeroutput>).</para>
|
---|
506 | </listitem>
|
---|
507 |
|
---|
508 | <listitem>
|
---|
509 | <para><computeroutput>Theme/LogonDialog/HeaderColor</computeroutput>:
|
---|
510 | Hexadecimal RRGGBB foreground color for the header text. This
|
---|
511 | property must be set read-only for the guest
|
---|
512 | (<computeroutput>RDONLYGUEST</computeroutput>).</para>
|
---|
513 | </listitem>
|
---|
514 |
|
---|
515 | <listitem>
|
---|
516 | <para><computeroutput>Theme/LogonDialog/BackgroundColor</computeroutput>:
|
---|
517 | Hexadecimal RRGGBB color for the logon dialog background. This
|
---|
518 | property must be set read-only for the guest
|
---|
519 | (<computeroutput>RDONLYGUEST</computeroutput>).</para>
|
---|
520 | </listitem>
|
---|
521 |
|
---|
522 | <listitem>
|
---|
523 | <para><computeroutput>Theme/LogonDialog/ButtonColor</computeroutput>:
|
---|
524 | Hexadecimal RRGGBB background color for the logon dialog button. This
|
---|
525 | property must be set read-only for the guest
|
---|
526 | (<computeroutput>RDONLYGUEST</computeroutput>).</para>
|
---|
527 | </listitem>
|
---|
528 | </orderedlist>
|
---|
529 |
|
---|
530 | <note><para>The same restrictions for the guest properties above apply
|
---|
531 | as for the ones specified in the pam_vbox section.</para></note>
|
---|
532 | </sect3>
|
---|
533 | </sect2>
|
---|
534 | </sect1>
|
---|
535 |
|
---|
536 | <sect1>
|
---|
537 | <title>Advanced configuration for Windows guests</title>
|
---|
538 |
|
---|
539 | <sect2 id="sysprep">
|
---|
540 | <title>Automated Windows system preparation</title>
|
---|
541 |
|
---|
542 | <para>Beginning with Windows NT 4.0, Microsoft offers a "system
|
---|
543 | preparation" tool (in short: Sysprep) to prepare a Windows system for
|
---|
544 | deployment or redistribution. Whereas Windows 2000 and XP ship with
|
---|
545 | Sysprep on the installation medium, the tool also is available for
|
---|
546 | download on the Microsoft web site. In a standard installation of
|
---|
547 | Windows Vista and 7, Sysprep is already included. Sysprep mainly
|
---|
548 | consists of an executable called
|
---|
549 | <computeroutput>sysprep.exe</computeroutput> which is invoked by the
|
---|
550 | user to put the Windows installation into preparation mode.</para>
|
---|
551 |
|
---|
552 | <para>Starting with VirtualBox 3.2.2, the Guest Additions offer a way to
|
---|
553 | launch a system preparation on the guest operating system in an
|
---|
554 | automated way, controlled from the host system. To achieve that, see
|
---|
555 | <xref linkend="guestadd-guestcontrol" /> for using the feature with the
|
---|
556 | special identifier <computeroutput>sysprep</computeroutput> as the
|
---|
557 | program to execute, along with the user name
|
---|
558 | <computeroutput>sysprep</computeroutput> and password
|
---|
559 | <computeroutput>sysprep</computeroutput> for the credentials. Sysprep
|
---|
560 | then gets launched with the required system rights.</para>
|
---|
561 |
|
---|
562 | <note>
|
---|
563 | <para>Specifying the location of "sysprep.exe" is <emphasis
|
---|
564 | role="bold">not possible</emphasis> -- instead the following paths are
|
---|
565 | used (based on the operating system): <itemizedlist>
|
---|
566 | <listitem>
|
---|
567 | <para><computeroutput>C:\sysprep\sysprep.exe</computeroutput>
|
---|
568 | for Windows NT 4.0, 2000 and XP</para>
|
---|
569 | </listitem>
|
---|
570 |
|
---|
571 | <listitem>
|
---|
572 | <para><computeroutput>%WINDIR%\System32\Sysprep\sysprep.exe</computeroutput>
|
---|
573 | for Windows Vista, 2008 Server and 7</para>
|
---|
574 | </listitem>
|
---|
575 | </itemizedlist> The Guest Additions will automatically use the
|
---|
576 | appropriate path to execute the system preparation tool.</para>
|
---|
577 | </note>
|
---|
578 | </sect2>
|
---|
579 | </sect1>
|
---|
580 |
|
---|
581 | <sect1>
|
---|
582 | <title>Advanced configuration for Linux and Solaris guests</title>
|
---|
583 |
|
---|
584 | <sect2>
|
---|
585 | <title>Manual setup of selected guest services on Linux</title>
|
---|
586 |
|
---|
587 | <para>The VirtualBox Guest Additions contain several different drivers.
|
---|
588 | If for any reason you do not wish to set them all up, you can install
|
---|
589 | the Guest Additions using the following command:</para>
|
---|
590 |
|
---|
591 | <screen> sh ./VBoxLinuxAdditions.run no_setup</screen>
|
---|
592 |
|
---|
593 | <para>After this, you will need to at least compile the kernel modules
|
---|
594 | by running the command <screen> /usr/lib/VBoxGuestAdditions/vboxadd setup</screen>
|
---|
595 | as root (you will need to replace <emphasis>lib</emphasis> by
|
---|
596 | <emphasis>lib64</emphasis> on some 64bit guests), and on older guests
|
---|
597 | without the udev service you will need to add the
|
---|
598 | <emphasis>vboxadd</emphasis> service to the default runlevel to ensure
|
---|
599 | that the modules get loaded.</para>
|
---|
600 |
|
---|
601 | <para>To setup the time synchronization service, run the command
|
---|
602 | <screen> /usr/lib/VBoxGuestAdditions/vboxadd-service setup</screen> and
|
---|
603 | add the service vboxadd-service to the default runlevel. To set up the
|
---|
604 | X11 and OpenGL part of the Guest Additions, run the command <screen> /usr/lib/VBoxGuestAdditions/vboxadd-x11 setup</screen>
|
---|
605 | (you do not need to enable any services for this).</para>
|
---|
606 |
|
---|
607 | <para>To recompile the guest kernel modules, use this command: <screen> /usr/lib/VBoxGuestAdditions/vboxadd setup</screen>
|
---|
608 | After compilation you should reboot your guest to ensure that the new
|
---|
609 | modules are actually used.</para>
|
---|
610 | </sect2>
|
---|
611 |
|
---|
612 | <sect2 id="guestxorgsetup">
|
---|
613 | <title>Guest graphics and mouse driver setup in depth</title>
|
---|
614 |
|
---|
615 | <para>This section assumes that you are familiar with configuring the
|
---|
616 | X.Org server using xorg.conf and optionally the newer mechanisms using
|
---|
617 | hal or udev and xorg.conf.d. If not you can learn about them by studying
|
---|
618 | the documentation which comes with X.Org.</para>
|
---|
619 |
|
---|
620 | <para>The VirtualBox Guest Additions come with drivers for X.Org
|
---|
621 | versions <itemizedlist>
|
---|
622 | <listitem>
|
---|
623 | <para>X11R6.8/X11R6.9 and XFree86 version 4.3 (vboxvideo_drv_68.o and vboxmouse_drv_68.o)</para>
|
---|
624 | </listitem>
|
---|
625 |
|
---|
626 | <listitem>
|
---|
627 | <para>X11R7.0 (vboxvideo_drv_70.so and vboxmouse_drv_70.so)</para>
|
---|
628 | </listitem>
|
---|
629 |
|
---|
630 | <listitem>
|
---|
631 | <para>X11R7.1 (vboxvideo_drv_71.so and vboxmouse_drv_71.so)</para>
|
---|
632 | </listitem>
|
---|
633 |
|
---|
634 | <listitem>
|
---|
635 | <para>X.Org Server versions 1.3 and later (vboxvideo_drv_13.so and vboxmouse_drv_13.so and so on).</para>
|
---|
636 | </listitem>
|
---|
637 | </itemizedlist> By default these drivers can be found in the
|
---|
638 | directory</para>
|
---|
639 |
|
---|
640 | <para><computeroutput>/opt/VBoxGuestAdditions-<version>/lib/VBoxGuestAdditions</computeroutput></para>
|
---|
641 |
|
---|
642 | <para>and the correct versions for the X server are symbolically linked
|
---|
643 | into the X.Org driver directories.</para>
|
---|
644 |
|
---|
645 | <para>For graphics integration to work correctly, the X server must load
|
---|
646 | the vboxvideo driver (many recent X server versions look for it
|
---|
647 | automatically if they see that they are running in VirtualBox) and for
|
---|
648 | an optimal user experience the guest kernel drivers must be loaded and
|
---|
649 | the Guest Additions tool VBoxClient must be running as a client in the X
|
---|
650 | session. For mouse integration to work correctly, the guest kernel
|
---|
651 | drivers must be loaded and in addition, in X servers from X.Org X11R6.8
|
---|
652 | to X11R7.1 and in XFree86 version 4.3 the right vboxmouse driver must be
|
---|
653 | loaded and associated with /dev/mouse or /dev/psaux; in X.Org server 1.3
|
---|
654 | or later a driver for a PS/2 mouse must be loaded and the right
|
---|
655 | vboxmouse driver must be associated with /dev/vboxguest.</para>
|
---|
656 |
|
---|
657 | <para>The VirtualBox guest graphics driver can use any graphics
|
---|
658 | configuration for which the virtual resolution fits into the virtual
|
---|
659 | video memory allocated to the virtual machine (minus a small amount used
|
---|
660 | by the guest driver) as described in <xref
|
---|
661 | linkend="settings-display" />. The driver will offer a range of standard
|
---|
662 | modes at least up to the default guest resolution for all active guest
|
---|
663 | monitors. In X.Org Server 1.3 and later the default mode can be changed
|
---|
664 | by setting the output property VBOX_MODE to
|
---|
665 | "<width>x<height>" for any guest monitor. When VBoxClient
|
---|
666 | and the kernel drivers are active this is done automatically when the
|
---|
667 | host requests a mode change. The driver for older versions can only
|
---|
668 | receive new modes by querying the host for requests at regular
|
---|
669 | intervals.</para>
|
---|
670 |
|
---|
671 | <para>With pre-1.3 X Servers you can also add your own modes to the X
|
---|
672 | server configuration file. You simply need to add them to the "Modes"
|
---|
673 | list in the "Display" subsection of the "Screen" section. For example,
|
---|
674 | the section shown here has a custom 2048x800 resolution mode
|
---|
675 | added:</para>
|
---|
676 |
|
---|
677 | <screen>Section "Screen"
|
---|
678 | Identifier "Default Screen"
|
---|
679 | Device "VirtualBox graphics card"
|
---|
680 | Monitor "Generic Monitor"
|
---|
681 | DefaultDepth 24
|
---|
682 | SubSection "Display"
|
---|
683 | Depth 24
|
---|
684 | Modes "2048x800" "800x600" "640x480"
|
---|
685 | EndSubSection
|
---|
686 | EndSection</screen>
|
---|
687 | </sect2>
|
---|
688 | </sect1>
|
---|
689 |
|
---|
690 | <sect1 id="cpuhotplug">
|
---|
691 | <title>CPU hot-plugging</title>
|
---|
692 |
|
---|
693 | <para>With virtual machines running modern server operating systems,
|
---|
694 | VirtualBox supports CPU hot-plugging.<footnote>
|
---|
695 | <para>Support for CPU hot-plugging was introduced with VirtualBox
|
---|
696 | 3.2.</para>
|
---|
697 | </footnote> Whereas on a physical computer this would mean that a CPU
|
---|
698 | can be added or removed while the machine is running, VirtualBox supports
|
---|
699 | adding and removing virtual CPUs while a virtual machine is
|
---|
700 | running.</para>
|
---|
701 |
|
---|
702 | <para>CPU hot-plugging works only with guest operating systems that
|
---|
703 | support it. So far this applies only to Linux and Windows Server 2008 x64
|
---|
704 | Data Center Edition. Windows supports only hot-add while Linux supports
|
---|
705 | hot-add and hot-remove but to use this feature with more than 8 CPUs a
|
---|
706 | 64bit Linux guest is required.</para>
|
---|
707 |
|
---|
708 | <para>At this time, CPU hot-plugging requires using the VBoxManage
|
---|
709 | command-line interface. First, hot-plugging needs to be enabled for a
|
---|
710 | virtual machine:<screen>VBoxManage modifyvm "VM name" --cpuhotplug on</screen></para>
|
---|
711 |
|
---|
712 | <para>After that, the --cpus option specifies the maximum number of CPUs
|
---|
713 | that the virtual machine can have:<screen>VBoxManage modifyvm "VM name" --cpus 8</screen>When
|
---|
714 | the VM is off, you can then add and remove virtual CPUs with the modifyvm
|
---|
715 | --plugcpu and --unplugcpu subcommands, which take the number of the
|
---|
716 | virtual CPU as a parameter, like this:<screen>VBoxManage modifyvm "VM name" --plugcpu 3
|
---|
717 | VBoxManage modifyvm "VM name" --unplugcpu 3</screen>Note that CPU 0 can never
|
---|
718 | be removed.</para>
|
---|
719 |
|
---|
720 | <para>While the VM is running, CPUs can be added with the
|
---|
721 | <computeroutput>controlvm plugcpu/unplugcpu</computeroutput> commands
|
---|
722 | instead:<screen>VBoxManage controlvm "VM name" plugcpu 3
|
---|
723 | VBoxManage controlvm "VM name" unplugcpu 3</screen></para>
|
---|
724 |
|
---|
725 | <para>See <xref linkend="vboxmanage-modifyvm" /> and <xref
|
---|
726 | linkend="vboxmanage-controlvm" /> for details.</para>
|
---|
727 |
|
---|
728 | <para>With Linux guests, the following applies: To prevent ejection while
|
---|
729 | the CPU is still used it has to be ejected from within the guest before.
|
---|
730 | The Linux Guest Additions contain a service which receives hot-remove
|
---|
731 | events and ejects the CPU. Also, after a CPU is added to the VM it is not
|
---|
732 | automatically used by Linux. The Linux Guest Additions service will take
|
---|
733 | care of that if installed. If not a CPU can be started with the following
|
---|
734 | command:<screen>echo 1 > /sys/devices/system/cpu/cpu<id>/online</screen></para>
|
---|
735 | </sect1>
|
---|
736 |
|
---|
737 | <sect1 id="pcipassthrough">
|
---|
738 | <title>PCI passthrough</title>
|
---|
739 |
|
---|
740 | <para>When running on Linux hosts, with a recent enough kernel (at least
|
---|
741 | version <computeroutput>2.6.31</computeroutput>) experimental host PCI
|
---|
742 | devices passthrough is available.<footnote>
|
---|
743 | <para>Experimental support for PCI passthrough was introduced with
|
---|
744 | VirtualBox 4.1.</para>
|
---|
745 | </footnote></para>
|
---|
746 |
|
---|
747 | <note>
|
---|
748 | <para>The PCI passthrough module is shipped as a VirtualBox extension
|
---|
749 | package, which must be installed separately. See <xref
|
---|
750 | linkend="intro-installing" /> for more information.</para>
|
---|
751 | </note>
|
---|
752 |
|
---|
753 | <para>Essentially this feature allows to directly use physical PCI devices
|
---|
754 | on the host by the guest even if host doesn't have drivers for this
|
---|
755 | particular device. Both, regular PCI and some PCI Express cards, are
|
---|
756 | supported. AGP and certain PCI Express cards are not supported at the
|
---|
757 | moment if they rely on GART (Graphics Address Remapping Table) unit
|
---|
758 | programming for texture management as it does rather nontrivial operations
|
---|
759 | with pages remapping interfering with IOMMU. This limitation may be lifted
|
---|
760 | in future releases.</para>
|
---|
761 |
|
---|
762 | <para>To be fully functional, PCI passthrough support in VirtualBox
|
---|
763 | depends upon an IOMMU hardware unit which is not yet too widely available.
|
---|
764 | If the device uses bus mastering (i.e. it performs DMA to the OS memory on
|
---|
765 | its own), then an IOMMU is required, otherwise such DMA transactions may
|
---|
766 | write to the wrong physical memory address as the device DMA engine is
|
---|
767 | programmed using a device-specific protocol to perform memory
|
---|
768 | transactions. The IOMMU functions as translation unit mapping physical
|
---|
769 | memory access requests from the device using knowledge of the guest
|
---|
770 | physical address to host physical addresses translation rules.</para>
|
---|
771 |
|
---|
772 | <para>Intel's solution for IOMMU is marketed as "Intel Virtualization
|
---|
773 | Technology for Directed I/O" (VT-d), and AMD's one is called AMD-Vi. So
|
---|
774 | please check if your motherboard datasheet has appropriate technology.
|
---|
775 | Even if your hardware doesn't have a IOMMU, certain PCI cards may work
|
---|
776 | (such as serial PCI adapters), but the guest will show a warning on boot
|
---|
777 | and the VM execution will terminate if the guest driver will attempt to
|
---|
778 | enable card bus mastering.</para>
|
---|
779 |
|
---|
780 | <para>It is very common that the BIOS or the host OS disables the IOMMU by
|
---|
781 | default. So before any attempt to use it please make sure that
|
---|
782 | <orderedlist>
|
---|
783 | <listitem>
|
---|
784 | <para>Your motherboard has an IOMMU unit.</para>
|
---|
785 | </listitem>
|
---|
786 |
|
---|
787 | <listitem>
|
---|
788 | <para>Your CPU supports the IOMMU.</para>
|
---|
789 | </listitem>
|
---|
790 |
|
---|
791 | <listitem>
|
---|
792 | <para>The IOMMU is enabled in the BIOS.</para>
|
---|
793 | </listitem>
|
---|
794 |
|
---|
795 | <listitem>
|
---|
796 | <para>The VM must run with VT-x/AMD-V and nested paging
|
---|
797 | enabled.</para>
|
---|
798 | </listitem>
|
---|
799 |
|
---|
800 | <listitem>
|
---|
801 | <para>Your Linux kernel was compiled with IOMMU support (including
|
---|
802 | DMA remapping, see <computeroutput>CONFIG_DMAR</computeroutput>
|
---|
803 | kernel compilation option). The PCI stub driver
|
---|
804 | (<computeroutput>CONFIG_PCI_STUB</computeroutput>) is required as
|
---|
805 | well.</para>
|
---|
806 | </listitem>
|
---|
807 |
|
---|
808 | <listitem>
|
---|
809 | <para>Your Linux kernel recognizes and uses the IOMMU unit
|
---|
810 | (<computeroutput>intel_iommu=on</computeroutput> boot option could
|
---|
811 | be needed). Search for DMAR and PCI-DMA in kernel boot log.</para>
|
---|
812 | </listitem>
|
---|
813 | </orderedlist></para>
|
---|
814 |
|
---|
815 | <para>Once you made sure that the host kernel supports the IOMMU, the next
|
---|
816 | step is to select the PCI card and attach it to the guest. To figure out
|
---|
817 | the list of available PCI devices, use the
|
---|
818 | <computeroutput>lspci</computeroutput> command. The output will look like
|
---|
819 | this:</para>
|
---|
820 | <screen>01:00.0 VGA compatible controller: ATI Technologies Inc Cedar PRO [Radeon HD 5450]
|
---|
821 | 01:00.1 Audio device: ATI Technologies Inc Manhattan HDMI Audio [Mobility Radeon HD 5000 Series]
|
---|
822 | 02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit
|
---|
823 | Ethernet controller (rev 03)
|
---|
824 | 03:00.0 SATA controller: JMicron Technology Corp. JMB362/JMB363 Serial ATA Controller (rev 03)
|
---|
825 | 03:00.1 IDE interface: JMicron Technology Corp. JMB362/JMB363 Serial ATA Controller (rev 03)
|
---|
826 | 06:00.0 VGA compatible controller: nVidia Corporation G86 [GeForce 8500 GT] (rev a1)</screen>
|
---|
827 | <para>The first column is a PCI address (in format
|
---|
828 | <computeroutput>bus:device.function</computeroutput>). This address could
|
---|
829 | be used to identify the device for further operations. For example, to
|
---|
830 | attach a PCI network controller on the system listed above to the second
|
---|
831 | PCI bus in the guest, as device 5, function 0, use the following command:
|
---|
832 | <screen>VBoxManage modifyvm "VM name" --pciattach 02:00.0@01:05.0</screen>
|
---|
833 | To detach same device, use <screen>VBoxManage modifyvm "VM name" --pcidetach 02:00.0</screen>
|
---|
834 | Please note that both host and guest could freely assign a different PCI
|
---|
835 | address to the card attached during runtime, so those addresses only apply
|
---|
836 | to the address of the card at the moment of attachment (host), and during
|
---|
837 | BIOS PCI init (guest).</para>
|
---|
838 |
|
---|
839 | <para>If the virtual machine has a PCI device attached, certain
|
---|
840 | limitations apply: <orderedlist>
|
---|
841 | <listitem>
|
---|
842 | <para>Only PCI cards with non-shared interrupts (such as using MSI on host) are supported at the moment.</para>
|
---|
843 | </listitem>
|
---|
844 |
|
---|
845 | <listitem>
|
---|
846 | <para>No guest state can be reliably saved/restored (as the internal state of the PCI card could not be retrieved).</para>
|
---|
847 | </listitem>
|
---|
848 |
|
---|
849 | <listitem>
|
---|
850 | <para>Teleportation (live migration) doesn't work (for the same reason).</para>
|
---|
851 | </listitem>
|
---|
852 |
|
---|
853 | <listitem>
|
---|
854 | <para>No lazy physical memory allocation. The host will preallocate the whole RAM required for the VM on startup (as we cannot catch physical hardware accesses to the physical memory).</para>
|
---|
855 | </listitem>
|
---|
856 | </orderedlist></para>
|
---|
857 | </sect1>
|
---|
858 |
|
---|
859 | <sect1>
|
---|
860 | <title>Webcam passthrough</title>
|
---|
861 |
|
---|
862 | <sect2 id="webcam-passthrough">
|
---|
863 | <title>Using a host webcam in the guest</title>
|
---|
864 |
|
---|
865 | <para>VirtualBox 4.3 includes an experimental feature which allows a guest to use
|
---|
866 | a host webcam. This complements the general USB passthrough support which was the
|
---|
867 | typical way of using host webcams in earlier versions. The webcam passthrough support
|
---|
868 | can handle non-USB video sources in theory, but this is completely untested.</para>
|
---|
869 |
|
---|
870 | <note>
|
---|
871 | <para>The webcam passthrough module is shipped as part of the Oracle VM VirtualBox
|
---|
872 | extension pack, which must be installed separately. See <xref
|
---|
873 | linkend="intro-installing" /> for more information.</para>
|
---|
874 | </note>
|
---|
875 |
|
---|
876 | <para>The host webcam can be attached to the VM using "Devices" menu in the VM menu bar.
|
---|
877 | The "Webcams" menu contains a list of available video input devices on the host.
|
---|
878 | Clicking on a webcam name attaches or detaches the corresponding host device.</para>
|
---|
879 |
|
---|
880 | <para>The VBoxManage command line tool can be used to enable webcam passthrough.
|
---|
881 | Please see the host-specific sections below for additional details.
|
---|
882 | The following commands are available:
|
---|
883 | <itemizedlist>
|
---|
884 | <listitem><para>Get a list of host webcams (or other video input devices):
|
---|
885 | <screen>VBoxManage list webcams</screen>
|
---|
886 | The output format:
|
---|
887 | <screen>alias "user friendly name"
|
---|
888 | host path or identifier</screen>
|
---|
889 | The alias can be used as a shortcut in other commands. Alias '.0' means
|
---|
890 | default video input device on the host, '.1', '.2', etc mean first, second, etc
|
---|
891 | video input device. The device order is host-specific.
|
---|
892 | </para></listitem>
|
---|
893 | <listitem><para>Attach a webcam to a running VM:
|
---|
894 | <screen>VBoxManage controlvm "VM name" webcam attach [host_path|alias [settings]]</screen>
|
---|
895 | This will attach a USB webcam device to the guest.</para>
|
---|
896 |
|
---|
897 | <para>The <computeroutput>settings</computeroutput> parameter is a string
|
---|
898 | <computeroutput>Setting1=Value1;Setting2=Value2</computeroutput>, which allows to
|
---|
899 | configure the emulated webcam device. The following settings are supported:
|
---|
900 | <itemizedlist>
|
---|
901 | <listitem>
|
---|
902 | <para><computeroutput>MaxFramerate</computeroutput> The highest rate at which video frames
|
---|
903 | are sent to the guest. A higher frame rate requires more CPU power. Therefore sometimes
|
---|
904 | it is useful to set a lower limit. Default is no limit and allow the guest to use all
|
---|
905 | frame rates supported by the host webcam.</para>
|
---|
906 | </listitem>
|
---|
907 | <listitem>
|
---|
908 | <para><computeroutput>MaxPayloadTransferSize</computeroutput> How many bytes the emulated
|
---|
909 | webcam can send to the guest at a time. Default value is 3060 bytes, which is used by
|
---|
910 | some webcams. Higher values can slightly reduce CPU load, if the guest is able to use
|
---|
911 | larger buffers. However, a high <computeroutput>MaxPayloadTransferSize</computeroutput>
|
---|
912 | might be not supported by some guests.</para>
|
---|
913 | </listitem>
|
---|
914 | </itemizedlist>
|
---|
915 | </para></listitem>
|
---|
916 | <listitem><para>Detach a webcam from a running VM:
|
---|
917 | <screen>VBoxManage controlvm "VM name" webcam detach [host_path|alias]</screen>
|
---|
918 | </para></listitem>
|
---|
919 | <listitem><para>List webcams attached to a running VM:
|
---|
920 | <screen>VBoxManage controlvm "VM name" webcam list</screen>
|
---|
921 | The output contains path or alias which was used in 'webcam attach' command for
|
---|
922 | each attached webcam.
|
---|
923 | </para></listitem>
|
---|
924 | </itemizedlist>
|
---|
925 | </para>
|
---|
926 | </sect2>
|
---|
927 |
|
---|
928 | <sect2>
|
---|
929 | <title>Windows hosts</title>
|
---|
930 |
|
---|
931 | <para>When the webcam device is detached from the host, the emulated webcam device is
|
---|
932 | automatically detached from the guest.</para>
|
---|
933 | </sect2>
|
---|
934 |
|
---|
935 | <sect2>
|
---|
936 | <title>Mac OS X hosts</title>
|
---|
937 |
|
---|
938 | <para>OS X version 10.7 or newer is required.</para>
|
---|
939 |
|
---|
940 | <para>When the webcam device is detached from the host, the emulated webcam device
|
---|
941 | remains attached to the guest and must be manually detached using the
|
---|
942 | <computeroutput>VBoxManage controlvm "VM name" webcam detach ...</computeroutput> command.</para>
|
---|
943 | </sect2>
|
---|
944 |
|
---|
945 | <sect2>
|
---|
946 | <title>Linux and Solaris hosts</title>
|
---|
947 |
|
---|
948 | <para>When the webcam is detached from the host the emulated webcam device is
|
---|
949 | automatically detached from the guest only if the webcam is streaming video.
|
---|
950 | If the emulated webcam is inactive it should be manually detached using the
|
---|
951 | <computeroutput>VBoxManage controlvm "VM name" webcam detach ...</computeroutput> command.</para>
|
---|
952 |
|
---|
953 | <para>Aliases <computeroutput>.0</computeroutput> and <computeroutput>.1</computeroutput> are mapped
|
---|
954 | to <computeroutput>/dev/video0</computeroutput>, alias <computeroutput>.2</computeroutput> is mapped
|
---|
955 | to <computeroutput>/dev/video1</computeroutput> and so forth.</para>
|
---|
956 | </sect2>
|
---|
957 | </sect1>
|
---|
958 |
|
---|
959 | <sect1>
|
---|
960 | <title>Advanced display configuration</title>
|
---|
961 |
|
---|
962 | <sect2>
|
---|
963 | <title>Custom VESA resolutions</title>
|
---|
964 |
|
---|
965 | <para>Apart from the standard VESA resolutions, the VirtualBox VESA BIOS
|
---|
966 | allows you to add up to 16 custom video modes which will be reported to
|
---|
967 | the guest operating system. When using Windows guests with the
|
---|
968 | VirtualBox Guest Additions, a custom graphics driver will be used
|
---|
969 | instead of the fallback VESA solution so this information does not
|
---|
970 | apply.</para>
|
---|
971 |
|
---|
972 | <para>Additional video modes can be configured for each VM using the
|
---|
973 | extra data facility. The extra data key is called
|
---|
974 | <literal>CustomVideoMode<x></literal> with <literal>x</literal>
|
---|
975 | being a number from 1 to 16. Please note that modes will be read from 1
|
---|
976 | until either the following number is not defined or 16 is reached. The
|
---|
977 | following example adds a video mode that corresponds to the native
|
---|
978 | display resolution of many notebook computers:</para>
|
---|
979 |
|
---|
980 | <screen>VBoxManage setextradata "VM name" "CustomVideoMode1" "1400x1050x16"</screen>
|
---|
981 |
|
---|
982 | <para>The VESA mode IDs for custom video modes start at
|
---|
983 | <literal>0x160</literal>. In order to use the above defined custom video
|
---|
984 | mode, the following command line has be supplied to Linux:</para>
|
---|
985 |
|
---|
986 | <screen>vga = 0x200 | 0x160
|
---|
987 | vga = 864</screen>
|
---|
988 |
|
---|
989 | <para>For guest operating systems with VirtualBox Guest Additions, a
|
---|
990 | custom video mode can be set using the video mode hint feature.</para>
|
---|
991 | </sect2>
|
---|
992 |
|
---|
993 | <sect2>
|
---|
994 | <title>Configuring the maximum resolution of guests when using the
|
---|
995 | graphical frontend</title>
|
---|
996 |
|
---|
997 | <para>When guest systems with the Guest Additions installed are started
|
---|
998 | using the graphical frontend (the normal VirtualBox application), they
|
---|
999 | will not be allowed to use screen resolutions greater than the host's
|
---|
1000 | screen size unless the user manually resizes them by dragging the
|
---|
1001 | window, switching to full screen or seamless mode or sending a video mode
|
---|
1002 | hint using VBoxManage. This behavior is what most users will want, but
|
---|
1003 | if you have different needs, it is possible to change it by issuing one
|
---|
1004 | of the following commands from the command line:</para>
|
---|
1005 |
|
---|
1006 | <screen>VBoxManage setextradata global GUI/MaxGuestResolution any</screen>
|
---|
1007 |
|
---|
1008 | <para>will remove all limits on guest resolutions.</para>
|
---|
1009 |
|
---|
1010 | <screen>VBoxManage setextradata global GUI/MaxGuestResolution >width,height<</screen>
|
---|
1011 |
|
---|
1012 | <para>manually specifies a maximum resolution.</para>
|
---|
1013 |
|
---|
1014 | <screen>VBoxManage setextradata global GUI/MaxGuestResolution auto</screen>
|
---|
1015 |
|
---|
1016 | <para>restores the default settings. Note that these settings apply
|
---|
1017 | globally to all guest systems, not just to a single machine.</para>
|
---|
1018 | </sect2>
|
---|
1019 | </sect1>
|
---|
1020 |
|
---|
1021 | <sect1>
|
---|
1022 | <title>Advanced storage configuration</title>
|
---|
1023 |
|
---|
1024 | <sect2 id="rawdisk">
|
---|
1025 | <title>Using a raw host hard disk from a guest</title>
|
---|
1026 |
|
---|
1027 | <para>Starting with version 1.4, as an alternative to using virtual disk
|
---|
1028 | images (as described in detail in <xref linkend="storage" />),
|
---|
1029 | VirtualBox can also present either entire physical hard disks or
|
---|
1030 | selected partitions thereof as virtual disks to virtual machines.</para>
|
---|
1031 |
|
---|
1032 | <para>With VirtualBox, this type of access is called "raw hard disk
|
---|
1033 | access"; it allows a guest operating system to access its virtual hard
|
---|
1034 | disk without going through the host OS file system. The actual
|
---|
1035 | performance difference for image files vs. raw disk varies greatly
|
---|
1036 | depending on the overhead of the host file system, whether dynamically
|
---|
1037 | growing images are used, and on host OS caching strategies. The caching
|
---|
1038 | indirectly also affects other aspects such as failure behavior, i.e.
|
---|
1039 | whether the virtual disk contains all data written before a host OS
|
---|
1040 | crash. Consult your host OS documentation for details on this.</para>
|
---|
1041 |
|
---|
1042 | <para><warning>
|
---|
1043 | <para>Raw hard disk access is for expert users only. Incorrect use
|
---|
1044 | or use of an outdated configuration can lead to <emphasis
|
---|
1045 | role="bold">total loss of data </emphasis>on the physical disk. Most
|
---|
1046 | importantly, <emphasis>do not</emphasis> attempt to boot the
|
---|
1047 | partition with the currently running host operating system in a
|
---|
1048 | guest. This will lead to severe data corruption.</para>
|
---|
1049 | </warning></para>
|
---|
1050 |
|
---|
1051 | <para>Raw hard disk access -- both for entire disks and individual
|
---|
1052 | partitions -- is implemented as part of the VMDK image format support.
|
---|
1053 | As a result, you will need to create a special VMDK image file which
|
---|
1054 | defines where the data will be stored. After creating such a special
|
---|
1055 | VMDK image, you can use it like a regular virtual disk image. For
|
---|
1056 | example, you can use the VirtualBox Manager (<xref linkend="vdis" />)
|
---|
1057 | or <computeroutput>VBoxManage</computeroutput> to assign the image to a
|
---|
1058 | virtual machine.</para>
|
---|
1059 |
|
---|
1060 | <sect3>
|
---|
1061 | <title>Access to entire physical hard disk</title>
|
---|
1062 |
|
---|
1063 | <para>While this variant is the simplest to set up, you must be aware
|
---|
1064 | that this will give a guest operating system direct and full access to
|
---|
1065 | an <emphasis>entire physical disk</emphasis>. If your
|
---|
1066 | <emphasis>host</emphasis> operating system is also booted from this
|
---|
1067 | disk, please take special care to not access the partition from the
|
---|
1068 | guest at all. On the positive side, the physical disk can be
|
---|
1069 | repartitioned in arbitrary ways without having to recreate the image
|
---|
1070 | file that gives access to the raw disk.</para>
|
---|
1071 |
|
---|
1072 | <para>To create an image that represents an entire physical hard disk
|
---|
1073 | (which will not contain any actual data, as this will all be stored on
|
---|
1074 | the physical disk), on a Linux host, use the command<screen>VBoxManage internalcommands createrawvmdk -filename /path/to/file.vmdk
|
---|
1075 | -rawdisk /dev/sda</screen>This creates the image
|
---|
1076 | <code>/path/to/file.vmdk</code> (must be absolute), and all data will
|
---|
1077 | be read and written from <code>/dev/sda</code>.</para>
|
---|
1078 |
|
---|
1079 | <para>On a Windows host, instead of the above device specification,
|
---|
1080 | use e.g. <code>\\.\PhysicalDrive0</code>. On a Mac OS X host, instead
|
---|
1081 | of the above device specification use e.g. <code>/dev/disk1</code>.
|
---|
1082 | Note that on OS X you can only get access to an entire disk if no
|
---|
1083 | volume is mounted from it.</para>
|
---|
1084 |
|
---|
1085 | <para>Creating the image requires read/write access for the given
|
---|
1086 | device. Read/write access is also later needed when using the image
|
---|
1087 | from a virtual machine. On some host platforms (e.g. Windows Vista
|
---|
1088 | and later), raw disk access may be restricted and not permitted by
|
---|
1089 | the host OS in some situations.</para>
|
---|
1090 |
|
---|
1091 | <para>Just like with regular disk images, this does not automatically
|
---|
1092 | attach the newly created image to a virtual machine. This can be done
|
---|
1093 | with e.g. <screen>VBoxManage storageattach WindowsXP --storagectl "IDE Controller"
|
---|
1094 | --port 0 --device 0 --type hdd --medium /path/to/file.vmdk</screen>When
|
---|
1095 | this is done the selected virtual machine will boot from the specified
|
---|
1096 | physical disk.</para>
|
---|
1097 | </sect3>
|
---|
1098 |
|
---|
1099 | <sect3>
|
---|
1100 | <title>Access to individual physical hard disk partitions</title>
|
---|
1101 |
|
---|
1102 | <para>This "raw partition support" is quite similar to the "full hard
|
---|
1103 | disk" access described above. However, in this case, any partitioning
|
---|
1104 | information will be stored inside the VMDK image, so you can e.g.
|
---|
1105 | install a different boot loader in the virtual hard disk without
|
---|
1106 | affecting the host's partitioning information. While the guest will be
|
---|
1107 | able to <emphasis>see</emphasis> all partitions that exist on the
|
---|
1108 | physical disk, access will be filtered in that reading from partitions
|
---|
1109 | for which no access is allowed the partitions will only yield zeroes,
|
---|
1110 | and all writes to them are ignored.</para>
|
---|
1111 |
|
---|
1112 | <para>To create a special image for raw partition support (which will
|
---|
1113 | contain a small amount of data, as already mentioned), on a Linux
|
---|
1114 | host, use the command<screen>VBoxManage internalcommands createrawvmdk -filename /path/to/file.vmdk
|
---|
1115 | -rawdisk /dev/sda -partitions 1,5</screen></para>
|
---|
1116 |
|
---|
1117 | <para>As you can see, the command is identical to the one for "full
|
---|
1118 | hard disk" access, except for the additional
|
---|
1119 | <computeroutput>-partitions</computeroutput> parameter. This example
|
---|
1120 | would create the image <code>/path/to/file.vmdk</code> (which, again,
|
---|
1121 | must be absolute), and partitions 1 and 5 of <code>/dev/sda</code>
|
---|
1122 | would be made accessible to the guest.</para>
|
---|
1123 |
|
---|
1124 | <para>VirtualBox uses the same partition numbering as your Linux host.
|
---|
1125 | As a result, the numbers given in the above example would refer to the
|
---|
1126 | first primary partition and the first logical drive in the extended
|
---|
1127 | partition, respectively.</para>
|
---|
1128 |
|
---|
1129 | <para>On a Windows host, instead of the above device specification,
|
---|
1130 | use e.g. <code>\\.\PhysicalDrive0</code>. On a Mac OS X host, instead
|
---|
1131 | of the above device specification use e.g. <code>/dev/disk1</code>.
|
---|
1132 | Note that on OS X you can only use partitions which are not mounted
|
---|
1133 | (eject the respective volume first). Partition numbers are the same on
|
---|
1134 | Linux, Windows and Mac OS X hosts.</para>
|
---|
1135 |
|
---|
1136 | <para>The numbers for the list of partitions can be taken from the
|
---|
1137 | output of<screen>VBoxManage internalcommands listpartitions -rawdisk /dev/sda</screen>The
|
---|
1138 | output lists the partition types and sizes to give the user enough
|
---|
1139 | information to identify the partitions necessary for the guest.</para>
|
---|
1140 |
|
---|
1141 | <para>Images which give access to individual partitions are specific
|
---|
1142 | to a particular host disk setup. You cannot transfer these images to
|
---|
1143 | another host; also, whenever the host partitioning changes, the image
|
---|
1144 | <emphasis>must be recreated</emphasis>.</para>
|
---|
1145 |
|
---|
1146 | <para>Creating the image requires read/write access for the given
|
---|
1147 | device. Read/write access is also later needed when using the image
|
---|
1148 | from a virtual machine. If this is not feasible, there is a special
|
---|
1149 | variant for raw partition access (currently only available on Linux
|
---|
1150 | hosts) that avoids having to give the current user access to the
|
---|
1151 | entire disk. To set up such an image, use<screen>VBoxManage internalcommands createrawvmdk -filename /path/to/file.vmdk
|
---|
1152 | -rawdisk /dev/sda -partitions 1,5 -relative</screen>When used from a
|
---|
1153 | virtual machine, the image will then refer not to the entire disk, but
|
---|
1154 | only to the individual partitions (in the example
|
---|
1155 | <code>/dev/sda1</code> and <code>/dev/sda5</code>). As a consequence,
|
---|
1156 | read/write access is only required for the affected partitions, not
|
---|
1157 | for the entire disk. During creation however, read-only access to the
|
---|
1158 | entire disk is required to obtain the partitioning information.</para>
|
---|
1159 |
|
---|
1160 | <para>In some configurations it may be necessary to change the MBR
|
---|
1161 | code of the created image, e.g. to replace the Linux boot loader that
|
---|
1162 | is used on the host by another boot loader. This allows e.g. the guest
|
---|
1163 | to boot directly to Windows, while the host boots Linux from the
|
---|
1164 | "same" disk. For this purpose the
|
---|
1165 | <computeroutput>-mbr</computeroutput> parameter is provided. It
|
---|
1166 | specifies a file name from which to take the MBR code. The partition
|
---|
1167 | table is not modified at all, so a MBR file from a system with totally
|
---|
1168 | different partitioning can be used. An example of this is<screen>VBoxManage internalcommands createrawvmdk -filename /path/to/file.vmdk
|
---|
1169 | -rawdisk /dev/sda -partitions 1,5 -mbr winxp.mbr</screen>The modified
|
---|
1170 | MBR will be stored inside the image, not on the host disk.</para>
|
---|
1171 |
|
---|
1172 | <para>The created image can be attached to a storage controller in a
|
---|
1173 | VM configuration as usual.</para>
|
---|
1174 | </sect3>
|
---|
1175 | </sect2>
|
---|
1176 |
|
---|
1177 | <sect2 id="changevpd">
|
---|
1178 | <title>Configuring the hard disk vendor product data (VPD)</title>
|
---|
1179 |
|
---|
1180 | <para>VirtualBox reports vendor product data for its virtual hard disks
|
---|
1181 | which consist of hard disk serial number, firmware revision and model
|
---|
1182 | number. These can be changed using the following commands:</para>
|
---|
1183 |
|
---|
1184 | <screen>VBoxManage setextradata "VM name"
|
---|
1185 | "VBoxInternal/Devices/ahci/0/Config/Port0/SerialNumber" "serial"
|
---|
1186 | VBoxManage setextradata "VM name"
|
---|
1187 | "VBoxInternal/Devices/ahci/0/Config/Port0/FirmwareRevision" "firmware"
|
---|
1188 | VBoxManage setextradata "VM name"
|
---|
1189 | "VBoxInternal/Devices/ahci/0/Config/Port0/ModelNumber" "model"</screen>
|
---|
1190 |
|
---|
1191 | <para>The serial number is a 20 byte alphanumeric string, the firmware
|
---|
1192 | revision an 8 byte alphanumeric string and the model number a 40 byte
|
---|
1193 | alphanumeric string. Instead of "Port0" (referring to the first port),
|
---|
1194 | specify the desired SATA hard disk port.</para>
|
---|
1195 |
|
---|
1196 | <para>The above commands apply to virtual machines with an AHCI (SATA)
|
---|
1197 | controller. The commands for virtual machines with an IDE controller
|
---|
1198 | are:</para>
|
---|
1199 |
|
---|
1200 | <screen>VBoxManage setextradata "VM name"
|
---|
1201 | "VBoxInternal/Devices/piix3ide/0/Config/PrimaryMaster/SerialNumber" "serial"
|
---|
1202 | VBoxManage setextradata "VM name"
|
---|
1203 | "VBoxInternal/Devices/piix3ide/0/Config/PrimaryMaster/FirmwareRevision" "firmware"
|
---|
1204 | VBoxManage setextradata "VM name"
|
---|
1205 | "VBoxInternal/Devices/piix3ide/0/Config/PrimaryMaster/ModelNumber" "model"</screen>
|
---|
1206 |
|
---|
1207 | <para>For hard disks it's also possible to mark the
|
---|
1208 | drive as having a non-rotational medium with:</para>
|
---|
1209 |
|
---|
1210 | <screen>VBoxManage setextradata "VM name"
|
---|
1211 | "VBoxInternal/Devices/ahci/0/Config/Port0/NonRotational" "1"</screen>
|
---|
1212 |
|
---|
1213 | <para>Additional three parameters are needed for CD/DVD drives to report
|
---|
1214 | the vendor product data:</para>
|
---|
1215 |
|
---|
1216 | <screen>VBoxManage setextradata "VM name"
|
---|
1217 | "VBoxInternal/Devices/ahci/0/Config/Port0/ATAPIVendorId" "vendor"
|
---|
1218 | VBoxManage setextradata "VM name"
|
---|
1219 | "VBoxInternal/Devices/ahci/0/Config/Port0/ATAPIProductId" "product"
|
---|
1220 | VBoxManage setextradata "VM name"
|
---|
1221 | "VBoxInternal/Devices/ahci/0/Config/Port0/ATAPIRevision" "revision"</screen>
|
---|
1222 |
|
---|
1223 | <para>The vendor id is an 8 byte alphanumeric string, the product id an
|
---|
1224 | 16 byte alphanumeric string and the revision a 4 byte alphanumeric
|
---|
1225 | string. Instead of "Port0" (referring to the first port), specify the
|
---|
1226 | desired SATA hard disk port.</para>
|
---|
1227 | </sect2>
|
---|
1228 |
|
---|
1229 | <sect2 id="iscsi-intnet">
|
---|
1230 | <title>Access iSCSI targets via Internal Networking</title>
|
---|
1231 |
|
---|
1232 | <para>As an experimental feature, VirtualBox allows for accessing an
|
---|
1233 | iSCSI target running in a virtual machine which is configured for using
|
---|
1234 | Internal Networking mode. Please see <xref linkend="storage-iscsi" />;
|
---|
1235 | <xref linkend="network_internal" />; and <xref
|
---|
1236 | linkend="vboxmanage-storageattach" /> for additional information.</para>
|
---|
1237 |
|
---|
1238 | <para>The IP stack accessing Internal Networking must be configured in
|
---|
1239 | the virtual machine which accesses the iSCSI target. A free static IP
|
---|
1240 | and a MAC address not used by other virtual machines must be chosen. In
|
---|
1241 | the example below, adapt the name of the virtual machine, the MAC
|
---|
1242 | address, the IP configuration and the Internal Networking name
|
---|
1243 | ("MyIntNet") according to your needs. The following eight commands must
|
---|
1244 | first be issued:<screen>VBoxManage setextradata "VM name" VBoxInternal/Devices/IntNetIP/0/Trusted 1
|
---|
1245 | VBoxManage setextradata "VM name" VBoxInternal/Devices/IntNetIP/0/Config/MAC 08:00:27:01:02:0f
|
---|
1246 | VBoxManage setextradata "VM name" VBoxInternal/Devices/IntNetIP/0/Config/IP 10.0.9.1
|
---|
1247 | VBoxManage setextradata "VM name" VBoxInternal/Devices/IntNetIP/0/Config/Netmask 255.255.255.0
|
---|
1248 | VBoxManage setextradata "VM name" VBoxInternal/Devices/IntNetIP/0/LUN#0/Driver IntNet
|
---|
1249 | VBoxManage setextradata "VM name" VBoxInternal/Devices/IntNetIP/0/LUN#0/Config/Network MyIntNet
|
---|
1250 | VBoxManage setextradata "VM name" VBoxInternal/Devices/IntNetIP/0/LUN#0/Config/TrunkType 2
|
---|
1251 | VBoxManage setextradata "VM name" VBoxInternal/Devices/IntNetIP/0/LUN#0/Config/IsService 1</screen></para>
|
---|
1252 |
|
---|
1253 | <para>Finally the iSCSI disk must be attached with the
|
---|
1254 | <computeroutput>--intnet</computeroutput> option to tell the iSCSI
|
---|
1255 | initiator to use internal networking:<screen>VBoxManage storageattach ... --medium iscsi
|
---|
1256 | --server 10.0.9.30 --target iqn.2008-12.com.sun:sampletarget --intnet</screen></para>
|
---|
1257 |
|
---|
1258 | <para>Compared to a "regular" iSCSI setup, IP address of the target
|
---|
1259 | <emphasis>must</emphasis> be specified as a numeric IP address, as there
|
---|
1260 | is no DNS resolver for internal networking.</para>
|
---|
1261 |
|
---|
1262 | <para>The virtual machine with the iSCSI target should be started before
|
---|
1263 | the VM using it is powered on. If a virtual machine using an iSCSI disk
|
---|
1264 | is started without having the iSCSI target powered up, it can take up to
|
---|
1265 | 200 seconds to detect this situation. The VM will fail to power
|
---|
1266 | up.</para>
|
---|
1267 | </sect2>
|
---|
1268 | </sect1>
|
---|
1269 |
|
---|
1270 | <sect1>
|
---|
1271 | <title>Legacy commands for using serial ports</title>
|
---|
1272 |
|
---|
1273 | <para>Starting with version 1.4, VirtualBox provided support for virtual
|
---|
1274 | serial ports, which, at the time, was rather complicated to set up with a
|
---|
1275 | sequence of <computeroutput>VBoxManage setextradata</computeroutput>
|
---|
1276 | statements. Since version 1.5, that way of setting up serial ports is no
|
---|
1277 | longer necessary and <emphasis>deprecated.</emphasis> To set up virtual
|
---|
1278 | serial ports, use the methods now described in <xref
|
---|
1279 | linkend="serialports" />.<note>
|
---|
1280 | <para>For backwards compatibility, the old
|
---|
1281 | <computeroutput>setextradata</computeroutput> statements, whose
|
---|
1282 | description is retained below from the old version of the manual, take
|
---|
1283 | <emphasis>precedence</emphasis> over the new way of configuring serial
|
---|
1284 | ports. As a result, if configuring serial ports the new way doesn't
|
---|
1285 | work, make sure the VM in question does not have old configuration
|
---|
1286 | data such as below still active.</para>
|
---|
1287 | </note></para>
|
---|
1288 |
|
---|
1289 | <para>The old sequence of configuring a serial port used the following 6
|
---|
1290 | commands:</para>
|
---|
1291 |
|
---|
1292 | <screen>VBoxManage setextradata "VM name"
|
---|
1293 | "VBoxInternal/Devices/serial/0/Config/IRQ" 4
|
---|
1294 | VBoxManage setextradata "VM name"
|
---|
1295 | "VBoxInternal/Devices/serial/0/Config/IOBase" 0x3f8
|
---|
1296 | VBoxManage setextradata "VM name"
|
---|
1297 | "VBoxInternal/Devices/serial/0/LUN#0/Driver" Char
|
---|
1298 | VBoxManage setextradata "VM name"
|
---|
1299 | "VBoxInternal/Devices/serial/0/LUN#0/AttachedDriver/Driver" NamedPipe
|
---|
1300 | VBoxManage setextradata "VM name"
|
---|
1301 | "VBoxInternal/Devices/serial/0/LUN#0/AttachedDriver/Config/Location" "\\.\pipe\vboxCOM1"
|
---|
1302 | VBoxManage setextradata "VM name"
|
---|
1303 | "VBoxInternal/Devices/serial/0/LUN#0/AttachedDriver/Config/IsServer" 1</screen>
|
---|
1304 |
|
---|
1305 | <para>This sets up a serial port in the guest with the default settings
|
---|
1306 | for COM1 (IRQ 4, I/O address 0x3f8) and the
|
---|
1307 | <computeroutput>Location</computeroutput> setting assumes that this
|
---|
1308 | configuration is used on a Windows host, because the Windows named pipe
|
---|
1309 | syntax is used. Keep in mind that on Windows hosts a named pipe must
|
---|
1310 | always start with <computeroutput>\\.\pipe\</computeroutput>. On Linux the
|
---|
1311 | same configuration settings apply, except that the path name for the
|
---|
1312 | <computeroutput>Location</computeroutput> can be chosen more freely. Local
|
---|
1313 | domain sockets can be placed anywhere, provided the user running
|
---|
1314 | VirtualBox has the permission to create a new file in the directory. The
|
---|
1315 | final command above defines that VirtualBox acts as a server, i.e. it
|
---|
1316 | creates the named pipe itself instead of connecting to an already existing
|
---|
1317 | one.</para>
|
---|
1318 | </sect1>
|
---|
1319 |
|
---|
1320 | <sect1 id="changenat">
|
---|
1321 | <title>Fine-tuning the VirtualBox NAT engine</title>
|
---|
1322 |
|
---|
1323 | <sect2>
|
---|
1324 | <title>Configuring the address of a NAT network interface</title>
|
---|
1325 |
|
---|
1326 | <para>In NAT mode, the guest network interface is assigned to the IPv4
|
---|
1327 | range <computeroutput>10.0.x.0/24</computeroutput> by default where
|
---|
1328 | <computeroutput>x</computeroutput> corresponds to the instance of the
|
---|
1329 | NAT interface +2. So <computeroutput>x</computeroutput> is 2 when there
|
---|
1330 | is only one NAT instance active. In that case the guest is assigned to
|
---|
1331 | the address <computeroutput>10.0.2.15</computeroutput>, the gateway is
|
---|
1332 | set to <computeroutput>10.0.2.2</computeroutput> and the name server can
|
---|
1333 | be found at <computeroutput>10.0.2.3</computeroutput>.</para>
|
---|
1334 |
|
---|
1335 | <para>If, for any reason, the NAT network needs to be changed, this can
|
---|
1336 | be achieved with the following command:</para>
|
---|
1337 |
|
---|
1338 | <screen>VBoxManage modifyvm "VM name" --natnet1 "192.168/16"</screen>
|
---|
1339 |
|
---|
1340 | <para>This command would reserve the network addresses from
|
---|
1341 | <computeroutput>192.168.0.0</computeroutput> to
|
---|
1342 | <computeroutput>192.168.254.254</computeroutput> for the first NAT
|
---|
1343 | network instance of "VM name". The guest IP would be assigned to
|
---|
1344 | <computeroutput>192.168.0.15</computeroutput> and the default gateway
|
---|
1345 | could be found at <computeroutput>192.168.0.2</computeroutput>.</para>
|
---|
1346 | </sect2>
|
---|
1347 |
|
---|
1348 | <sect2 id="nat-adv-tftp">
|
---|
1349 | <title>Configuring the boot server (next server) of a NAT network
|
---|
1350 | interface</title>
|
---|
1351 |
|
---|
1352 | <para>For network booting in NAT mode, by default VirtualBox uses a
|
---|
1353 | built-in TFTP server at the IP address 10.0.2.4. This default behavior
|
---|
1354 | should work fine for typical remote-booting scenarios. However, it is
|
---|
1355 | possible to change the boot server IP and the location of the boot image
|
---|
1356 | with the following commands: <screen>VBoxManage modifyvm "VM name" --nattftpserver1 10.0.2.2
|
---|
1357 | VBoxManage modifyvm "VM name" --nattftpfile1 /srv/tftp/boot/MyPXEBoot.pxe</screen></para>
|
---|
1358 | </sect2>
|
---|
1359 |
|
---|
1360 | <sect2 id="nat-adv-settings">
|
---|
1361 | <title>Tuning TCP/IP buffers for NAT</title>
|
---|
1362 |
|
---|
1363 | <para>The VirtualBox NAT stack performance is often determined by its
|
---|
1364 | interaction with the host's TCP/IP stack and the size of several buffers
|
---|
1365 | (<computeroutput>SO_RCVBUF</computeroutput> and
|
---|
1366 | <computeroutput>SO_SNDBUF</computeroutput>). For certain setups users
|
---|
1367 | might want to adjust the buffer size for a better performance. This can
|
---|
1368 | by achieved using the following commands (values are in kilobytes and
|
---|
1369 | can range from 8 to 1024): <screen>VBoxManage modifyvm "VM name" --natsettings1 16000,128,128,0,0</screen>
|
---|
1370 | This example illustrates tuning the NAT settings. The first parameter is
|
---|
1371 | the MTU, then the size of the socket's send buffer and the size of the
|
---|
1372 | socket's receive buffer, the initial size of the TCP send window, and
|
---|
1373 | lastly the initial size of the TCP receive window. Note that specifying
|
---|
1374 | zero means fallback to the default value.</para>
|
---|
1375 |
|
---|
1376 | <para>Each of these buffers has a default size of 64KB and default MTU
|
---|
1377 | is 1500.</para>
|
---|
1378 | </sect2>
|
---|
1379 |
|
---|
1380 | <sect2>
|
---|
1381 | <title>Binding NAT sockets to a specific interface</title>
|
---|
1382 |
|
---|
1383 | <para>By default, VirtualBox's NAT engine will route TCP/IP packets
|
---|
1384 | through the default interface assigned by the host's TCP/IP stack. (The
|
---|
1385 | technical reason for this is that the NAT engine uses sockets for
|
---|
1386 | communication.) If, for some reason, you want to change this behavior,
|
---|
1387 | you can tell the NAT engine to bind to a particular IP address instead.
|
---|
1388 | Use the following command: <screen>VBoxManage modifyvm "VM name" --natbindip1 "10.45.0.2"</screen></para>
|
---|
1389 |
|
---|
1390 | <para>After this, all outgoing traffic will be sent through the
|
---|
1391 | interface with the IP address 10.45.0.2. Please make sure that this
|
---|
1392 | interface is up and running prior to this assignment.</para>
|
---|
1393 | </sect2>
|
---|
1394 |
|
---|
1395 | <sect2 id="nat-adv-dns">
|
---|
1396 | <title>Enabling DNS proxy in NAT mode</title>
|
---|
1397 |
|
---|
1398 | <para>The NAT engine by default offers the same DNS servers to the guest
|
---|
1399 | that are configured on the host. In some scenarios, it can be desirable
|
---|
1400 | to hide the DNS server IPs from the guest, for example when this
|
---|
1401 | information can change on the host due to expiring DHCP leases. In this
|
---|
1402 | case, you can tell the NAT engine to act as DNS proxy using the
|
---|
1403 | following command: <screen>VBoxManage modifyvm "VM name" --natdnsproxy1 on</screen></para>
|
---|
1404 | </sect2>
|
---|
1405 |
|
---|
1406 | <sect2 id="nat_host_resolver_proxy">
|
---|
1407 | <title>Using the host's resolver as a DNS proxy in NAT mode</title>
|
---|
1408 |
|
---|
1409 | <para>For resolving network names, the DHCP server of the NAT engine
|
---|
1410 | offers a list of registered DNS servers of the host. If for some reason
|
---|
1411 | you need to hide this DNS server list and use the host's resolver
|
---|
1412 | settings, thereby forcing the VirtualBox NAT engine to intercept DNS
|
---|
1413 | requests and forward them to host's resolver, use the following command:
|
---|
1414 | <screen>VBoxManage modifyvm "VM name" --natdnshostresolver1 on</screen>
|
---|
1415 | Note that this setting is similar to the DNS proxy mode, however whereas
|
---|
1416 | the proxy mode just forwards DNS requests to the appropriate servers,
|
---|
1417 | the resolver mode will interpret the DNS requests and use the host's DNS
|
---|
1418 | API to query the information and return it to the guest.</para>
|
---|
1419 |
|
---|
1420 | <sect3 id="nat_host_resolver_name_intercepting">
|
---|
1421 | <title>User-defined host name resolving</title>
|
---|
1422 | <para>In some cases it might be useful to intercept the name resolving mechanism,
|
---|
1423 | providing a user-defined IP address on a particular DNS request. The intercepting
|
---|
1424 | mechanism allows the user to map not only a single host but domains and even more
|
---|
1425 | complex namings conventions if required.</para>
|
---|
1426 | <para>
|
---|
1427 | The following command sets a rule for mapping a name to a specified IP:</para>
|
---|
1428 | <screen>VBoxManage setextradata "VM name" \
|
---|
1429 | "VBoxInternal/Devices/{pcnet,e1000}/0/LUN#0/Config/HostResolverMappings/ \
|
---|
1430 | <uniq name of interception rule>/HostIP" <IPv4>
|
---|
1431 | VBoxManage setextradata "VM name" \
|
---|
1432 | "VBoxInternal/Devices/{pcnet,e1000}/0/LUN#0/Config/HostResolverMappings/ \
|
---|
1433 | <uniq name of interception rule>/HostName" <name of host></screen>
|
---|
1434 | <para>The following command sets a rule for mapping a pattern name to a specified IP:</para>
|
---|
1435 | <screen>VBoxManage setextradata "VM name" \
|
---|
1436 | "VBoxInternal/Devices/{pcnet,e1000}/0/LUN#0/Config/HostResolverMappings/ \
|
---|
1437 | <uniq name of interception rule>/HostIP" <IPv4>
|
---|
1438 | VBoxManage setextradata "VM name" \
|
---|
1439 | "VBoxInternal/Devices/{pcnet,e1000}/0/LUN#0/Config/HostResolverMappings/ \
|
---|
1440 | <uniq name of interception rule>/HostNamePattern" <hostpattern></screen>
|
---|
1441 | <para>The host pattern may include <computeroutput>"|", "?" and "*"</computeroutput>.</para>
|
---|
1442 | <para>This example demonstrates how to instruct the host-resolver mechanism to resolve
|
---|
1443 | all domain and probably some mirrors of www.blocked-site.info site with IP 127.0.0.1:</para>
|
---|
1444 | <screen>VBoxManage setextradata "VM name" \
|
---|
1445 | "VBoxInternal/Devices/e1000/0/LUN#0/Config/HostResolverMappings/ \
|
---|
1446 | all_blocked_site/HostIP" 127.0.0.1
|
---|
1447 | VBoxManage setextradata "VM name" \
|
---|
1448 | "VBoxInternal/Devices/e1000/0/LUN#0/Config/HostResolverMappings/ \
|
---|
1449 | all_blocked_site/HostNamePattern" "*.blocked-site.*|*.fb.org"</screen>
|
---|
1450 | <note><para>The host resolver mechanism should be enabled to use user-defined
|
---|
1451 | mapping rules (please see
|
---|
1452 | <xref linkend="nat_host_resolver_proxy" /> for more details).</para></note>
|
---|
1453 | </sect3>
|
---|
1454 | </sect2>
|
---|
1455 |
|
---|
1456 | <sect2 id="nat-adv-alias">
|
---|
1457 | <title>Configuring aliasing of the NAT engine</title>
|
---|
1458 |
|
---|
1459 | <para>By default, the NAT core uses aliasing and uses random ports when
|
---|
1460 | generating an alias for a connection. This works well for the most
|
---|
1461 | protocols like SSH, FTP and so on. Though some protocols might need a
|
---|
1462 | more transparent behavior or may depend on the real port number the
|
---|
1463 | packet was sent from. It is possible to change the NAT mode via the
|
---|
1464 | VBoxManage frontend with the following commands: <screen>VBoxManage modifyvm "VM name" --nataliasmode1 proxyonly</screen>
|
---|
1465 | and <screen>VBoxManage modifyvm "Linux Guest" --nataliasmode1 sameports</screen>
|
---|
1466 | The first example disables aliasing and switches NAT into transparent
|
---|
1467 | mode, the second example enforces preserving of port values. These modes
|
---|
1468 | can be combined if necessary.</para>
|
---|
1469 | </sect2>
|
---|
1470 | </sect1>
|
---|
1471 |
|
---|
1472 | <sect1 id="changedmi">
|
---|
1473 | <title>Configuring the BIOS DMI information</title>
|
---|
1474 |
|
---|
1475 | <para>The DMI data VirtualBox provides to guests can be changed for a
|
---|
1476 | specific VM. Use the following commands to configure the DMI BIOS
|
---|
1477 | information. In case your VM is configured to use EFI firmware you need to
|
---|
1478 | replace <code>pcbios</code> by <code>efi</code> in the keys.</para>
|
---|
1479 |
|
---|
1480 | <glosslist>
|
---|
1481 | <glossentry>
|
---|
1482 | <glossterm>DMI BIOS information</glossterm>
|
---|
1483 | <glossdef>
|
---|
1484 | <para>(type 0)</para>
|
---|
1485 | <screen>VBoxManage setextradata "VM name"
|
---|
1486 | "VBoxInternal/Devices/pcbios/0/Config/DmiBIOSVendor" "BIOS Vendor"
|
---|
1487 | VBoxManage setextradata "VM name"
|
---|
1488 | "VBoxInternal/Devices/pcbios/0/Config/DmiBIOSVersion" "BIOS Version"
|
---|
1489 | VBoxManage setextradata "VM name"
|
---|
1490 | "VBoxInternal/Devices/pcbios/0/Config/DmiBIOSReleaseDate" "BIOS Release Date"
|
---|
1491 | VBoxManage setextradata "VM name"
|
---|
1492 | "VBoxInternal/Devices/pcbios/0/Config/DmiBIOSReleaseMajor" 1
|
---|
1493 | VBoxManage setextradata "VM name"
|
---|
1494 | "VBoxInternal/Devices/pcbios/0/Config/DmiBIOSReleaseMinor" 2
|
---|
1495 | VBoxManage setextradata "VM name"
|
---|
1496 | "VBoxInternal/Devices/pcbios/0/Config/DmiBIOSFirmwareMajor" 3
|
---|
1497 | VBoxManage setextradata "VM name"
|
---|
1498 | "VBoxInternal/Devices/pcbios/0/Config/DmiBIOSFirmwareMinor" 4</screen>
|
---|
1499 | </glossdef>
|
---|
1500 | </glossentry>
|
---|
1501 |
|
---|
1502 | <glossentry>
|
---|
1503 | <glossterm>DMI system information</glossterm>
|
---|
1504 | <glossdef>
|
---|
1505 | <para>(type 1)</para>
|
---|
1506 | <screen>VBoxManage setextradata "VM name"
|
---|
1507 | "VBoxInternal/Devices/pcbios/0/Config/DmiSystemVendor" "System Vendor"
|
---|
1508 | VBoxManage setextradata "VM name"
|
---|
1509 | "VBoxInternal/Devices/pcbios/0/Config/DmiSystemProduct" "System Product"
|
---|
1510 | VBoxManage setextradata "VM name"
|
---|
1511 | "VBoxInternal/Devices/pcbios/0/Config/DmiSystemVersion" "System Version"
|
---|
1512 | VBoxManage setextradata "VM name"
|
---|
1513 | "VBoxInternal/Devices/pcbios/0/Config/DmiSystemSerial" "System Serial"
|
---|
1514 | VBoxManage setextradata "VM name"
|
---|
1515 | "VBoxInternal/Devices/pcbios/0/Config/DmiSystemSKU" "System SKU"
|
---|
1516 | VBoxManage setextradata "VM name"
|
---|
1517 | "VBoxInternal/Devices/pcbios/0/Config/DmiSystemFamily" "System Family"
|
---|
1518 | VBoxManage setextradata "VM name"
|
---|
1519 | "VBoxInternal/Devices/pcbios/0/Config/DmiSystemUuid"
|
---|
1520 | "9852bf98-b83c-49db-a8de-182c42c7226b"</screen>
|
---|
1521 | </glossdef>
|
---|
1522 | </glossentry>
|
---|
1523 |
|
---|
1524 | <glossentry>
|
---|
1525 | <glossterm>DMI board information</glossterm>
|
---|
1526 | <glossdef>
|
---|
1527 | <para>(type 2)</para>
|
---|
1528 | <screen>VBoxManage setextradata "VM name"
|
---|
1529 | "VBoxInternal/Devices/pcbios/0/Config/DmiBoardVendor" "Board Vendor"
|
---|
1530 | VBoxManage setextradata "VM name"
|
---|
1531 | "VBoxInternal/Devices/pcbios/0/Config/DmiBoardProduct" "Board Product"
|
---|
1532 | VBoxManage setextradata "VM name"
|
---|
1533 | "VBoxInternal/Devices/pcbios/0/Config/DmiBoardVersion" "Board Version"
|
---|
1534 | VBoxManage setextradata "VM name"
|
---|
1535 | "VBoxInternal/Devices/pcbios/0/Config/DmiBoardSerial" "Board Serial"
|
---|
1536 | VBoxManage setextradata "VM name"
|
---|
1537 | "VBoxInternal/Devices/pcbios/0/Config/DmiBoardAssetTag" "Board Tag"
|
---|
1538 | VBoxManage setextradata "VM name"
|
---|
1539 | "VBoxInternal/Devices/pcbios/0/Config/DmiBoardLocInChass" "Board Location"
|
---|
1540 | VBoxManage setextradata "VM name"
|
---|
1541 | "VBoxInternal/Devices/pcbios/0/Config/DmiBoardBoardType" 10</screen>
|
---|
1542 | </glossdef>
|
---|
1543 | </glossentry>
|
---|
1544 |
|
---|
1545 | <glossentry>
|
---|
1546 | <glossterm>DMI system enclosure or chassis</glossterm>
|
---|
1547 | <glossdef>
|
---|
1548 | <para>(type 3)</para>
|
---|
1549 | <screen>VBoxManage setextradata "VM name"
|
---|
1550 | "VBoxInternal/Devices/pcbios/0/Config/DmiChassisVendor" "Chassis Vendor"
|
---|
1551 | VBoxManage setextradata "VM name"
|
---|
1552 | "VBoxInternal/Devices/pcbios/0/Config/DmiChassisType" 3
|
---|
1553 | VBoxManage setextradata "VM name"
|
---|
1554 | "VBoxInternal/Devices/pcbios/0/Config/DmiChassisVersion" "Chassis Version"
|
---|
1555 | VBoxManage setextradata "VM name"
|
---|
1556 | "VBoxInternal/Devices/pcbios/0/Config/DmiChassisSerial" "Chassis Serial"
|
---|
1557 | VBoxManage setextradata "VM name"
|
---|
1558 | "VBoxInternal/Devices/pcbios/0/Config/DmiChassisAssetTag" "Chassis Tag"</screen>
|
---|
1559 | </glossdef>
|
---|
1560 | </glossentry>
|
---|
1561 |
|
---|
1562 | <glossentry>
|
---|
1563 | <glossterm>DMI processor information</glossterm>
|
---|
1564 | <glossdef>
|
---|
1565 | <para>(type 4)</para>
|
---|
1566 | <screen>VBoxManage setextradata "VM name"
|
---|
1567 | "VBoxInternal/Devices/pcbios/0/Config/DmiProcManufacturer" "GenuineIntel"
|
---|
1568 | VBoxManage setextradata "VM name"
|
---|
1569 | "VBoxInternal/Devices/pcbios/0/Config/DmiProcVersion" "Pentium(R) III"</screen>
|
---|
1570 | </glossdef>
|
---|
1571 | </glossentry>
|
---|
1572 |
|
---|
1573 | <glossentry>
|
---|
1574 | <glossterm>DMI OEM strings</glossterm>
|
---|
1575 | <glossdef>
|
---|
1576 | <para>(type 11)</para>
|
---|
1577 | <screen>VBoxManage setextradata "VM name"
|
---|
1578 | "VBoxInternal/Devices/pcbios/0/Config/DmiOEMVBoxVer" "vboxVer_1.2.3"
|
---|
1579 | VBoxManage setextradata "VM name"
|
---|
1580 | "VBoxInternal/Devices/pcbios/0/Config/DmiOEMVBoxRev" "vboxRev_12345"</screen>
|
---|
1581 | </glossdef>
|
---|
1582 | </glossentry>
|
---|
1583 | </glosslist>
|
---|
1584 |
|
---|
1585 | <para>If a DMI string is not set, the default value of VirtualBox is used.
|
---|
1586 | To set an empty string use
|
---|
1587 | <computeroutput>"<EMPTY>"</computeroutput>.</para>
|
---|
1588 |
|
---|
1589 | <para>Note that in the above list, all quoted parameters (DmiBIOSVendor,
|
---|
1590 | DmiBIOSVersion but not DmiBIOSReleaseMajor) are expected to be strings. If
|
---|
1591 | such a string is a valid number, the parameter is treated as number and
|
---|
1592 | the VM will most probably refuse to start with an
|
---|
1593 | <computeroutput>VERR_CFGM_NOT_STRING</computeroutput> error. In that case,
|
---|
1594 | use <computeroutput>"string:<value>"</computeroutput>, for instance
|
---|
1595 | <screen>VBoxManage setextradata "VM name"
|
---|
1596 | "VBoxInternal/Devices/pcbios/0/Config/DmiSystemSerial" "string:1234"</screen></para>
|
---|
1597 |
|
---|
1598 | <para>Changing this information can be necessary to provide the DMI
|
---|
1599 | information of the host to the guest to prevent Windows from asking for a
|
---|
1600 | new product key. On Linux hosts the DMI BIOS information can be obtained
|
---|
1601 | with <screen>dmidecode -t0</screen>and the DMI system information can be
|
---|
1602 | obtained with <screen>dmidecode -t1</screen></para>
|
---|
1603 | </sect1>
|
---|
1604 |
|
---|
1605 | <sect1 id="changeacpicust">
|
---|
1606 | <title>Configuring the custom ACPI table</title>
|
---|
1607 |
|
---|
1608 | <para>VirtualBox can be configured to present an custom ACPI table to
|
---|
1609 | the guest. Use the following command to configure this:</para>
|
---|
1610 |
|
---|
1611 | <screen>VBoxManage setextradata "VM name"
|
---|
1612 | "VBoxInternal/Devices/acpi/0/Config/CustomTable" "/path/to/table.bin"</screen>
|
---|
1613 |
|
---|
1614 | <para>Configuring a custom ACPI table can prevent Windows
|
---|
1615 | Vista and Windows 7 from asking for a new product key. On Linux hosts,
|
---|
1616 | one of the host tables can be read from
|
---|
1617 | <filename>/sys/firmware/acpi/tables/</filename>.</para>
|
---|
1618 | </sect1>
|
---|
1619 |
|
---|
1620 | <sect1>
|
---|
1621 | <title>Fine-tuning timers and time synchronization</title>
|
---|
1622 |
|
---|
1623 | <sect2 id="changetscmode">
|
---|
1624 | <title>Configuring the guest time stamp counter (TSC) to reflect guest
|
---|
1625 | execution</title>
|
---|
1626 |
|
---|
1627 | <para>By default, VirtualBox keeps all sources of time visible to the
|
---|
1628 | guest synchronized to a single time source, the monotonic host time.
|
---|
1629 | This reflects the assumptions of many guest operating systems, which
|
---|
1630 | expect all time sources to reflect "wall clock" time. In special
|
---|
1631 | circumstances it may be useful however to make the TSC (time stamp
|
---|
1632 | counter) in the guest reflect the time actually spent executing the
|
---|
1633 | guest.</para>
|
---|
1634 |
|
---|
1635 | <para>This special TSC handling mode can be enabled on a per-VM basis,
|
---|
1636 | and for best results must be used only in combination with hardware
|
---|
1637 | virtualization. To enable this mode use the following command:</para>
|
---|
1638 |
|
---|
1639 | <screen>VBoxManage setextradata "VM name" "VBoxInternal/TM/TSCTiedToExecution" 1</screen>
|
---|
1640 |
|
---|
1641 | <para>To revert to the default TSC handling mode use:</para>
|
---|
1642 |
|
---|
1643 | <screen>VBoxManage setextradata "VM name" "VBoxInternal/TM/TSCTiedToExecution"</screen>
|
---|
1644 |
|
---|
1645 | <para>Note that if you use the special TSC handling mode with a guest
|
---|
1646 | operating system which is very strict about the consistency of time
|
---|
1647 | sources you may get a warning or error message about the timing
|
---|
1648 | inconsistency. It may also cause clocks to become unreliable with some
|
---|
1649 | guest operating systems depending on how they use the TSC.</para>
|
---|
1650 | </sect2>
|
---|
1651 |
|
---|
1652 | <sect2 id="warpguest">
|
---|
1653 | <title>Accelerate or slow down the guest clock</title>
|
---|
1654 |
|
---|
1655 | <para>For certain purposes it can be useful to accelerate or to slow
|
---|
1656 | down the (virtual) guest clock. This can be achieved as follows:</para>
|
---|
1657 |
|
---|
1658 | <screen>VBoxManage setextradata "VM name" "VBoxInternal/TM/WarpDrivePercentage" 200</screen>
|
---|
1659 |
|
---|
1660 | <para>The above example will double the speed of the guest clock
|
---|
1661 | while</para>
|
---|
1662 |
|
---|
1663 | <screen>VBoxManage setextradata "VM name" "VBoxInternal/TM/WarpDrivePercentage" 50</screen>
|
---|
1664 |
|
---|
1665 | <para>will halve the speed of the guest clock. Note that changing the
|
---|
1666 | rate of the virtual clock can confuse the guest and can even lead to
|
---|
1667 | abnormal guest behavior. For instance, a higher clock rate means shorter
|
---|
1668 | timeouts for virtual devices with the result that a slightly increased
|
---|
1669 | response time of a virtual device due to an increased host load can
|
---|
1670 | cause guest failures. Note further that any time synchronization
|
---|
1671 | mechanism will frequently try to resynchronize the guest clock with the
|
---|
1672 | reference clock (which is the host clock if the VirtualBox Guest
|
---|
1673 | Additions are active). Therefore any time synchronization should be
|
---|
1674 | disabled if the rate of the guest clock is changed as described above
|
---|
1675 | (see <xref linkend="changetimesync" />).</para>
|
---|
1676 | </sect2>
|
---|
1677 |
|
---|
1678 | <sect2 id="changetimesync">
|
---|
1679 | <title>Tuning the Guest Additions time synchronization
|
---|
1680 | parameters</title>
|
---|
1681 |
|
---|
1682 | <para>The VirtualBox Guest Additions ensure that the guest's system time
|
---|
1683 | is synchronized with the host time. There are several parameters which
|
---|
1684 | can be tuned. The parameters can be set for a specific VM using the
|
---|
1685 | following command:</para>
|
---|
1686 |
|
---|
1687 | <screen>VBoxManage guestproperty set "VM name" "/VirtualBox/GuestAdd/VBoxService/PARAMETER" VALUE</screen>
|
---|
1688 |
|
---|
1689 | <para>where <computeroutput>PARAMETER</computeroutput> is one of the
|
---|
1690 | following:</para>
|
---|
1691 |
|
---|
1692 | <glosslist>
|
---|
1693 | <glossentry>
|
---|
1694 | <glossterm><computeroutput>--timesync-interval</computeroutput></glossterm>
|
---|
1695 | <glossdef>
|
---|
1696 | <para>Specifies the interval at which to synchronize the time
|
---|
1697 | with the host. The default is 10000 ms (10 seconds).</para>
|
---|
1698 | </glossdef>
|
---|
1699 | </glossentry>
|
---|
1700 |
|
---|
1701 | <glossentry>
|
---|
1702 | <glossterm><computeroutput>--timesync-min-adjust</computeroutput></glossterm>
|
---|
1703 | <glossdef>
|
---|
1704 | <para>The minimum absolute drift value measured in milliseconds
|
---|
1705 | to make adjustments for. The default is 1000 ms on OS/2 and 100
|
---|
1706 | ms elsewhere.</para>
|
---|
1707 | </glossdef>
|
---|
1708 | </glossentry>
|
---|
1709 | <glossentry>
|
---|
1710 | <glossterm><computeroutput>--timesync-latency-factor</computeroutput></glossterm>
|
---|
1711 | <glossdef>
|
---|
1712 | <para>The factor to multiply the time query latency with to
|
---|
1713 | calculate the dynamic minimum adjust time. The default is 8
|
---|
1714 | times, that means in detail: Measure the time it takes to
|
---|
1715 | determine the host time (the guest has to contact the VM host
|
---|
1716 | service which may take some time), multiply this value by 8 and
|
---|
1717 | do an adjustment only if the time difference between host and
|
---|
1718 | guest is bigger than this value. Don't do any time adjustment
|
---|
1719 | otherwise.</para>
|
---|
1720 | </glossdef>
|
---|
1721 | </glossentry>
|
---|
1722 |
|
---|
1723 | <glossentry>
|
---|
1724 | <glossterm><computeroutput>--timesync-max-latency</computeroutput></glossterm>
|
---|
1725 | <glossdef>
|
---|
1726 | <para>The max host timer query latency to accept. The default is
|
---|
1727 | 250 ms.</para>
|
---|
1728 | </glossdef>
|
---|
1729 | </glossentry>
|
---|
1730 |
|
---|
1731 | <glossentry>
|
---|
1732 | <glossterm><computeroutput>--timesync-set-threshold</computeroutput></glossterm>
|
---|
1733 | <glossdef>
|
---|
1734 | <para>The absolute drift threshold, given as milliseconds where
|
---|
1735 | to start setting the time instead of trying to smoothly adjust
|
---|
1736 | it. The default is 20 minutes.</para>
|
---|
1737 | </glossdef>
|
---|
1738 | </glossentry>
|
---|
1739 |
|
---|
1740 | <glossentry>
|
---|
1741 | <glossterm><computeroutput>--timesync-set-start</computeroutput></glossterm>
|
---|
1742 | <glossdef>
|
---|
1743 | <para>Set the time when starting the time sync service.</para>
|
---|
1744 | </glossdef>
|
---|
1745 | </glossentry>
|
---|
1746 |
|
---|
1747 | <glossentry>
|
---|
1748 | <glossterm><computeroutput>--timesync-set-on-restore
|
---|
1749 | 0|1</computeroutput></glossterm>
|
---|
1750 | <glossdef>
|
---|
1751 | <para>Set the time after the VM was restored from a saved state
|
---|
1752 | when passing 1 as parameter (default). Disable by passing 0. In
|
---|
1753 | the latter case, the time will be adjusted smoothly which can
|
---|
1754 | take a long time.</para>
|
---|
1755 | </glossdef>
|
---|
1756 | </glossentry>
|
---|
1757 | </glosslist>
|
---|
1758 |
|
---|
1759 | <para>All these parameters can be specified as command line parameters
|
---|
1760 | to VBoxService as well.</para>
|
---|
1761 | </sect2>
|
---|
1762 |
|
---|
1763 | <sect2 id="disabletimesync">
|
---|
1764 |
|
---|
1765 | <title>Disabling the Guest Additions time synchronization</title>
|
---|
1766 |
|
---|
1767 | <para>Once installed and started, the VirtualBox Guest Additions will
|
---|
1768 | try to synchronize the guest time with the host time. This can be
|
---|
1769 | prevented by forbidding the guest service from reading the host
|
---|
1770 | clock:</para>
|
---|
1771 |
|
---|
1772 | <screen>VBoxManage setextradata "VM name" "VBoxInternal/Devices/VMMDev/0/Config/GetHostTimeDisabled" 1</screen>
|
---|
1773 |
|
---|
1774 | </sect2>
|
---|
1775 |
|
---|
1776 | </sect1>
|
---|
1777 |
|
---|
1778 | <sect1 id="vboxbowsolaris11">
|
---|
1779 | <title>Installing the alternate bridged networking driver on Solaris 11
|
---|
1780 | hosts</title>
|
---|
1781 |
|
---|
1782 | <para>Starting with VirtualBox 4.1, VirtualBox ships a new network filter
|
---|
1783 | driver that utilizes Solaris 11's Crossbow functionality. By default, this
|
---|
1784 | new driver is installed for Solaris 11 hosts (builds 159 and above) that
|
---|
1785 | has support for it.</para>
|
---|
1786 |
|
---|
1787 | <para>To force installation of the older STREAMS based network filter
|
---|
1788 | driver, execute as root the following command before installing the
|
---|
1789 | VirtualBox package:</para>
|
---|
1790 |
|
---|
1791 | <screen>touch /etc/vboxinst_vboxflt</screen>
|
---|
1792 |
|
---|
1793 | <para>To force installation of the Crossbow based network filter driver,
|
---|
1794 | execute as root the following command before installing the VirtualBox
|
---|
1795 | package:</para>
|
---|
1796 |
|
---|
1797 | <screen>touch /etc/vboxinst_vboxbow</screen>
|
---|
1798 |
|
---|
1799 | <para>To check which driver is currently being used by VirtualBox,
|
---|
1800 | execute:</para>
|
---|
1801 |
|
---|
1802 | <screen>modinfo | grep vbox</screen>
|
---|
1803 |
|
---|
1804 | <para>If the output contains "vboxbow", it indicates VirtualBox is using
|
---|
1805 | the Crossbow network filter driver, while the name "vboxflt" indicates
|
---|
1806 | usage of the older STREAMS network filter.</para>
|
---|
1807 | </sect1>
|
---|
1808 |
|
---|
1809 | <sect1 id="vboxbowvnictemplates">
|
---|
1810 | <title>VirtualBox VNIC templates for VLANs on Solaris 11 hosts</title>
|
---|
1811 |
|
---|
1812 | <para>VirtualBox supports VNIC (Virtual Network Interface) templates for
|
---|
1813 | configuring VMs over VLANs.<footnote>
|
---|
1814 | <para>Support for Crossbow based bridged networking was introduced
|
---|
1815 | with VirtualBox 4.1 and requires Solaris 11 build 159 or above.</para>
|
---|
1816 | </footnote> A VirtualBox VNIC template is a VNIC whose name starts with
|
---|
1817 | "vboxvnic_template" (case-sensitive).</para>
|
---|
1818 |
|
---|
1819 | <para>On Solaris 11 hosts<footnote><para>When Crossbow based bridged
|
---|
1820 | networking is used.</para></footnote>, a VNIC template may be used to
|
---|
1821 | specify the VLAN ID to use while bridging over a network link.</para>
|
---|
1822 |
|
---|
1823 | <para>Here is an example of how to use a VNIC template to configure a VM
|
---|
1824 | over a VLAN. Create a VirtualBox VNIC template, by executing as root:</para>
|
---|
1825 |
|
---|
1826 | <screen>dladm create-vnic -t -l nge0 -v 23 vboxvnic_template0</screen>
|
---|
1827 |
|
---|
1828 | <para>This will create a temporary VNIC template over interface "nge0"
|
---|
1829 | with the VLAN ID 23. To create VNIC templates that are persistent across
|
---|
1830 | host reboots, skip the <computeroutput>-t</computeroutput> parameter in the
|
---|
1831 | above command. You may check the current state of links using:</para>
|
---|
1832 |
|
---|
1833 | <para><screen>$ dladm show-link
|
---|
1834 | LINK CLASS MTU STATE BRIDGE OVER
|
---|
1835 | nge0 phys 1500 up -- --
|
---|
1836 | nge1 phys 1500 down -- --
|
---|
1837 | vboxvnic_template0 vnic 1500 up -- nge0
|
---|
1838 |
|
---|
1839 | $ dladm show-vnic
|
---|
1840 | LINK OVER SPEED MACADDRESS MACADDRTYPE VID
|
---|
1841 | vboxvnic_template0 nge0 1000 2:8:20:25:12:75 random 23</screen></para>
|
---|
1842 |
|
---|
1843 | <para>Once the VNIC template is created, any VMs that need to be on VLAN
|
---|
1844 | 23 over the interface "nge0" can be configured to bridge using this VNIC
|
---|
1845 | template.</para>
|
---|
1846 |
|
---|
1847 | <para>VNIC templates makes managing VMs on VLANs simpler and efficient.
|
---|
1848 | The VLAN details are not stored as part of every VM's configuration but
|
---|
1849 | rather inherited from the VNIC template while starting the VM. The VNIC
|
---|
1850 | template itself can be modified anytime using <computeroutput>dladm</computeroutput>.</para>
|
---|
1851 |
|
---|
1852 | <para>VNIC templates can be created with additional properties such as
|
---|
1853 | bandwidth limits, CPU fanout etc. Refer to your Solaris network
|
---|
1854 | documentation on how to accomplish this. These additional properties,
|
---|
1855 | if any, are also applied to VMs which bridge using the VNIC template.</para>
|
---|
1856 | </sect1>
|
---|
1857 |
|
---|
1858 | <sect1 id="addhostonlysolaris">
|
---|
1859 | <title>Configuring multiple host-only network interfaces on Solaris
|
---|
1860 | hosts</title>
|
---|
1861 |
|
---|
1862 | <para>By default VirtualBox provides you with one host-only network
|
---|
1863 | interface. Adding more host-only network interfaces on Solaris hosts
|
---|
1864 | requires manual configuration. Here's how to add another host-only
|
---|
1865 | network interface.</para>
|
---|
1866 |
|
---|
1867 | <para>Begin by stopping all running VMs. Then, unplumb the existing
|
---|
1868 | "vboxnet0" interface by execute the following command as root:</para>
|
---|
1869 |
|
---|
1870 | <screen>ifconfig vboxnet0 unplumb</screen>
|
---|
1871 |
|
---|
1872 | <para>If you have several vboxnet interfaces, you will need to unplumb
|
---|
1873 | all of them. Once all vboxnet interfaces are unplumbed, remove the
|
---|
1874 | driver by executing the following command as root:</para>
|
---|
1875 |
|
---|
1876 | <screen>rem_drv vboxnet</screen>
|
---|
1877 |
|
---|
1878 | <para>Edit the file <computeroutput>/platform/i86pc/kernel/drv/vboxnet.conf</computeroutput>
|
---|
1879 | and add a line for the new interface we want to add as shown below:</para>
|
---|
1880 |
|
---|
1881 | <screen>name="vboxnet" parent="pseudo" instance=1;
|
---|
1882 | name="vboxnet" parent="pseudo" instance=2;</screen>
|
---|
1883 |
|
---|
1884 | <para>Add as many of these lines as required with each line having a
|
---|
1885 | unique instance number.</para>
|
---|
1886 |
|
---|
1887 | <para>Next, reload the vboxnet driver by executing the following command
|
---|
1888 | as root:</para>
|
---|
1889 |
|
---|
1890 | <screen>add_drv vboxnet</screen>
|
---|
1891 |
|
---|
1892 | <para>On Solaris 11.1 and newer hosts you may want to rename the default
|
---|
1893 | vanity interface name. To check what name has been assigned, execute:</para>
|
---|
1894 |
|
---|
1895 | <screen>dladm show-phys
|
---|
1896 | LINK MEDIA STATE SPEED DUPLEX DEVICE
|
---|
1897 | net0 Ethernet up 100 full e1000g0
|
---|
1898 | net2 Ethernet up 1000 full vboxnet1
|
---|
1899 | net1 Ethernet up 1000 full vboxnet0</screen>
|
---|
1900 |
|
---|
1901 | <para>In the above example, we can rename "net2" to "vboxnet1" before
|
---|
1902 | proceeding to plumb the interface. This can be done by executing as root:</para>
|
---|
1903 |
|
---|
1904 | <screen>dladm rename-link net2 vboxnet1</screen>
|
---|
1905 |
|
---|
1906 | <para>Now plumb all the interfaces using
|
---|
1907 | <computeroutput>ifconfig vboxnetX plumb</computeroutput> (where 'X' would
|
---|
1908 | be 1 in this case). Once the interface is plumbed, it may be configured
|
---|
1909 | like any other network interface. Refer to the
|
---|
1910 | <computeroutput>ifconfig</computeroutput> documentation for further details.</para>
|
---|
1911 |
|
---|
1912 | <para>To make the newly added interfaces' settings persistent across
|
---|
1913 | reboots, you will need to edit the files
|
---|
1914 | <computeroutput>/etc/inet/netmasks</computeroutput>, and if you are using NWAM
|
---|
1915 | <computeroutput>/etc/nwam/llp</computeroutput> and add the appropriate
|
---|
1916 | entries to set the netmask and static IP for each of those interfaces. The
|
---|
1917 | VirtualBox installer only updates these configuration files for the one
|
---|
1918 | "vboxnet0" interface it creates by default.</para>
|
---|
1919 | </sect1>
|
---|
1920 |
|
---|
1921 | <sect1 id="solariscodedumper">
|
---|
1922 | <title>Configuring the VirtualBox CoreDumper on Solaris hosts</title>
|
---|
1923 |
|
---|
1924 | <para>VirtualBox is capable of producing its own core files for extensive
|
---|
1925 | debugging when things go wrong. Currently this is only available on
|
---|
1926 | Solaris hosts.</para>
|
---|
1927 |
|
---|
1928 | <para>The VirtualBox CoreDumper can be enabled using the following
|
---|
1929 | command:</para>
|
---|
1930 |
|
---|
1931 | <para><screen>VBoxManage setextradata "VM name" VBoxInternal2/CoreDumpEnabled 1</screen></para>
|
---|
1932 |
|
---|
1933 | <para>You can specify which directory to use for core dumps with this
|
---|
1934 | command:</para>
|
---|
1935 |
|
---|
1936 | <para><screen>VBoxManage setextradata "VM name" VBoxInternal2/CoreDumpDir <path-to-directory></screen>Make
|
---|
1937 | sure the directory you specify is on a volume with sufficient free space
|
---|
1938 | and that the VirtualBox process has sufficient permissions to write files
|
---|
1939 | to this directory. If you skip this command and don't specify any core
|
---|
1940 | dump directory, the current directory of the VirtualBox executable will be
|
---|
1941 | used (which would most likely fail when writing cores as they are
|
---|
1942 | protected with root permissions). It is recommended you explicitly set a
|
---|
1943 | core dump directory.</para>
|
---|
1944 |
|
---|
1945 | <para>You must specify when the VirtualBox CoreDumper should be triggered.
|
---|
1946 | This is done using the following commands:</para>
|
---|
1947 |
|
---|
1948 | <para><screen>VBoxManage setextradata "VM name" VBoxInternal2/CoreDumpReplaceSystemDump 1
|
---|
1949 | VBoxManage setextradata "VM name" VBoxInternal2/CoreDumpLive 1</screen>At
|
---|
1950 | least one of the above two commands will have to be provided if you have
|
---|
1951 | enabled the VirtualBox CoreDumper.</para>
|
---|
1952 |
|
---|
1953 | <para>Setting <computeroutput>CoreDumpReplaceSystemDump</computeroutput>
|
---|
1954 | sets up the VM to override the host's core dumping mechanism and in the
|
---|
1955 | event of any crash only the VirtualBox CoreDumper would produce the core
|
---|
1956 | file.</para>
|
---|
1957 |
|
---|
1958 | <para>Setting <computeroutput>CoreDumpLive</computeroutput> sets up the VM
|
---|
1959 | to produce cores whenever the VM process receives a
|
---|
1960 | <computeroutput>SIGUSR2</computeroutput> signal. After producing the core
|
---|
1961 | file, the VM will not be terminated and will continue to run. You can thus
|
---|
1962 | take cores of the VM process using:</para>
|
---|
1963 |
|
---|
1964 | <para><screen>kill -s SIGUSR2 <VM-process-id></screen></para>
|
---|
1965 |
|
---|
1966 | <para>Core files produced by the VirtualBox CoreDumper are of the form
|
---|
1967 | <computeroutput>core.vb.<ProcessName>.<ProcessID></computeroutput>,
|
---|
1968 | for example <computeroutput>core.vb.VBoxHeadless.11321</computeroutput>.</para>
|
---|
1969 | </sect1>
|
---|
1970 |
|
---|
1971 | <sect1 id="vboxandsolzvmm">
|
---|
1972 | <title>VirtualBox and Solaris kernel zones</title>
|
---|
1973 |
|
---|
1974 | <para>Solaris kernel zones on x86-based systems make use of hardware-assisted
|
---|
1975 | virtualization features like VirtualBox does. However, for kernel zones and
|
---|
1976 | VirtualBox to share this hardware resource, they need to co-operate.</para>
|
---|
1977 |
|
---|
1978 | <para>By default, due to performance reasons, VirtualBox acquires the
|
---|
1979 | hardware-assisted virtualization resource (VT-x/AMD-V) globally on the
|
---|
1980 | host machine and uses it until the last VirtualBox VM that requires it is
|
---|
1981 | powered off. This prevents other software from using VT-x/AMD-V during the
|
---|
1982 | time VirtualBox has taken control of it.</para>
|
---|
1983 |
|
---|
1984 | <para>VirtualBox can be instructed to relinquish use of hardware-assisted
|
---|
1985 | virtualization features when not executing guest code, thereby allowing
|
---|
1986 | kernel zones to make use of them. To do this, shutdown all VirtualBox VMs
|
---|
1987 | and execute the following command:</para>
|
---|
1988 |
|
---|
1989 | <screen>VBoxManage setproperty hwvirtexclusive off</screen>
|
---|
1990 |
|
---|
1991 | <para>This command needs to be executed only once as the setting is stored
|
---|
1992 | as part of the global VirtualBox settings which will continue to persist
|
---|
1993 | across host-reboots and VirtualBox upgrades.</para>
|
---|
1994 | </sect1>
|
---|
1995 |
|
---|
1996 | <sect1 id="guitweaks">
|
---|
1997 | <title>Locking down the VirtualBox manager GUI</title>
|
---|
1998 |
|
---|
1999 | <sect2>
|
---|
2000 | <title>Customizing the VM manager</title>
|
---|
2001 |
|
---|
2002 | <para>There are several advanced customization settings for locking down
|
---|
2003 | the VirtualBox manager, that is, removing some features that the user
|
---|
2004 | should not see.</para>
|
---|
2005 |
|
---|
2006 | <para><screen>VBoxManage setextradata global GUI/Customizations OPTION[,OPTION...]</screen></para>
|
---|
2007 |
|
---|
2008 | <para>where <computeroutput>OPTION</computeroutput> is one of the
|
---|
2009 | following keywords:<glosslist>
|
---|
2010 | <glossentry>
|
---|
2011 | <glossterm><computeroutput>noSelector</computeroutput></glossterm>
|
---|
2012 | <glossdef>
|
---|
2013 | <para>Don't allow to start the VirtualBox manager. Trying to do so
|
---|
2014 | will show a window containing a proper error message.</para>
|
---|
2015 | </glossdef>
|
---|
2016 | </glossentry>
|
---|
2017 |
|
---|
2018 | <glossentry>
|
---|
2019 | <glossterm><computeroutput>noMenuBar</computeroutput></glossterm>
|
---|
2020 | <glossdef>
|
---|
2021 | <para>VM windows will not contain a menu bar.</para>
|
---|
2022 | </glossdef>
|
---|
2023 | </glossentry>
|
---|
2024 |
|
---|
2025 | <glossentry>
|
---|
2026 | <glossterm><computeroutput>noStatusBar</computeroutput></glossterm>
|
---|
2027 | <glossdef>
|
---|
2028 | <para>VM windows will not contain a status bar.</para>
|
---|
2029 | </glossdef>
|
---|
2030 | </glossentry>
|
---|
2031 | </glosslist></para>
|
---|
2032 |
|
---|
2033 | <para>To disable any of these VM manager customizations do
|
---|
2034 | <screen>VBoxManage setextradata global GUI/Customizations</screen></para>
|
---|
2035 |
|
---|
2036 | </sect2>
|
---|
2037 | <sect2>
|
---|
2038 |
|
---|
2039 | <title>VM selector customization</title>
|
---|
2040 | <para>The following per-machine VM extradata settings can be used to change the
|
---|
2041 | behavior of the VM selector window in respect of certain VMs:</para>
|
---|
2042 | <screen>VBoxManage setextradata "VM name" true</screen>
|
---|
2043 | <para>where <computeroutput>SETTING</computeroutput> can be:</para>
|
---|
2044 | <glosslist>
|
---|
2045 | <glossentry>
|
---|
2046 | <glossterm><computeroutput>GUI/HideDetails</computeroutput></glossterm>
|
---|
2047 | <glossdef>
|
---|
2048 | <para>Don't show the VM configuration of a certain VM. The details
|
---|
2049 | window will remain just empty if this VM is selected.</para>
|
---|
2050 | </glossdef>
|
---|
2051 | </glossentry>
|
---|
2052 | <glossentry>
|
---|
2053 | <glossterm><computeroutput>GUI/PreventReconfiguration</computeroutput></glossterm>
|
---|
2054 | <glossdef>
|
---|
2055 | <para>Don't allow the user to open the settings dialog for a certain VM.</para>
|
---|
2056 | </glossdef>
|
---|
2057 | </glossentry>
|
---|
2058 | <glossentry>
|
---|
2059 | <glossterm><computeroutput>GUI/PreventSnapshotOperations</computeroutput></glossterm>
|
---|
2060 | <glossdef>
|
---|
2061 | <para>Prevent snapshot operations for a VM from the GUI, either at runtime or when
|
---|
2062 | the VM is powered off.</para>
|
---|
2063 | </glossdef>
|
---|
2064 | </glossentry>
|
---|
2065 | <glossentry>
|
---|
2066 | <glossterm><computeroutput>GUI/HideFromManager</computeroutput></glossterm>
|
---|
2067 | <glossdef>
|
---|
2068 | <para>Hide a certain VM in the VM selector window.</para>
|
---|
2069 | </glossdef>
|
---|
2070 | </glossentry>
|
---|
2071 | <glossentry>
|
---|
2072 | <glossterm><computeroutput>GUI/PreventApplicationUpdate</computeroutput></glossterm>
|
---|
2073 | <glossdef>
|
---|
2074 | <para>Disable the automatic update check and hide the corresponding menu item.</para>
|
---|
2075 | </glossdef>
|
---|
2076 | </glossentry>
|
---|
2077 | </glosslist>
|
---|
2078 | <para>Please note that these settings wouldn't prevent the user from
|
---|
2079 | reconfiguring the VM by <computeroutput>VBoxManage modifyvm</computeroutput>.</para>
|
---|
2080 |
|
---|
2081 | </sect2>
|
---|
2082 |
|
---|
2083 | <sect2>
|
---|
2084 | <title>Configure VM selector menu entries</title>
|
---|
2085 | <para>You can disable (i.e. black-list) certain entries in the global settings
|
---|
2086 | page of the VM selector:</para>
|
---|
2087 | <screen>VBoxManage setextradata global GUI/RestrictedGlobalSettingsPages OPTION[,OPTION...]</screen>
|
---|
2088 | <para>where <computeroutput>OPTION</computeroutput> is one of the
|
---|
2089 | following keywords:</para><glosslist>
|
---|
2090 | <glossentry>
|
---|
2091 | <glossterm><computeroutput>General</computeroutput></glossterm>
|
---|
2092 | <glossdef>
|
---|
2093 | <para>Don't show the <emphasis>General</emphasis> settings pane.</para>
|
---|
2094 | </glossdef>
|
---|
2095 | </glossentry>
|
---|
2096 |
|
---|
2097 | <glossentry>
|
---|
2098 | <glossterm><computeroutput>Input</computeroutput></glossterm>
|
---|
2099 | <glossdef>
|
---|
2100 | <para>Don't show the <emphasis>Input</emphasis> settings pane.</para>
|
---|
2101 | </glossdef>
|
---|
2102 | </glossentry>
|
---|
2103 |
|
---|
2104 | <glossentry>
|
---|
2105 | <glossterm><computeroutput>Update</computeroutput></glossterm>
|
---|
2106 | <glossdef>
|
---|
2107 | <para>Don't show the <emphasis>Update</emphasis> settings pane.</para>
|
---|
2108 | </glossdef>
|
---|
2109 | </glossentry>
|
---|
2110 |
|
---|
2111 | <glossentry>
|
---|
2112 | <glossterm><computeroutput>Language</computeroutput></glossterm>
|
---|
2113 | <glossdef>
|
---|
2114 | <para>Don't show the <emphasis>Language</emphasis> settings pane.</para>
|
---|
2115 | </glossdef>
|
---|
2116 | </glossentry>
|
---|
2117 |
|
---|
2118 | <glossentry>
|
---|
2119 | <glossterm><computeroutput>Display</computeroutput></glossterm>
|
---|
2120 | <glossdef>
|
---|
2121 | <para>Don't show the <emphasis>Display</emphasis> settings pane.</para>
|
---|
2122 | </glossdef>
|
---|
2123 | </glossentry>
|
---|
2124 |
|
---|
2125 | <glossentry>
|
---|
2126 | <glossterm><computeroutput>Network</computeroutput></glossterm>
|
---|
2127 | <glossdef>
|
---|
2128 | <para>Don't show the <emphasis>Network</emphasis> settings pane.</para>
|
---|
2129 | </glossdef>
|
---|
2130 | </glossentry>
|
---|
2131 |
|
---|
2132 | <glossentry>
|
---|
2133 | <glossterm><computeroutput>Extensions</computeroutput></glossterm>
|
---|
2134 | <glossdef>
|
---|
2135 | <para>Don't show the <emphasis>Extensions</emphasis> settings pane.</para>
|
---|
2136 | </glossdef>
|
---|
2137 | </glossentry>
|
---|
2138 |
|
---|
2139 | <glossentry>
|
---|
2140 | <glossterm><computeroutput>Proxy</computeroutput></glossterm>
|
---|
2141 | <glossdef>
|
---|
2142 | <para>Don't show the <emphasis>Proxy</emphasis> settings pane.</para>
|
---|
2143 | </glossdef>
|
---|
2144 | </glossentry>
|
---|
2145 |
|
---|
2146 | </glosslist>
|
---|
2147 |
|
---|
2148 | <para>This is a global setting. Any combination of the above is allowed.
|
---|
2149 | To restore the default behavior, use</para>
|
---|
2150 | <screen>VBoxManage setextradata global GUI/RestrictedGlobalSettingsPages</screen>
|
---|
2151 |
|
---|
2152 | </sect2>
|
---|
2153 |
|
---|
2154 | <sect2>
|
---|
2155 | <title>Configure VM window menu entries</title>
|
---|
2156 | <para>You can disable (i.e. black-list) certain menu actions in the VM window:</para>
|
---|
2157 | <screen>VBoxManage setextradata "VM name" GUI/RestrictedRuntimeMenus OPTION[,OPTION...]</screen>
|
---|
2158 |
|
---|
2159 | <para>where <computeroutput>OPTION</computeroutput> is one of the
|
---|
2160 | following keywords:</para><glosslist>
|
---|
2161 | <glossentry>
|
---|
2162 | <glossterm><computeroutput>All</computeroutput></glossterm>
|
---|
2163 | <glossdef>
|
---|
2164 | <para>Don't show any menu in the VM window.</para>
|
---|
2165 | </glossdef>
|
---|
2166 | </glossentry>
|
---|
2167 |
|
---|
2168 | <glossentry>
|
---|
2169 | <glossterm><computeroutput>Machine</computeroutput></glossterm>
|
---|
2170 | <glossdef>
|
---|
2171 | <para>Don't show the <emphasis>Machine</emphasis> menu in the VM window.</para>
|
---|
2172 | </glossdef>
|
---|
2173 | </glossentry>
|
---|
2174 |
|
---|
2175 | <glossentry>
|
---|
2176 | <glossterm><computeroutput>View</computeroutput></glossterm>
|
---|
2177 | <glossdef>
|
---|
2178 | <para>Don't show the <emphasis>View</emphasis> menu in the VM window.</para>
|
---|
2179 | </glossdef>
|
---|
2180 | </glossentry>
|
---|
2181 |
|
---|
2182 | <glossentry>
|
---|
2183 | <glossterm><computeroutput>Devices</computeroutput></glossterm>
|
---|
2184 | <glossdef>
|
---|
2185 | <para>Don't show the <emphasis>Devices</emphasis> menu in the VM window.</para>
|
---|
2186 | </glossdef>
|
---|
2187 | </glossentry>
|
---|
2188 |
|
---|
2189 | <glossentry>
|
---|
2190 | <glossterm><computeroutput>Help</computeroutput></glossterm>
|
---|
2191 | <glossdef>
|
---|
2192 | <para>Don't show the <emphasis>Help</emphasis> menu in the VM window.</para>
|
---|
2193 | </glossdef>
|
---|
2194 | </glossentry>
|
---|
2195 |
|
---|
2196 | <glossentry>
|
---|
2197 | <glossterm><computeroutput>Debug</computeroutput></glossterm>
|
---|
2198 | <glossdef>
|
---|
2199 | <para>Don't show the <emphasis>Debug</emphasis> menu in the VM window. The debug
|
---|
2200 | menu is only visible if the GUI was started with special command line parameters
|
---|
2201 | or environment variable settings.</para>
|
---|
2202 | </glossdef>
|
---|
2203 | </glossentry>
|
---|
2204 |
|
---|
2205 | </glosslist>
|
---|
2206 |
|
---|
2207 | <para>This is a per-VM setting. Any combination of the above is allowed. To restore
|
---|
2208 | the default behavior, use</para>
|
---|
2209 | <screen>VBoxManage setextradata "VM name" GUI/RestrictedRuntimeMenus</screen>
|
---|
2210 |
|
---|
2211 | <para>You can also disable (i.e. blacklist) certain menu actions of certain
|
---|
2212 | menus. Use the following command to disable certain actions of the
|
---|
2213 | <emphasis>Application</emphasis> menu (only available on Mac OS X hosts):</para>
|
---|
2214 | <screen>VBoxManage setextradata "VM name" GUI/RestrictedRuntimeApplicationMenuActions OPTION[,OPTION...]</screen>
|
---|
2215 |
|
---|
2216 | <para>where <computeroutput>OPTION</computeroutput> is one of the
|
---|
2217 | following keywords:</para><glosslist>
|
---|
2218 | <glossentry>
|
---|
2219 | <glossterm><computeroutput>All</computeroutput></glossterm>
|
---|
2220 | <glossdef>
|
---|
2221 | <para>Don't show any menu item in this menu.</para>
|
---|
2222 | </glossdef>
|
---|
2223 | </glossentry>
|
---|
2224 | <glossentry>
|
---|
2225 | <glossterm><computeroutput>About</computeroutput></glossterm>
|
---|
2226 | <glossdef>
|
---|
2227 | <para>Don't show the <emphasis>About</emphasis> menu item in this menu.</para>
|
---|
2228 | </glossdef>
|
---|
2229 | </glossentry>
|
---|
2230 | </glosslist>
|
---|
2231 |
|
---|
2232 | <para>This is a per-VM setting. Any combination of the above is allowed. To restore
|
---|
2233 | the default behavior, use</para>
|
---|
2234 | <screen>VBoxManage setextradata "VM name" GUI/RestrictedRuntimeMenus</screen>
|
---|
2235 |
|
---|
2236 | <para>Use the following command to disable certain actions of the <emphasis>Machine</emphasis>
|
---|
2237 | menu:</para>
|
---|
2238 |
|
---|
2239 | <screen>VBoxManage setextradata "VM name" GUI/RestrictedRuntimeApplicationMenuActions OPTION[,OPTION...]</screen>
|
---|
2240 |
|
---|
2241 | <para>where <computeroutput>OPTION</computeroutput> is one of the
|
---|
2242 | following keywords:</para><glosslist>
|
---|
2243 | <glossentry>
|
---|
2244 | <glossterm><computeroutput>All</computeroutput></glossterm>
|
---|
2245 | <glossdef>
|
---|
2246 | <para>Don't show any menu item in this menu.</para>
|
---|
2247 | </glossdef>
|
---|
2248 | </glossentry>
|
---|
2249 | <glossentry>
|
---|
2250 | <glossterm><computeroutput>SettingsDialog</computeroutput></glossterm>
|
---|
2251 | <glossdef>
|
---|
2252 | <para>Don't show the <emphasis>Settings</emphasis> menu item in this menu.</para>
|
---|
2253 | </glossdef>
|
---|
2254 | </glossentry>
|
---|
2255 | <glossentry>
|
---|
2256 | <glossterm><computeroutput>TakeSnapshot</computeroutput></glossterm>
|
---|
2257 | <glossdef>
|
---|
2258 | <para>Don't show the <emphasis>Take Snapshot</emphasis> menu item in this menu.</para>
|
---|
2259 | </glossdef>
|
---|
2260 | </glossentry>
|
---|
2261 | <glossentry>
|
---|
2262 | <glossterm><computeroutput>TakeScreenshot</computeroutput></glossterm>
|
---|
2263 | <glossdef>
|
---|
2264 | <para>Don't show the <emphasis>Take Screenshot</emphasis> menu item in this menu.</para>
|
---|
2265 | </glossdef>
|
---|
2266 | </glossentry>
|
---|
2267 | <glossentry>
|
---|
2268 | <glossterm><computeroutput>InformationDialog</computeroutput></glossterm>
|
---|
2269 | <glossdef>
|
---|
2270 | <para>Don't show the <emphasis>Session Information</emphasis> menu item in this menu.</para>
|
---|
2271 | </glossdef>
|
---|
2272 | </glossentry>
|
---|
2273 | <glossentry>
|
---|
2274 | <glossterm><computeroutput>MouseIntegration</computeroutput></glossterm>
|
---|
2275 | <glossdef>
|
---|
2276 | <para>Don't show the <emphasis>Disable Mouse Integration</emphasis> menu item in this menu.</para>
|
---|
2277 | </glossdef>
|
---|
2278 | </glossentry>
|
---|
2279 | <glossentry>
|
---|
2280 | <glossterm><computeroutput>TypeCAD</computeroutput></glossterm>
|
---|
2281 | <glossdef>
|
---|
2282 | <para>Don't show the <emphasis>Insert Ctrl+Alt+Del</emphasis> menu item in this menu.</para>
|
---|
2283 | </glossdef>
|
---|
2284 | </glossentry>
|
---|
2285 | <glossentry>
|
---|
2286 | <glossterm><computeroutput>TypeCABS</computeroutput></glossterm>
|
---|
2287 | <glossdef>
|
---|
2288 | <para>Don't show the <emphasis>Insert Ctrl+Alt+Backspace</emphasis> menu item in
|
---|
2289 | this menu (available on X11 hosts only).</para>
|
---|
2290 | </glossdef>
|
---|
2291 | </glossentry>
|
---|
2292 | <glossentry>
|
---|
2293 | <glossterm><computeroutput>Pause</computeroutput></glossterm>
|
---|
2294 | <glossdef>
|
---|
2295 | <para>Don't show the <emphasis>Pause</emphasis> menu item in this menu.</para>
|
---|
2296 | </glossdef>
|
---|
2297 | </glossentry>
|
---|
2298 | <glossentry>
|
---|
2299 | <glossterm><computeroutput>Reset</computeroutput></glossterm>
|
---|
2300 | <glossdef>
|
---|
2301 | <para>Don't show the <emphasis>Reset</emphasis> menu item in this menu.</para>
|
---|
2302 | </glossdef>
|
---|
2303 | </glossentry>
|
---|
2304 | <glossentry>
|
---|
2305 | <glossterm><computeroutput>SaveState</computeroutput></glossterm>
|
---|
2306 | <glossdef>
|
---|
2307 | <para>Don't show the <emphasis>Save the machine state</emphasis> menu item in this menu.</para>
|
---|
2308 | </glossdef>
|
---|
2309 | </glossentry>
|
---|
2310 | <glossentry>
|
---|
2311 | <glossterm><computeroutput>Shutdown</computeroutput></glossterm>
|
---|
2312 | <glossdef>
|
---|
2313 | <para>Don't show the <emphasis>ACPI Shutdown</emphasis> menu item in this menu.</para>
|
---|
2314 | </glossdef>
|
---|
2315 | </glossentry>
|
---|
2316 | <glossentry>
|
---|
2317 | <glossterm><computeroutput>PowerOff</computeroutput></glossterm>
|
---|
2318 | <glossdef>
|
---|
2319 | <para>Don't show the <emphasis>Power Off the machine</emphasis> menu item in this menu.</para>
|
---|
2320 | </glossdef>
|
---|
2321 | </glossentry>
|
---|
2322 | </glosslist>
|
---|
2323 |
|
---|
2324 | <para>This is a per-VM setting. Any combination of the above is allowed. To restore
|
---|
2325 | the default behavior, use</para>
|
---|
2326 | <screen>VBoxManage setextradata "VM name" GUI/RestrictedRuntimeApplicationMenuActions</screen>
|
---|
2327 |
|
---|
2328 | <para>Use the following command to disable certain actions of the <emphasis>View</emphasis>
|
---|
2329 | menu:</para>
|
---|
2330 |
|
---|
2331 | <screen>VBoxManage setextradata "VM name" GUI/RestrictedRuntimeViewMenuActions OPTION[,OPTION...]</screen>
|
---|
2332 |
|
---|
2333 | <para>where <computeroutput>OPTION</computeroutput> is one of the
|
---|
2334 | following keywords:</para><glosslist>
|
---|
2335 | <glossentry>
|
---|
2336 | <glossterm><computeroutput>All</computeroutput></glossterm>
|
---|
2337 | <glossdef>
|
---|
2338 | <para>Don't show any menu item in this menu.</para>
|
---|
2339 | </glossdef>
|
---|
2340 | </glossentry>
|
---|
2341 | <glossentry>
|
---|
2342 | <glossterm><computeroutput>Fullscreen</computeroutput></glossterm>
|
---|
2343 | <glossdef>
|
---|
2344 | <para>Don't show the <emphasis>Switch to Fullscreen</emphasis> menu item in this menu.</para>
|
---|
2345 | </glossdef>
|
---|
2346 | </glossentry>
|
---|
2347 | <glossentry>
|
---|
2348 | <glossterm><computeroutput>Seamless</computeroutput></glossterm>
|
---|
2349 | <glossdef>
|
---|
2350 | <para>Don't show the <emphasis>Switch to Seamless Mode</emphasis> menu item in this menu.</para>
|
---|
2351 | </glossdef>
|
---|
2352 | </glossentry>
|
---|
2353 | <glossentry>
|
---|
2354 | <glossterm><computeroutput>Scale</computeroutput></glossterm>
|
---|
2355 | <glossdef>
|
---|
2356 | <para>Don't show the <emphasis>Switch to Scaled Mode</emphasis> menu item in this menu.</para>
|
---|
2357 | </glossdef>
|
---|
2358 | </glossentry>
|
---|
2359 | <glossentry>
|
---|
2360 | <glossterm><computeroutput>GuestAutoresize</computeroutput></glossterm>
|
---|
2361 | <glossdef>
|
---|
2362 | <para>Don't show the <emphasis>Auto-resize Guest Display</emphasis> menu item in this menu.</para>
|
---|
2363 | </glossdef>
|
---|
2364 | </glossentry>
|
---|
2365 | <glossentry>
|
---|
2366 | <glossterm><computeroutput>AdjustWindow</computeroutput></glossterm>
|
---|
2367 | <glossdef>
|
---|
2368 | <para>Don't show the <emphasis>Adjust Window Size</emphasis> menu item in this menu.</para>
|
---|
2369 | </glossdef>
|
---|
2370 | </glossentry>
|
---|
2371 | <glossentry>
|
---|
2372 | <glossterm><computeroutput>Multiscreen</computeroutput></glossterm>
|
---|
2373 | <glossdef>
|
---|
2374 | <para>Don't show the <emphasis>Multiscreen</emphasis> menu item in this menu (only visible in full screen / seamless mode).</para>
|
---|
2375 | </glossdef>
|
---|
2376 | </glossentry>
|
---|
2377 | </glosslist>
|
---|
2378 |
|
---|
2379 | <para>This is a per-VM setting. Any combination of the above is allowed. To restore
|
---|
2380 | the default behavior, use</para>
|
---|
2381 | <screen>VBoxManage setextradata "VM name" GUI/RestrictedRuntimeViewMenuActions</screen>
|
---|
2382 |
|
---|
2383 | <para>Use the following command to disable certain actions of the <emphasis>View</emphasis>
|
---|
2384 | menu:</para>
|
---|
2385 |
|
---|
2386 | <screen>VBoxManage setextradata "VM name" GUI/RestrictedRuntimeDevicesMenuActions OPTION[,OPTION...]</screen>
|
---|
2387 |
|
---|
2388 | <para>where <computeroutput>OPTION</computeroutput> is one of the
|
---|
2389 | following keywords to disable actions in the <emphasis>Devices</emphasis> menu:</para><glosslist>
|
---|
2390 | <glossentry>
|
---|
2391 | <glossterm><computeroutput>All</computeroutput></glossterm>
|
---|
2392 | <glossdef>
|
---|
2393 | <para>Don't show any menu item in this menu.</para>
|
---|
2394 | </glossdef>
|
---|
2395 | </glossentry>
|
---|
2396 | <glossentry>
|
---|
2397 | <glossterm><computeroutput>OpticalDevices</computeroutput></glossterm>
|
---|
2398 | <glossdef>
|
---|
2399 | <para>Don't show the <emphasis>CD/DVD Devices</emphasis> menu item in this menu.</para>
|
---|
2400 | </glossdef>
|
---|
2401 | </glossentry>
|
---|
2402 | <glossentry>
|
---|
2403 | <glossterm><computeroutput>FloppyDevices</computeroutput></glossterm>
|
---|
2404 | <glossdef>
|
---|
2405 | <para>Don't show the <emphasis>FLoppy Devices</emphasis> menu item in this menu.</para>
|
---|
2406 | </glossdef>
|
---|
2407 | </glossentry>
|
---|
2408 | <glossentry>
|
---|
2409 | <glossterm><computeroutput>USBDevices</computeroutput></glossterm>
|
---|
2410 | <glossdef>
|
---|
2411 | <para>Don't show the <emphasis>USB Devices</emphasis> menu item in this menu.</para>
|
---|
2412 | </glossdef>
|
---|
2413 | </glossentry>
|
---|
2414 | <glossentry>
|
---|
2415 | <glossterm><computeroutput>SharedClipboard</computeroutput></glossterm>
|
---|
2416 | <glossdef>
|
---|
2417 | <para>Don't show the <emphasis>Shared Clipboard</emphasis> menu item in this menu.</para>
|
---|
2418 | </glossdef>
|
---|
2419 | </glossentry>
|
---|
2420 | <glossentry>
|
---|
2421 | <glossterm><computeroutput>DragAndDrop</computeroutput></glossterm>
|
---|
2422 | <glossdef>
|
---|
2423 | <para>Don't show the <emphasis>Drag'n'Drop</emphasis> menu item in this menu.</para>
|
---|
2424 | </glossdef>
|
---|
2425 | </glossentry>
|
---|
2426 | <glossentry>
|
---|
2427 | <glossterm><computeroutput>NetworkSettings</computeroutput></glossterm>
|
---|
2428 | <glossdef>
|
---|
2429 | <para>Don't show the <emphasis>Network Settings...</emphasis> menu item in this menu.</para>
|
---|
2430 | </glossdef>
|
---|
2431 | </glossentry>
|
---|
2432 | <glossentry>
|
---|
2433 | <glossterm><computeroutput>SharedFoldersSettings</computeroutput></glossterm>
|
---|
2434 | <glossdef>
|
---|
2435 | <para>Don't show the <emphasis>Shared Folders Settings...</emphasis> menu item in this menu.</para>
|
---|
2436 | </glossdef>
|
---|
2437 | </glossentry>
|
---|
2438 | <glossentry>
|
---|
2439 | <glossterm><computeroutput>VRDEServer</computeroutput></glossterm>
|
---|
2440 | <glossdef>
|
---|
2441 | <para>Don't show the <emphasis>Remove Display</emphasis> menu item in this menu.</para>
|
---|
2442 | </glossdef>
|
---|
2443 | </glossentry>
|
---|
2444 | <glossentry>
|
---|
2445 | <glossterm><computeroutput>InstallGuestTools</computeroutput></glossterm>
|
---|
2446 | <glossdef>
|
---|
2447 | <para>Don't show the <emphasis>Insert Guest Additions CD imnage...</emphasis> menu item in this menu.</para>
|
---|
2448 | </glossdef>
|
---|
2449 | </glossentry>
|
---|
2450 | </glosslist>
|
---|
2451 |
|
---|
2452 | <para>This is a per-VM setting. Any combination of the above is allowed. To restore
|
---|
2453 | the default behavior, use</para>
|
---|
2454 | <screen>VBoxManage setextradata "VM name" GUI/RestrictedRuntimeDevicesMenuActions</screen>
|
---|
2455 |
|
---|
2456 | <para>Use the following command to disable certain actions of the <emphasis>View</emphasis>
|
---|
2457 | menu:</para>
|
---|
2458 |
|
---|
2459 | <screen>VBoxManage setextradata "VM name" GUI/RestrictedRuntimeDebuggerMenuActions OPTION[,OPTION...]</screen>
|
---|
2460 |
|
---|
2461 | <para>where <computeroutput>OPTION</computeroutput> is one of the
|
---|
2462 | following keywords to disable actions in the <emphasis>Debug</emphasis> menu (normally completely disabled):</para><glosslist>
|
---|
2463 | <glossentry>
|
---|
2464 | <glossterm><computeroutput>All</computeroutput></glossterm>
|
---|
2465 | <glossdef>
|
---|
2466 | <para>Don't show any menu item in this menu.</para>
|
---|
2467 | </glossdef>
|
---|
2468 | </glossentry>
|
---|
2469 | <glossentry>
|
---|
2470 | <glossterm><computeroutput>Statistics</computeroutput></glossterm>
|
---|
2471 | <glossdef>
|
---|
2472 | <para>Don't show the <emphasis>Statistics...</emphasis> menu item in this menu.</para>
|
---|
2473 | </glossdef>
|
---|
2474 | </glossentry>
|
---|
2475 | <glossentry>
|
---|
2476 | <glossterm><computeroutput>CommandLine</computeroutput></glossterm>
|
---|
2477 | <glossdef>
|
---|
2478 | <para>Don't show the <emphasis>Command Line...</emphasis> menu item in this menu.</para>
|
---|
2479 | </glossdef>
|
---|
2480 | </glossentry>
|
---|
2481 | <glossentry>
|
---|
2482 | <glossterm><computeroutput>Logging</computeroutput></glossterm>
|
---|
2483 | <glossdef>
|
---|
2484 | <para>Don't show the <emphasis>Logging...</emphasis> menu item in this menu.</para>
|
---|
2485 | </glossdef>
|
---|
2486 | </glossentry>
|
---|
2487 | <glossentry>
|
---|
2488 | <glossterm><computeroutput>LogDialog</computeroutput></glossterm>
|
---|
2489 | <glossdef>
|
---|
2490 | <para>Don't show the <emphasis>Show Log...</emphasis> menu item in this menu.</para>
|
---|
2491 | </glossdef>
|
---|
2492 | </glossentry>
|
---|
2493 | </glosslist>
|
---|
2494 |
|
---|
2495 | <para>This is a per-VM setting. Any combination of the above is allowed. To restore
|
---|
2496 | the default behavior, use</para>
|
---|
2497 | <screen>VBoxManage setextradata "VM name" GUI/RestrictedRuntimeDebuggerMenuActions</screen>
|
---|
2498 |
|
---|
2499 | <para>Use the following command to disable certain actions of the <emphasis>View</emphasis>
|
---|
2500 | menu:</para>
|
---|
2501 |
|
---|
2502 | <screen>VBoxManage setextradata "VM name" GUI/RestrictedRuntimeHelpMenuActions OPTION[,OPTION...]</screen>
|
---|
2503 |
|
---|
2504 | <para>where <computeroutput>OPTION</computeroutput> is one of the
|
---|
2505 | following keywords to disable actions in the <emphasis>Help</emphasis> menu (normally completely disabled):</para><glosslist>
|
---|
2506 | <glossentry>
|
---|
2507 | <glossterm><computeroutput>All</computeroutput></glossterm>
|
---|
2508 | <glossdef>
|
---|
2509 | <para>Don't show any menu item in this menu.</para>
|
---|
2510 | </glossdef>
|
---|
2511 | </glossentry>
|
---|
2512 | <glossentry>
|
---|
2513 | <glossterm><computeroutput>Contents</computeroutput></glossterm>
|
---|
2514 | <glossdef>
|
---|
2515 | <para>Don't show the <emphasis>Contents...</emphasis> menu item in this menu.</para>
|
---|
2516 | </glossdef>
|
---|
2517 | </glossentry>
|
---|
2518 | <glossentry>
|
---|
2519 | <glossterm><computeroutput>WebSite</computeroutput></glossterm>
|
---|
2520 | <glossdef>
|
---|
2521 | <para>Don't show the <emphasis>VirtualBox Web Site...</emphasis> menu item in this menu.</para>
|
---|
2522 | </glossdef>
|
---|
2523 | </glossentry>
|
---|
2524 | <glossentry>
|
---|
2525 | <glossterm><computeroutput>ResetWarnings</computeroutput></glossterm>
|
---|
2526 | <glossdef>
|
---|
2527 | <para>Don't show the <emphasis>Reset All Warnings</emphasis> menu item in this menu.</para>
|
---|
2528 | </glossdef>
|
---|
2529 | </glossentry>
|
---|
2530 | <glossentry>
|
---|
2531 | <glossterm><computeroutput>NetworkAccessManager</computeroutput></glossterm>
|
---|
2532 | <glossdef>
|
---|
2533 | <para>Don't show the <emphasis>Network Operations Manager</emphasis> menu item in this menu.</para>
|
---|
2534 | </glossdef>
|
---|
2535 | </glossentry>
|
---|
2536 | <glossentry>
|
---|
2537 | <glossterm><computeroutput>About</computeroutput></glossterm>
|
---|
2538 | <glossdef>
|
---|
2539 | <para>Don't show the <emphasis>About</emphasis> menu item in this menu (only on non Mac OS X hosts).</para>
|
---|
2540 | </glossdef>
|
---|
2541 | </glossentry>
|
---|
2542 | <glossentry>
|
---|
2543 | <glossterm><computeroutput>Contents</computeroutput></glossterm>
|
---|
2544 | <glossdef>
|
---|
2545 | <para>Don't show the <emphasis>Contents...</emphasis> menu item in this menu.</para>
|
---|
2546 | </glossdef>
|
---|
2547 | </glossentry>
|
---|
2548 | <glossentry>
|
---|
2549 | <glossterm><computeroutput>Contents</computeroutput></glossterm>
|
---|
2550 | <glossdef>
|
---|
2551 | <para>Don't show the <emphasis>Contents...</emphasis> menu item in this menu.</para>
|
---|
2552 | </glossdef>
|
---|
2553 | </glossentry>
|
---|
2554 | </glosslist>
|
---|
2555 |
|
---|
2556 | <para>This is a per-VM setting. Any combination of the above is allowed. To restore
|
---|
2557 | the default behavior, use</para>
|
---|
2558 | <screen>VBoxManage setextradata "VM name" GUI/RestrictedRuntimeHelpMenuActions</screen>
|
---|
2559 |
|
---|
2560 | </sect2>
|
---|
2561 |
|
---|
2562 | <sect2>
|
---|
2563 |
|
---|
2564 | <title>Configure VM window status bar entries</title>
|
---|
2565 |
|
---|
2566 | <para>You can disable (i.e. black-list) certain status bar items:</para>
|
---|
2567 | <screen>VBoxManage setextradata "VM name" GUI/RestrictedStatusBarIndicators OPTION[,OPTION...]</screen>
|
---|
2568 |
|
---|
2569 | <para>where <computeroutput>OPTION</computeroutput> is one of the
|
---|
2570 | following keywords:</para><glosslist>
|
---|
2571 | <glossentry>
|
---|
2572 | <glossterm><computeroutput>HardDisks</computeroutput></glossterm>
|
---|
2573 | <glossdef>
|
---|
2574 | <para>Don't show the hard disk icon in the VM window status bar. By default
|
---|
2575 | the hard disk icon is only shown if the VM configuration contains one or
|
---|
2576 | more hard disks.</para>
|
---|
2577 | </glossdef>
|
---|
2578 | </glossentry>
|
---|
2579 |
|
---|
2580 | <glossentry>
|
---|
2581 | <glossterm><computeroutput>OpticalDisks</computeroutput></glossterm>
|
---|
2582 | <glossdef>
|
---|
2583 | <para>Don't show the CD icon in the VM window status bar. By default the
|
---|
2584 | CD icon is only shown if the VM configuration contains one or more CD
|
---|
2585 | drives.</para>
|
---|
2586 | </glossdef>
|
---|
2587 | </glossentry>
|
---|
2588 |
|
---|
2589 | <glossentry>
|
---|
2590 | <glossterm><computeroutput>FloppyDisks</computeroutput></glossterm>
|
---|
2591 | <glossdef>
|
---|
2592 | <para>Don't show the floppy icon in the VM window status bar. By default the
|
---|
2593 | floppy icon is only shown if the VM configuration contains one more
|
---|
2594 | more floppy drives.</para>
|
---|
2595 | </glossdef>
|
---|
2596 | </glossentry>
|
---|
2597 |
|
---|
2598 | <glossentry>
|
---|
2599 | <glossterm><computeroutput>Network</computeroutput></glossterm>
|
---|
2600 | <glossdef>
|
---|
2601 | <para>Don't show the network icon in the VM window status bar. By default
|
---|
2602 | the network icon is only shown if the VM configuration contains one or more
|
---|
2603 | active network adapters.</para>
|
---|
2604 | </glossdef>
|
---|
2605 | </glossentry>
|
---|
2606 |
|
---|
2607 | <glossentry>
|
---|
2608 | <glossterm><computeroutput>USB</computeroutput></glossterm>
|
---|
2609 | <glossdef>
|
---|
2610 | <para>Don't show the USB icon in the status bar. </para>
|
---|
2611 | </glossdef>
|
---|
2612 | </glossentry>
|
---|
2613 |
|
---|
2614 | <glossentry>
|
---|
2615 | <glossterm><computeroutput>SharedFolders</computeroutput></glossterm>
|
---|
2616 | <glossdef>
|
---|
2617 | <para>Don't show the shared folders icon in the status bar.</para>
|
---|
2618 | </glossdef>
|
---|
2619 | </glossentry>
|
---|
2620 |
|
---|
2621 | <glossentry>
|
---|
2622 | <glossterm><computeroutput>VideoCapture</computeroutput></glossterm>
|
---|
2623 | <glossdef>
|
---|
2624 | <para>Don't show the video capture icon in the status bar.</para>
|
---|
2625 | </glossdef>
|
---|
2626 | </glossentry>
|
---|
2627 |
|
---|
2628 | <glossentry>
|
---|
2629 | <glossterm><computeroutput>Features</computeroutput></glossterm>
|
---|
2630 | <glossdef>
|
---|
2631 | <para>Don't show the CPU features icon in the status bar.</para>
|
---|
2632 | </glossdef>
|
---|
2633 | </glossentry>
|
---|
2634 |
|
---|
2635 | <glossentry>
|
---|
2636 | <glossterm><computeroutput>Mouse</computeroutput></glossterm>
|
---|
2637 | <glossdef>
|
---|
2638 | <para>Don't show the mouse icon in the status bar.</para>
|
---|
2639 | </glossdef>
|
---|
2640 | </glossentry>
|
---|
2641 |
|
---|
2642 | <glossentry>
|
---|
2643 | <glossterm><computeroutput>Keyboard</computeroutput></glossterm>
|
---|
2644 | <glossdef>
|
---|
2645 | <para>Don't show the keyboard icon in the status bar.</para>
|
---|
2646 | </glossdef>
|
---|
2647 | </glossentry>
|
---|
2648 |
|
---|
2649 | </glosslist>
|
---|
2650 |
|
---|
2651 | <para>This is a per-VM setting. Any combination of the above is allowed. If all options
|
---|
2652 | are specified, no icons are displayed in the status bar of the VM window. To restore
|
---|
2653 | the default behavior, use</para>
|
---|
2654 |
|
---|
2655 | <screen>VBoxManage setextradata "VM name" GUI/RestrictedStatusBarIndicators</screen>
|
---|
2656 |
|
---|
2657 | </sect2>
|
---|
2658 |
|
---|
2659 | <sect2>
|
---|
2660 | <title>Configure VM window visual modes</title>
|
---|
2661 |
|
---|
2662 | <para>You can disable (i.e. black-list) certain VM visual modes:</para>
|
---|
2663 | <screen>VBoxManage setextradata "VM name" GUI/RestrictedVisualStates OPTION[,OPTION...]</screen>
|
---|
2664 |
|
---|
2665 | <para>where <computeroutput>OPTION</computeroutput> is one of the
|
---|
2666 | following keywords:</para><glosslist>
|
---|
2667 | <glossentry>
|
---|
2668 | <glossterm><computeroutput>Fullscreen</computeroutput></glossterm>
|
---|
2669 | <glossdef>
|
---|
2670 | <para>Don't allow to switch the VM into full screen mode.</para>
|
---|
2671 | </glossdef>
|
---|
2672 | </glossentry>
|
---|
2673 |
|
---|
2674 | <glossentry>
|
---|
2675 | <glossterm><computeroutput>Seamless</computeroutput></glossterm>
|
---|
2676 | <glossdef>
|
---|
2677 | <para>Don't allow to switch the VM into seamless mode.</para>
|
---|
2678 | </glossdef>
|
---|
2679 | </glossentry>
|
---|
2680 |
|
---|
2681 | <glossentry>
|
---|
2682 | <glossterm><computeroutput>Scale</computeroutput></glossterm>
|
---|
2683 | <glossdef>
|
---|
2684 | <para>Don't allow to switch the VM into scale mode.</para>
|
---|
2685 | </glossdef>
|
---|
2686 | </glossentry>
|
---|
2687 |
|
---|
2688 | </glosslist>
|
---|
2689 |
|
---|
2690 | <para>This is a per-VM setting. Any combination of the above is allowed. To restore
|
---|
2691 | the default behavior, use</para>
|
---|
2692 |
|
---|
2693 | <screen>VBoxManage setextradata "VM name" GUI/RestrictedVisualStates</screen>
|
---|
2694 |
|
---|
2695 | </sect2>
|
---|
2696 |
|
---|
2697 | <sect2>
|
---|
2698 | <title>Host Key customization</title>
|
---|
2699 |
|
---|
2700 | <para>To disable all host key combinations, open the preferences and
|
---|
2701 | change the host key to <emphasis>None</emphasis>. This might be useful
|
---|
2702 | when using VirtualBox in a kiosk mode.</para>
|
---|
2703 |
|
---|
2704 | <para>To redefine or disable certain host key actions, use the following command:</para>
|
---|
2705 |
|
---|
2706 | <screen>VBoxManage setextradata global GUI/Input/MachineShortcuts "FullscreenMode=F,...."</screen>
|
---|
2707 |
|
---|
2708 | <para>The following list shows the possible host key actions together with their default
|
---|
2709 | host key shortcut. Setting an action to <emphasis>None</emphasis> will disable
|
---|
2710 | that host key action.</para>
|
---|
2711 | <table>
|
---|
2712 | <title>Host Key customization</title>
|
---|
2713 | <tgroup cols="3">
|
---|
2714 | <thead>
|
---|
2715 | <row>
|
---|
2716 | <entry><emphasis role="bold">Action</emphasis></entry>
|
---|
2717 | <entry><emphasis role="bold">Default Key</emphasis></entry>
|
---|
2718 | <entry><emphasis role="bold">Action</emphasis></entry>
|
---|
2719 | </row>
|
---|
2720 | </thead>
|
---|
2721 | <tbody>
|
---|
2722 | <row>
|
---|
2723 | <entry><computeroutput>TakeSnapshot</computeroutput></entry>
|
---|
2724 | <entry>T</entry>
|
---|
2725 | <entry>take a snapshot</entry>
|
---|
2726 | </row>
|
---|
2727 | <row>
|
---|
2728 | <entry><computeroutput>TakeScreenshot</computeroutput></entry>
|
---|
2729 | <entry>E</entry>
|
---|
2730 | <entry>take a screenshot</entry>
|
---|
2731 | </row>
|
---|
2732 | <row>
|
---|
2733 | <entry><computeroutput>MouseIntegration</computeroutput></entry>
|
---|
2734 | <entry>I</entry>
|
---|
2735 | <entry>toggle mouse integration</entry>
|
---|
2736 | </row>
|
---|
2737 | <row>
|
---|
2738 | <entry><computeroutput>TypeCAD</computeroutput></entry>
|
---|
2739 | <entry>Del</entry>
|
---|
2740 | <entry>inject Ctrl+Alt+Del</entry>
|
---|
2741 | </row>
|
---|
2742 | <row>
|
---|
2743 | <entry><computeroutput>TypeCABS</computeroutput></entry>
|
---|
2744 | <entry>Backspace</entry>
|
---|
2745 | <entry>inject Ctrl+Alt+Backspace</entry>
|
---|
2746 | </row>
|
---|
2747 | <row>
|
---|
2748 | <entry><computeroutput>Pause</computeroutput></entry>
|
---|
2749 | <entry>P</entry>
|
---|
2750 | <entry>Pause the VM</entry>
|
---|
2751 | </row>
|
---|
2752 | <row>
|
---|
2753 | <entry><computeroutput>Reset</computeroutput></entry>
|
---|
2754 | <entry>R</entry>
|
---|
2755 | <entry>(hard) reset the guest</entry>
|
---|
2756 | </row>
|
---|
2757 | <row>
|
---|
2758 | <entry><computeroutput>SaveState</computeroutput></entry>
|
---|
2759 | <entry></entry>
|
---|
2760 | <entry>save the VM state and terminate the VM</entry>
|
---|
2761 | </row>
|
---|
2762 | <row>
|
---|
2763 | <entry><computeroutput>Shutdown</computeroutput></entry>
|
---|
2764 | <entry>H</entry>
|
---|
2765 | <entry>press the (virtual) ACPI power button</entry>
|
---|
2766 | </row>
|
---|
2767 | <row>
|
---|
2768 | <entry><computeroutput>PowerOff</computeroutput></entry>
|
---|
2769 | <entry></entry>
|
---|
2770 | <entry>power the VM off (without saving the state!)</entry>
|
---|
2771 | </row>
|
---|
2772 | <row>
|
---|
2773 | <entry><computeroutput>Close</computeroutput></entry>
|
---|
2774 | <entry>Q</entry>
|
---|
2775 | <entry>show the VM close dialog</entry>
|
---|
2776 | </row>
|
---|
2777 | <row>
|
---|
2778 | <entry><computeroutput>FullscreenMode</computeroutput></entry>
|
---|
2779 | <entry>F</entry>
|
---|
2780 | <entry>switch the VM into full screen</entry>
|
---|
2781 | </row>
|
---|
2782 | <row>
|
---|
2783 | <entry><computeroutput>SeamlessMode</computeroutput></entry>
|
---|
2784 | <entry>L</entry>
|
---|
2785 | <entry>switch the VM into seamless mode</entry>
|
---|
2786 | </row>
|
---|
2787 | <row>
|
---|
2788 | <entry><computeroutput>ScaleMode</computeroutput></entry>
|
---|
2789 | <entry>C</entry>
|
---|
2790 | <entry>switch the VM into scale mode</entry>
|
---|
2791 | </row>
|
---|
2792 | <row>
|
---|
2793 | <entry><computeroutput>GuestAutoResize</computeroutput></entry>
|
---|
2794 | <entry>G</entry>
|
---|
2795 | <entry>automatically resize the guest window</entry>
|
---|
2796 | </row>
|
---|
2797 | <row>
|
---|
2798 | <entry><computeroutput>WindowAdjust</computeroutput></entry>
|
---|
2799 | <entry>A</entry>
|
---|
2800 | <entry>immediately resize the guest window</entry>
|
---|
2801 | </row>
|
---|
2802 | <row>
|
---|
2803 | <entry><computeroutput>PopupMenu</computeroutput></entry>
|
---|
2804 | <entry>Home</entry>
|
---|
2805 | <entry>show popup menu in full screen / seaml. mode</entry>
|
---|
2806 | </row>
|
---|
2807 | <row>
|
---|
2808 | <entry><computeroutput>SettingsDialog</computeroutput></entry>
|
---|
2809 | <entry>S</entry>
|
---|
2810 | <entry>open the VM settings dialog</entry>
|
---|
2811 | </row>
|
---|
2812 | <row>
|
---|
2813 | <entry><computeroutput>InformationDialog</computeroutput></entry>
|
---|
2814 | <entry>N</entry>
|
---|
2815 | <entry>show the VM information window</entry>
|
---|
2816 | </row>
|
---|
2817 | <row>
|
---|
2818 | <entry><computeroutput>NetworkAdaptersDialog</computeroutput></entry>
|
---|
2819 | <entry></entry>
|
---|
2820 | <entry>show the VM network adapters dialog</entry>
|
---|
2821 | </row>
|
---|
2822 | <row>
|
---|
2823 | <entry><computeroutput>SharedFoldersDialog</computeroutput></entry>
|
---|
2824 | <entry></entry>
|
---|
2825 | <entry>show the VM shared folders dialog</entry>
|
---|
2826 | </row>
|
---|
2827 | <row>
|
---|
2828 | <entry><computeroutput>InstallGuestAdditions</computeroutput></entry>
|
---|
2829 | <entry>D</entry>
|
---|
2830 | <entry>mount the ISO containing the Guest Additions</entry>
|
---|
2831 | </row>
|
---|
2832 | </tbody>
|
---|
2833 | </tgroup>
|
---|
2834 | </table>
|
---|
2835 |
|
---|
2836 | <para>To disable the full screen mode as well as the seamless mode, use the following command:
|
---|
2837 | <screen>VBoxManage setextradata global GUI/Input/MachineShortcuts "FullscreenMode=None,SeamlessMode=None"</screen>
|
---|
2838 | </para>
|
---|
2839 |
|
---|
2840 | </sect2>
|
---|
2841 |
|
---|
2842 | <sect2>
|
---|
2843 | <title>Action when terminating the VM</title>
|
---|
2844 |
|
---|
2845 | <para>You can disallow (i.e. black-list) certain actions when terminating a VM.
|
---|
2846 | To disallow specific actions, type:</para>
|
---|
2847 |
|
---|
2848 | <para><screen>VBoxManage setextradata "VM name" GUI/RestrictedCloseActions OPTION[,OPTION...]</screen></para>
|
---|
2849 |
|
---|
2850 | <para>where <computeroutput>OPTION</computeroutput> is one of the
|
---|
2851 | following keywords:</para><glosslist>
|
---|
2852 | <glossentry>
|
---|
2853 | <glossterm><computeroutput>SaveState</computeroutput></glossterm>
|
---|
2854 | <glossdef>
|
---|
2855 | <para>Don't allow the user to save the VM state when terminating
|
---|
2856 | the VM.</para>
|
---|
2857 | </glossdef>
|
---|
2858 | </glossentry>
|
---|
2859 |
|
---|
2860 | <glossentry>
|
---|
2861 | <glossterm><computeroutput>Shutdown</computeroutput></glossterm>
|
---|
2862 | <glossdef>
|
---|
2863 | <para>Don't allow the user to shutdown the VM by sending the ACPI
|
---|
2864 | power-off event to the guest.</para>
|
---|
2865 | </glossdef>
|
---|
2866 | </glossentry>
|
---|
2867 |
|
---|
2868 | <glossentry>
|
---|
2869 | <glossterm><computeroutput>PowerOff</computeroutput></glossterm>
|
---|
2870 | <glossdef>
|
---|
2871 | <para>Don't allow the user to power off the VM.</para>
|
---|
2872 | </glossdef>
|
---|
2873 | </glossentry>
|
---|
2874 |
|
---|
2875 | <glossentry>
|
---|
2876 | <glossterm><computeroutput>PowerOffRestoringSnapshot</computeroutput></glossterm>
|
---|
2877 | <glossdef>
|
---|
2878 | <para>Don't allow the user to return to the last snapshot when
|
---|
2879 | powering off the VM.</para>
|
---|
2880 | </glossdef>
|
---|
2881 | </glossentry>
|
---|
2882 | </glosslist>
|
---|
2883 |
|
---|
2884 | <para>This is a per-VM setting. Any combination of the above is allowed. If all
|
---|
2885 | options are specified, the VM cannot be shut down at all.</para>
|
---|
2886 | </sect2>
|
---|
2887 |
|
---|
2888 | <sect2>
|
---|
2889 | <title>Action for handling a Guru Meditation</title>
|
---|
2890 |
|
---|
2891 | <para>A VM runs into a Guru Meditation if there is a problem which
|
---|
2892 | cannot be fixed by other means than terminating the process. The
|
---|
2893 | default is to show a message window which instructs the user to
|
---|
2894 | open a bug report.</para>
|
---|
2895 | <para>This behavior can be configured:</para>
|
---|
2896 |
|
---|
2897 | <para><screen>VBoxManage setextradata "VM name" GUI/GuruMeditationHandler MODE</screen></para>
|
---|
2898 |
|
---|
2899 | <para>where <computeroutput>MODE</computeroutput> is one of the
|
---|
2900 | following keywords:</para><glosslist>
|
---|
2901 | <glossentry>
|
---|
2902 | <glossterm><computeroutput>Default</computeroutput></glossterm>
|
---|
2903 | <glossdef>
|
---|
2904 | <para>A message window is shown. After the user confirmed, the
|
---|
2905 | VM is terminated.</para>
|
---|
2906 | </glossdef>
|
---|
2907 | </glossentry>
|
---|
2908 |
|
---|
2909 | <glossentry>
|
---|
2910 | <glossterm><computeroutput>PowerOff</computeroutput></glossterm>
|
---|
2911 | <glossdef>
|
---|
2912 | <para>The VM is immediately powered-off without showing any message
|
---|
2913 | window. The VM logfile will show information about what happend.</para>
|
---|
2914 | </glossdef>
|
---|
2915 | </glossentry>
|
---|
2916 |
|
---|
2917 | <glossentry>
|
---|
2918 | <glossterm><computeroutput>Ignore</computeroutput></glossterm>
|
---|
2919 | <glossdef>
|
---|
2920 | <para>The VM is left in stuck mode. Execution is stopped but no
|
---|
2921 | message window is shown. The VM has to be powered off manually.</para>
|
---|
2922 | </glossdef>
|
---|
2923 | </glossentry>
|
---|
2924 | </glosslist>
|
---|
2925 |
|
---|
2926 | <para>This is a per-VM setting.</para>
|
---|
2927 | </sect2>
|
---|
2928 |
|
---|
2929 | <sect2>
|
---|
2930 | <title>Configuring automatic mouse capturing</title>
|
---|
2931 |
|
---|
2932 | <para>
|
---|
2933 | By default, the mouse is captured if the user clicks on the guest window
|
---|
2934 | and the guest expects relative mouse coordiantes at this time. This
|
---|
2935 | happens if the pointing device is configured as PS/2 mouse and the guest did
|
---|
2936 | not (yet) start the VirtualBox Guest Additions (for instance, the guest is
|
---|
2937 | booting or no Guest Additions installed at all) or if the pointing device
|
---|
2938 | is configured as USB tablet but the guest has no USB driver loaded yet.
|
---|
2939 | Once the Guest Additions become active or the USB guest driver is started,
|
---|
2940 | the mouse capture is automatically released.
|
---|
2941 | </para>
|
---|
2942 | <para>
|
---|
2943 | The default behavior is sometimes not desired. Therefore it can be configured:
|
---|
2944 | </para>
|
---|
2945 | <para><screen>VBoxManage setextradata "VM name" GUI/MouseCapturePolicy MODE</screen></para>
|
---|
2946 |
|
---|
2947 | <para>where <computeroutput>MODE</computeroutput> is one of the
|
---|
2948 | following keywords:</para><glosslist>
|
---|
2949 | <glossentry>
|
---|
2950 | <glossterm><computeroutput>Default</computeroutput></glossterm>
|
---|
2951 | <glossdef>
|
---|
2952 | <para>The default behavior as described above.</para>
|
---|
2953 | </glossdef>
|
---|
2954 | </glossentry>
|
---|
2955 | <glossentry>
|
---|
2956 | <glossterm><computeroutput>HostComboOnly</computeroutput></glossterm>
|
---|
2957 | <glossdef>
|
---|
2958 | <para>The mouse is only captured if the Host Key is toggled.</para>
|
---|
2959 | </glossdef>
|
---|
2960 | </glossentry>
|
---|
2961 | <glossentry>
|
---|
2962 | <glossterm><computeroutput>Disabled</computeroutput></glossterm>
|
---|
2963 | <glossdef>
|
---|
2964 | <para>The mouse is never captured, also not by toggling the Host Key</para>
|
---|
2965 | </glossdef>
|
---|
2966 | </glossentry>
|
---|
2967 | </glosslist>
|
---|
2968 |
|
---|
2969 | <para>This is a per-VM setting.</para>
|
---|
2970 |
|
---|
2971 | </sect2>
|
---|
2972 |
|
---|
2973 | <sect2 id="mouse-capture">
|
---|
2974 | <title>Configuring automatic mouse capturing</title>
|
---|
2975 |
|
---|
2976 | <para>
|
---|
2977 | By default, the mouse is captured if the user clicks on the guest window
|
---|
2978 | and the guest expects relative mouse coordiantes at this time. This
|
---|
2979 | happens if the pointing device is configured as PS/2 mouse and the guest did
|
---|
2980 | not (yet) start the VirtualBox Guest Additions (for instance, the guest is
|
---|
2981 | booting or no Guest Additions installed at all) or if the pointing device
|
---|
2982 | is configured as USB tablet but the guest has no USB driver loaded yet.
|
---|
2983 | Once the Guest Additions become active or the USB guest driver is started,
|
---|
2984 | the mouse capture is automatically released.
|
---|
2985 | </para>
|
---|
2986 | <para>
|
---|
2987 | The default behavior is sometimes not desired. Therefore it can be configured:
|
---|
2988 | </para>
|
---|
2989 | <para><screen>VBoxManage setextradata "VM name" GUI/MouseCapturePolicy MODE</screen></para>
|
---|
2990 |
|
---|
2991 | <para>where <computeroutput>MODE</computeroutput> is one of the
|
---|
2992 | following keywords:</para><glosslist>
|
---|
2993 | <glossentry>
|
---|
2994 | <glossterm><computeroutput>Default</computeroutput></glossterm>
|
---|
2995 | <glossdef>
|
---|
2996 | <para>The default behavior as described above.</para>
|
---|
2997 | </glossdef>
|
---|
2998 | </glossentry>
|
---|
2999 | <glossentry>
|
---|
3000 | <glossterm><computeroutput>HostComboOnly</computeroutput></glossterm>
|
---|
3001 | <glossdef>
|
---|
3002 | <para>The mouse is only captured if the Host Key is toggled.</para>
|
---|
3003 | </glossdef>
|
---|
3004 | </glossentry>
|
---|
3005 | <glossentry>
|
---|
3006 | <glossterm><computeroutput>Disabled</computeroutput></glossterm>
|
---|
3007 | <glossdef>
|
---|
3008 | <para>The mouse is never captured, also not by toggling the Host Key</para>
|
---|
3009 | </glossdef>
|
---|
3010 | </glossentry>
|
---|
3011 | </glosslist>
|
---|
3012 |
|
---|
3013 | <para>This is a per-VM setting.</para>
|
---|
3014 |
|
---|
3015 | </sect2>
|
---|
3016 |
|
---|
3017 | <sect2 id="legacy-fullscreen-mode">
|
---|
3018 | <title>Requesting legacy full-screen mode</title>
|
---|
3019 |
|
---|
3020 | <para>
|
---|
3021 | As of version 4.3.16, VirtualBox uses special window manager facilities to switch
|
---|
3022 | a multi-screen machine to full-screen on a multi-monitor host system. However,
|
---|
3023 | not all window managers provide these facilities correctly, so VirtualBox can be
|
---|
3024 | told to use the old method of switching to full-screen mode instead using the command:
|
---|
3025 | </para>
|
---|
3026 | <para><screen>VBoxManage setextradata global GUI/Fullscreen/LegacyMode true</screen></para>
|
---|
3027 |
|
---|
3028 | <para>
|
---|
3029 | You can go back to the new method using the command:
|
---|
3030 | </para>
|
---|
3031 | <para><screen>VBoxManage setextradata global GUI/Fullscreen/LegacyMode</screen></para>
|
---|
3032 |
|
---|
3033 | <para>This is a global setting.</para>
|
---|
3034 |
|
---|
3035 | </sect2>
|
---|
3036 |
|
---|
3037 | </sect1>
|
---|
3038 |
|
---|
3039 | <sect1 id="vboxwebsrv-daemon">
|
---|
3040 | <title>Starting the VirtualBox web service automatically</title>
|
---|
3041 |
|
---|
3042 | <para>The VirtualBox web service
|
---|
3043 | (<computeroutput>vboxwebsrv</computeroutput>) is used for controlling
|
---|
3044 | VirtualBox remotely. It is documented in detail in the VirtualBox Software
|
---|
3045 | Development Kit (SDK); please see <xref linkend="VirtualBoxAPI" />. As the
|
---|
3046 | client base using this interface is growing, we added start scripts for
|
---|
3047 | the various operation systems we support. The following sections describe
|
---|
3048 | how to use them. The VirtualBox web service is never started automatically
|
---|
3049 | as a result of a standard installation.</para>
|
---|
3050 |
|
---|
3051 | <sect2 id="vboxwebsrv-linux">
|
---|
3052 | <title>Linux: starting the webservice via <computeroutput>init</computeroutput></title>
|
---|
3053 |
|
---|
3054 | <para>On Linux, the web service can be automatically started during
|
---|
3055 | host boot by adding appropriate parameters to the file
|
---|
3056 | <computeroutput>/etc/default/virtualbox</computeroutput>.
|
---|
3057 | There is one mandatory parameter, <computeroutput>VBOXWEB_USER</computeroutput>,
|
---|
3058 | which must be set to the user which will later start the VMs. The
|
---|
3059 | parameters in the table below all start with <computeroutput>VBOXWEB_</computeroutput>
|
---|
3060 | (<computeroutput>VBOXWEB_HOST</computeroutput>,
|
---|
3061 | <computeroutput>VBOXWEB_PORT</computeroutput> etc.):
|
---|
3062 | <table>
|
---|
3063 | <title>Web service configuration parameters</title>
|
---|
3064 | <tgroup cols="3">
|
---|
3065 | <thead>
|
---|
3066 | <row>
|
---|
3067 | <entry><emphasis role="bold">Parameter</emphasis></entry>
|
---|
3068 | <entry><emphasis role="bold">Description</emphasis></entry>
|
---|
3069 | <entry><emphasis role="bold">Default</emphasis></entry>
|
---|
3070 | </row>
|
---|
3071 | </thead>
|
---|
3072 | <tbody>
|
---|
3073 | <row>
|
---|
3074 | <entry><computeroutput>USER</computeroutput></entry>
|
---|
3075 | <entry>The user as which the web service runs</entry>
|
---|
3076 | <entry></entry>
|
---|
3077 | </row>
|
---|
3078 | <row>
|
---|
3079 | <entry><computeroutput>HOST</computeroutput></entry>
|
---|
3080 | <entry>The host to bind the web service to</entry>
|
---|
3081 | <entry>localhost</entry>
|
---|
3082 | </row>
|
---|
3083 | <row>
|
---|
3084 | <entry><computeroutput>PORT</computeroutput></entry>
|
---|
3085 | <entry>The port to bind the web service to</entry>
|
---|
3086 | <entry>18083</entry>
|
---|
3087 | </row>
|
---|
3088 | <row>
|
---|
3089 | <entry><computeroutput>SSL_KEYFILE</computeroutput></entry>
|
---|
3090 | <entry>Server key and certificate file, PEM format</entry>
|
---|
3091 | <entry></entry>
|
---|
3092 | </row>
|
---|
3093 | <row>
|
---|
3094 | <entry><computeroutput>SSL_PASSWORDFILE</computeroutput></entry>
|
---|
3095 | <entry>File name for password to server key</entry>
|
---|
3096 | <entry></entry>
|
---|
3097 | </row>
|
---|
3098 | <row>
|
---|
3099 | <entry><computeroutput>SSL_CACERT</computeroutput></entry>
|
---|
3100 | <entry>CA certificate file, PEM format</entry>
|
---|
3101 | <entry></entry>
|
---|
3102 | </row>
|
---|
3103 | <row>
|
---|
3104 | <entry><computeroutput>SSL_CAPATH</computeroutput></entry>
|
---|
3105 | <entry>CA certificate path</entry>
|
---|
3106 | <entry></entry>
|
---|
3107 | </row>
|
---|
3108 | <row>
|
---|
3109 | <entry><computeroutput>SSL_DHFILE</computeroutput></entry>
|
---|
3110 | <entry>DH file name or DH key length in bits</entry>
|
---|
3111 | <entry></entry>
|
---|
3112 | </row>
|
---|
3113 | <row>
|
---|
3114 | <entry><computeroutput>SSL_RANDFILE</computeroutput></entry>
|
---|
3115 | <entry>File containing seed for random number generator</entry>
|
---|
3116 | <entry></entry>
|
---|
3117 | </row>
|
---|
3118 | <row>
|
---|
3119 | <entry><computeroutput>TIMEOUT</computeroutput></entry>
|
---|
3120 | <entry>Session timeout in seconds; 0 disables timeouts</entry>
|
---|
3121 | <entry>300</entry>
|
---|
3122 | </row>
|
---|
3123 | <row>
|
---|
3124 | <entry><computeroutput>CHECK_INTERVAL</computeroutput></entry>
|
---|
3125 | <entry>Frequency of timeout checks in seconds</entry>
|
---|
3126 | <entry>5</entry>
|
---|
3127 | </row>
|
---|
3128 | <row>
|
---|
3129 | <entry><computeroutput>THREADS</computeroutput></entry>
|
---|
3130 | <entry>Maximum number of worker threads to run in parallel</entry>
|
---|
3131 | <entry>100</entry>
|
---|
3132 | </row>
|
---|
3133 | <row>
|
---|
3134 | <entry><computeroutput>KEEPALIVE</computeroutput></entry>
|
---|
3135 | <entry>Maximum number of requests before a socket will be closed</entry>
|
---|
3136 | <entry>100</entry>
|
---|
3137 | </row>
|
---|
3138 | <row>
|
---|
3139 | <entry><computeroutput>ROTATE</computeroutput></entry>
|
---|
3140 | <entry>Number of log files; 0 disables log rotation</entry>
|
---|
3141 | <entry>10</entry>
|
---|
3142 | </row>
|
---|
3143 | <row>
|
---|
3144 | <entry><computeroutput>LOGSIZE</computeroutput></entry>
|
---|
3145 | <entry>Maximum size of a log file in bytes to trigger rotation</entry>
|
---|
3146 | <entry>1MB</entry>
|
---|
3147 | </row>
|
---|
3148 | <row>
|
---|
3149 | <entry><computeroutput>LOGINTERVAL</computeroutput></entry>
|
---|
3150 | <entry>Maximum time interval in seconds to trigger log rotation</entry>
|
---|
3151 | <entry>1 day</entry>
|
---|
3152 | </row>
|
---|
3153 | </tbody>
|
---|
3154 | </tgroup>
|
---|
3155 | </table>
|
---|
3156 | </para>
|
---|
3157 |
|
---|
3158 | <para>Setting the parameter <computeroutput>SSL_KEYFILE</computeroutput>
|
---|
3159 | enables the SSL/TLS support. Using encryption is strongly encouraged, as
|
---|
3160 | otherwise everything (including passwords) is transferred in clear
|
---|
3161 | text.</para>
|
---|
3162 | </sect2>
|
---|
3163 |
|
---|
3164 | <sect2 id="vboxwebsrv-solaris">
|
---|
3165 | <title>Solaris: starting the web service via SMF</title>
|
---|
3166 |
|
---|
3167 | <para>On Solaris hosts, the VirtualBox web service daemon is
|
---|
3168 | integrated into the SMF framework. You can change the parameters, but
|
---|
3169 | don't have to if the defaults below already match your needs:<screen>svccfg -s svc:/application/virtualbox/webservice:default setprop config/host=localhost
|
---|
3170 | svccfg -s svc:/application/virtualbox/webservice:default setprop config/port=18083
|
---|
3171 | svccfg -s svc:/application/virtualbox/webservice:default setprop config/user=root</screen></para>
|
---|
3172 |
|
---|
3173 | <para>The table in the previous section showing the parameter names and
|
---|
3174 | defaults also applies to Solaris. The parameter names must be changed
|
---|
3175 | to lowercase and a prefix of <computeroutput>config/</computeroutput>
|
---|
3176 | has to be added, e.g. <computeroutput>config/user</computeroutput> or
|
---|
3177 | <computeroutput>config/ssl_keyfile</computeroutput>. If you made any
|
---|
3178 | change, don't forget to run the following command to put the changes into
|
---|
3179 | effect immediately:<screen>svcadm refresh svc:/application/virtualbox/webservice:default</screen></para>
|
---|
3180 |
|
---|
3181 | <para>If you forget the above command then the previous settings will
|
---|
3182 | be used when enabling the service. Check the current property settings
|
---|
3183 | with:<screen>svcprop -p config svc:/application/virtualbox/webservice:default</screen></para>
|
---|
3184 |
|
---|
3185 | <para>When everything is configured correctly you can start the
|
---|
3186 | VirtualBox web service with the following command:<screen>svcadm enable svc:/application/virtualbox/webservice:default</screen></para>
|
---|
3187 |
|
---|
3188 | <para>For more information about SMF, please refer to the Solaris
|
---|
3189 | documentation.</para>
|
---|
3190 | </sect2>
|
---|
3191 |
|
---|
3192 | <sect2 id="vboxwebsrv-osx">
|
---|
3193 | <title>Mac OS X: starting the webservice via launchd</title>
|
---|
3194 |
|
---|
3195 | <para>On Mac OS X, launchd is used to start the VirtualBox webservice. An
|
---|
3196 | example configuration file can be found in
|
---|
3197 | <computeroutput>$HOME/Library/LaunchAgents/org.virtualbox.vboxwebsrv.plist</computeroutput>.
|
---|
3198 | It can be enabled by changing the
|
---|
3199 | <computeroutput>Disabled</computeroutput> key from
|
---|
3200 | <computeroutput>true</computeroutput> to
|
---|
3201 | <computeroutput>false</computeroutput>. To manually start the
|
---|
3202 | service use the following command: <screen>launchctl load ~/Library/LaunchAgents/org.virtualbox.vboxwebsrv.plist</screen>
|
---|
3203 | For additional information on how launchd services could be
|
---|
3204 | configured see <literal><ulink
|
---|
3205 | url="http://developer.apple.com/mac/library/documentation/MacOSX/Conceptual/BPSystemStartup/BPSystemStartup.html">http://developer.apple.com/mac/library/documentation/MacOSX/Conceptual/BPSystemStartup/BPSystemStartup.html</ulink></literal>.</para>
|
---|
3206 | </sect2>
|
---|
3207 | </sect1>
|
---|
3208 |
|
---|
3209 | <sect1 id="vboxwatchdog">
|
---|
3210 | <title>VirtualBox Watchdog</title>
|
---|
3211 | <para>Starting with VirtualBox 4.2 the memory ballooning service formerly
|
---|
3212 | known as <computeroutput>VBoxBalloonCtrl</computeroutput> was renamed to
|
---|
3213 | VBoxWatchdog, which now incorporates several host services that are meant
|
---|
3214 | to be run in a server environment.</para>
|
---|
3215 |
|
---|
3216 | <para>These services are: <itemizedlist>
|
---|
3217 | <listitem>
|
---|
3218 | <para>Memory ballooning control, which automatically takes care of
|
---|
3219 | a VM's configured memory balloon (see <xref linkend="guestadd-balloon" />
|
---|
3220 | for an introduction to memory ballooning). This especially is useful
|
---|
3221 | for server environments where VMs may dynamically require more or
|
---|
3222 | less memory during runtime.</para>
|
---|
3223 |
|
---|
3224 | <para>The service periodically checks a VM's current memory balloon
|
---|
3225 | and its free guest RAM and automatically adjusts the current memory
|
---|
3226 | balloon by inflating or deflating it accordingly. This handling only
|
---|
3227 | applies to running VMs having recent Guest Additions installed.</para>
|
---|
3228 | </listitem>
|
---|
3229 | <listitem>
|
---|
3230 | <para>Host isolation detection, which provides a way to detect whether
|
---|
3231 | the host cannot reach the specific VirtualBox server instance anymore
|
---|
3232 | and take appropriate actions, such as shutting down, saving the
|
---|
3233 | current state or even powering down certain VMs.</para>
|
---|
3234 | </listitem>
|
---|
3235 | </itemizedlist></para>
|
---|
3236 |
|
---|
3237 | <para>
|
---|
3238 | All configuration values can be either specified via command line or global
|
---|
3239 | extradata, whereas command line values always have a higher priority when set.
|
---|
3240 | Some of the configuration values also be be specified on a per-VM basis. So
|
---|
3241 | the overall lookup order is: command line, per-VM basis extradata (if available),
|
---|
3242 | global extradata.
|
---|
3243 | </para>
|
---|
3244 |
|
---|
3245 | <sect2 id="vboxwatchdog-ballonctrl">
|
---|
3246 | <title>Memory ballooning control</title>
|
---|
3247 | <para>The memory ballooning control inflates and deflates the memory balloon
|
---|
3248 | of VMs based on the VMs free memory and the desired maximum balloon size.</para>
|
---|
3249 |
|
---|
3250 | <para>To set up the memory ballooning control the maximum ballooning size a
|
---|
3251 | VM can reach needs to be set. This can be specified via command line with
|
---|
3252 | <screen>--balloon-max <Size in MB></screen>, on a per-VM basis extradata value with
|
---|
3253 | <screen>VBoxManage setextradata <VM-Name> VBoxInternal2/Watchdog/BalloonCtrl/BalloonSizeMax <Size in MB></screen>
|
---|
3254 | or using a global extradata value with
|
---|
3255 | <screen>VBoxManage setextradata global VBoxInternal2/Watchdog/BalloonCtrl/BalloonSizeMax <Size in MB></screen>
|
---|
3256 | <note><para>If no maximum ballooning size is specified by at least one of
|
---|
3257 | the parameters above, no ballooning will be performed at all.</para></note>
|
---|
3258 | </para>
|
---|
3259 |
|
---|
3260 | <para>Setting the ballooning increment in MB can be either done via
|
---|
3261 | command line with
|
---|
3262 | <screen>--balloon-inc <Size in MB></screen> or using a global
|
---|
3263 | extradata value with
|
---|
3264 | <screen>VBoxManage setextradata global VBoxInternal2/Watchdog/BalloonCtrl/BalloonIncrementMB <Size in MB></screen>
|
---|
3265 | Default ballooning increment is 256 MB if not specified.</para>
|
---|
3266 |
|
---|
3267 | <para>Same goes with the ballooning decrement: Via command line with
|
---|
3268 | <screen>--balloon-dec <Size in MB></screen> or using a global
|
---|
3269 | extradata value with
|
---|
3270 | <screen>VBoxManage setextradata global VBoxInternal2/Watchdog/BalloonCtrl/BalloonDecrementMB <Size in MB></screen>
|
---|
3271 | Default ballooning decrement is 128 MB if not specified.</para>
|
---|
3272 |
|
---|
3273 | <para>To define the lower limit in MB a balloon can be the command line with
|
---|
3274 | <screen>--balloon-lower-limit <Size in MB></screen> can be used or using a global
|
---|
3275 | extradata value with
|
---|
3276 | <screen>VBoxManage setextradata global VBoxInternal2/Watchdog/BalloonCtrl/BalloonLowerLimitMB <Size in MB></screen>
|
---|
3277 | is available. Default lower limit is 128 if not specified.</para>
|
---|
3278 | </sect2>
|
---|
3279 |
|
---|
3280 | <sect2 id="vboxwatchdog-hostisln">
|
---|
3281 | <title>Host isolation detection</title>
|
---|
3282 | <para>To detect whether a host is being isolated, that is, the host cannot
|
---|
3283 | reach the VirtualBox server instance anymore, the host needs to set an
|
---|
3284 | alternating value to a global extradata value within a time period. If
|
---|
3285 | this value is not set within that time period a timeout occurred and the
|
---|
3286 | so-called host isolation response will be performed to the VMs handled.
|
---|
3287 | Which VMs are handled can be controlled by defining VM groups and assigning
|
---|
3288 | VMs to those groups. By default no groups are set, meaning that all VMs
|
---|
3289 | on the server will be handled when no host response is received within
|
---|
3290 | 30 seconds.</para>
|
---|
3291 |
|
---|
3292 | <para>To set the groups handled by the host isolation detection via
|
---|
3293 | command line:
|
---|
3294 | <screen>--apimon-groups=<string[,stringN]></screen> or using a global
|
---|
3295 | extradata value with
|
---|
3296 | <screen>VBoxManage setextradata global VBoxInternal2/Watchdog/APIMonitor/Groups <string[,stringN]></screen>
|
---|
3297 | </para>
|
---|
3298 |
|
---|
3299 | <para>To set the host isolation timeout via command line:
|
---|
3300 | <screen>--apimon-isln-timeout=<ms></screen> or using a global
|
---|
3301 | extradata value with
|
---|
3302 | <screen>VBoxManage setextradata global VBoxInternal2/Watchdog/APIMonitor/IsolationTimeoutMS <ms></screen>
|
---|
3303 | </para>
|
---|
3304 |
|
---|
3305 | <para>To set the actual host isolation response via command line:
|
---|
3306 | <screen>--apimon-isln-response=<cmd></screen> or using a global
|
---|
3307 | extradata value with
|
---|
3308 | <screen>VBoxManage setextradata global VBoxInternal2/Watchdog/APIMonitor/IsolationResponse <cmd></screen>
|
---|
3309 | The following response commands are available:
|
---|
3310 | <itemizedlist>
|
---|
3311 | <listitem>
|
---|
3312 | <para><computeroutput>none</computeroutput>, which does nothing.</para>
|
---|
3313 | </listitem>
|
---|
3314 | <listitem>
|
---|
3315 | <para><computeroutput>pause</computeroutput>, which pauses the
|
---|
3316 | execution of a VM.</para>
|
---|
3317 | </listitem>
|
---|
3318 | <listitem>
|
---|
3319 | <para><computeroutput>poweroff</computeroutput>, which shuts down
|
---|
3320 | the VM by pressing the virtual power button. The VM will not have
|
---|
3321 | the chance of saving any data or veto the shutdown process.</para>
|
---|
3322 | </listitem>
|
---|
3323 | <listitem>
|
---|
3324 | <para><computeroutput>save</computeroutput>, which saves the current
|
---|
3325 | machine state and powers off the VM afterwards. If saving the machine
|
---|
3326 | state fails the VM will be paused.</para>
|
---|
3327 | </listitem>
|
---|
3328 | <listitem>
|
---|
3329 | <para><computeroutput>shutdown</computeroutput>, which shuts down
|
---|
3330 | the VM in a gentle way by sending an <computeroutput>ACPI</computeroutput>
|
---|
3331 | shutdown event to the VM's operating system. The OS then has the
|
---|
3332 | chance of doing a clean shutdown.</para>
|
---|
3333 | </listitem>
|
---|
3334 | </itemizedlist>
|
---|
3335 | </para>
|
---|
3336 | </sect2>
|
---|
3337 |
|
---|
3338 | <sect2 id="vboxwatchdog-moreinfo">
|
---|
3339 | <title>More information</title>
|
---|
3340 | <para>For more advanced options and parameters like verbose logging check
|
---|
3341 | the built-in command line help accessible with
|
---|
3342 | <computeroutput>--help</computeroutput>.</para>
|
---|
3343 | </sect2>
|
---|
3344 |
|
---|
3345 | <sect2 id="vboxwatchdog-linux">
|
---|
3346 | <title>Linux: starting the watchdog service via <computeroutput>init</computeroutput></title>
|
---|
3347 |
|
---|
3348 | <para>On Linux, the watchdog service can be automatically started during
|
---|
3349 | host boot by adding appropriate parameters to the file
|
---|
3350 | <computeroutput>/etc/default/virtualbox</computeroutput>.
|
---|
3351 | There is one mandatory parameter, <computeroutput>VBOXWATCHDOG_USER</computeroutput>,
|
---|
3352 | which must be set to the user which will later start the VMs. For backward
|
---|
3353 | compatibility you can also specify <computeroutput>VBOXBALLOONCTRL_USER</computeroutput>The
|
---|
3354 | parameters in the table below all start with <computeroutput>VBOXWATCHDOG_</computeroutput>
|
---|
3355 | (<computeroutput>VBOXWATCHDOG_BALLOON_INTERVAL</computeroutput>,
|
---|
3356 | <computeroutput>VBOXWATCHDOG_LOGSIZE</computeroutput> etc., and for
|
---|
3357 | previously existing parameters the
|
---|
3358 | <computeroutput>VBOXBALLOONCTRL_INTERVAL</computeroutput> etc. parameters
|
---|
3359 | can still be used):
|
---|
3360 | <table>
|
---|
3361 | <title>VirtualBox watchdog configuration parameters</title>
|
---|
3362 | <tgroup cols="3">
|
---|
3363 | <thead>
|
---|
3364 | <row>
|
---|
3365 | <entry><emphasis role="bold">Parameter</emphasis></entry>
|
---|
3366 | <entry><emphasis role="bold">Description</emphasis></entry>
|
---|
3367 | <entry><emphasis role="bold">Default</emphasis></entry>
|
---|
3368 | </row>
|
---|
3369 | </thead>
|
---|
3370 | <tbody>
|
---|
3371 | <row>
|
---|
3372 | <entry><computeroutput>USER</computeroutput></entry>
|
---|
3373 | <entry>The user as which the watchdog service runs</entry>
|
---|
3374 | <entry></entry>
|
---|
3375 | </row>
|
---|
3376 | <row>
|
---|
3377 | <entry><computeroutput>ROTATE</computeroutput></entry>
|
---|
3378 | <entry>Number of log files; 0 disables log rotation</entry>
|
---|
3379 | <entry>10</entry>
|
---|
3380 | </row>
|
---|
3381 | <row>
|
---|
3382 | <entry><computeroutput>LOGSIZE</computeroutput></entry>
|
---|
3383 | <entry>Maximum size of a log file in bytes to trigger rotation</entry>
|
---|
3384 | <entry>1MB</entry>
|
---|
3385 | </row>
|
---|
3386 | <row>
|
---|
3387 | <entry><computeroutput>LOGINTERVAL</computeroutput></entry>
|
---|
3388 | <entry>Maximum time interval in seconds to trigger log rotation</entry>
|
---|
3389 | <entry>1 day</entry>
|
---|
3390 | </row>
|
---|
3391 | <row>
|
---|
3392 | <entry><computeroutput>BALLOON_INTERVAL</computeroutput></entry>
|
---|
3393 | <entry>Interval for checking the balloon size (msec)</entry>
|
---|
3394 | <entry>30000</entry>
|
---|
3395 | </row>
|
---|
3396 | <row>
|
---|
3397 | <entry><computeroutput>BALLOON_INCREMENT</computeroutput></entry>
|
---|
3398 | <entry>Balloon size increment (MByte)</entry>
|
---|
3399 | <entry>256</entry>
|
---|
3400 | </row>
|
---|
3401 | <row>
|
---|
3402 | <entry><computeroutput>BALLOON_DECREMENT</computeroutput></entry>
|
---|
3403 | <entry>Balloon size decrement (MByte)</entry>
|
---|
3404 | <entry>128</entry>
|
---|
3405 | </row>
|
---|
3406 | <row>
|
---|
3407 | <entry><computeroutput>BALLOON_LOWERLIMIT</computeroutput></entry>
|
---|
3408 | <entry>Balloon size lower limit (MByte)</entry>
|
---|
3409 | <entry>64</entry>
|
---|
3410 | </row>
|
---|
3411 | <row>
|
---|
3412 | <entry><computeroutput>BALLOON_SAFETYMARGIN</computeroutput></entry>
|
---|
3413 | <entry>Free memory required for decreasing the balloon size (MByte)</entry>
|
---|
3414 | <entry>1024</entry>
|
---|
3415 | </row>
|
---|
3416 | </tbody>
|
---|
3417 | </tgroup>
|
---|
3418 | </table>
|
---|
3419 | </para>
|
---|
3420 | </sect2>
|
---|
3421 |
|
---|
3422 | <sect2 id="vboxwatchdog-solaris">
|
---|
3423 | <title>Solaris: starting the watchdog service via SMF</title>
|
---|
3424 |
|
---|
3425 | <para>On Solaris hosts, the VirtualBox watchdog service daemon is
|
---|
3426 | integrated into the SMF framework. You can change the parameters, but
|
---|
3427 | don't have to if the defaults already match your needs:<screen>svccfg -s svc:/application/virtualbox/balloonctrl:default setprop config/balloon_interval=10000
|
---|
3428 | svccfg -s svc:/application/virtualbox/balloonctrl:default setprop config/balloon_safetymargin=134217728</screen></para>
|
---|
3429 |
|
---|
3430 | <para>The table in the previous section showing the parameter names and
|
---|
3431 | defaults also applies to Solaris. The parameter names must be changed
|
---|
3432 | to lowercase and a prefix of <computeroutput>config/</computeroutput>
|
---|
3433 | has to be added, e.g. <computeroutput>config/user</computeroutput> or
|
---|
3434 | <computeroutput>config/balloon_safetymargin</computeroutput>. If you made any
|
---|
3435 | change, don't forget to run the following command to put the changes into
|
---|
3436 | effect immediately:<screen>svcadm refresh svc:/application/virtualbox/balloonctrl:default</screen></para>
|
---|
3437 |
|
---|
3438 | <para>If you forget the above command then the previous settings will
|
---|
3439 | be used when enabling the service. Check the current property settings
|
---|
3440 | with:<screen>svcprop -p config svc:/application/virtualbox/balloonctrl:default</screen></para>
|
---|
3441 |
|
---|
3442 | <para>When everything is configured correctly you can start the
|
---|
3443 | VirtualBox watchdog service with the following command:<screen>svcadm enable svc:/application/virtualbox/balloonctrl:default</screen></para>
|
---|
3444 |
|
---|
3445 | <para>For more information about SMF, please refer to the Solaris
|
---|
3446 | documentation.</para>
|
---|
3447 | </sect2>
|
---|
3448 |
|
---|
3449 | </sect1>
|
---|
3450 |
|
---|
3451 | <sect1 id="otherextpacks">
|
---|
3452 | <title>Other extension packs</title>
|
---|
3453 |
|
---|
3454 | <para>Starting with VirtualBox 4.2.0 there is another extension pack,
|
---|
3455 | <code>VNC</code>, which is open source and replaces the previous
|
---|
3456 | integration of the VNC remote access protocol. This is experimental code,
|
---|
3457 | and will be initially available in the VirtualBox source code package only.
|
---|
3458 | It is to a large portion code contributed by users, and is not supported
|
---|
3459 | in any way by Oracle.</para>
|
---|
3460 |
|
---|
3461 | <para>The keyboard handling is severely limited, and only the US keyboard
|
---|
3462 | layout works. Other keyboard layouts will have at least some keys which
|
---|
3463 | produce the wrong results (often quite surprising effects), and for layouts
|
---|
3464 | which have significant differences to the US keyboard layout it is most
|
---|
3465 | likely unusable.</para>
|
---|
3466 |
|
---|
3467 | <para>It is possible to install both the Oracle VM VirtualBox Extension
|
---|
3468 | Pack and VNC, but only one VRDE module can be active at any time. The
|
---|
3469 | following command switches to the VNC VRDE module in
|
---|
3470 | VNC:<screen>VBoxManage setproperty vrdeextpack VNC</screen></para>
|
---|
3471 |
|
---|
3472 | <para>Configuring the remote access works very similarly to VRDP (see
|
---|
3473 | <xref linkend="vrde" />), with some limitations: VNC does not
|
---|
3474 | support specifying several port numbers, and the authentication is done
|
---|
3475 | differently. VNC can only deal with password authentication, and there
|
---|
3476 | is no option to use password hashes. This leaves no other choice than
|
---|
3477 | having a clear-text password in the VM configuration, which can be set with
|
---|
3478 | the following command:<screen>VBoxManage modifyvm "VM name" --vrdeproperty VNCPassword=secret</screen></para>
|
---|
3479 |
|
---|
3480 | <para>The user is responsible for keeping this password secret, and it
|
---|
3481 | should be removed when a VM configuration is passed to another person,
|
---|
3482 | for whatever purpose. Some VNC servers claim to have "encrypted" passwords
|
---|
3483 | in the configuration. This is not true encryption, it is only concealing
|
---|
3484 | the passwords, which is exactly as secure as clear-text passwords.</para>
|
---|
3485 |
|
---|
3486 | <para>The following command switches back to VRDP (if
|
---|
3487 | installed):<screen>VBoxManage setproperty vrdeextpack "Oracle VM VirtualBox Extension Pack"</screen></para>
|
---|
3488 | </sect1>
|
---|
3489 |
|
---|
3490 | <sect1 id="autostart">
|
---|
3491 | <title>Starting virtual machines during system boot</title>
|
---|
3492 |
|
---|
3493 | <para>Starting with VirtualBox 4.2.0 it is possible to start VMs automatically during
|
---|
3494 | system boot on Linux, Solaris and Mac OS X for all users. </para>
|
---|
3495 |
|
---|
3496 | <sect2 id="autostart-linux">
|
---|
3497 | <title>Linux: starting the autostart service via <computeroutput>init</computeroutput></title>
|
---|
3498 |
|
---|
3499 | <para>On Linux, the autostart service is activated by setting two variables in
|
---|
3500 | <computeroutput>/etc/default/virtualbox</computeroutput>.
|
---|
3501 | The first one is <computeroutput>VBOXAUTOSTART_DB</computeroutput> which
|
---|
3502 | contains an absolute path to the autostart database directory.
|
---|
3503 | The directory should have write access for every user who should be able to
|
---|
3504 | start virtual machines automatically. Furthermore the directory should have the
|
---|
3505 | sticky bit set.
|
---|
3506 | The second variable is <computeroutput>VBOXAUTOSTART_CONFIG</computeroutput>
|
---|
3507 | which points the service to the autostart configuration file which is used
|
---|
3508 | during boot to determine whether to allow individual users to start a VM
|
---|
3509 | automatically and configure startup delays.
|
---|
3510 | The configuration file can be placed in <computeroutput>/etc/vbox</computeroutput>
|
---|
3511 | and contains several options. One is <computeroutput>default_policy</computeroutput>
|
---|
3512 | which controls whether the autostart service allows or denies to start a VM
|
---|
3513 | for users which are not in the exception list.
|
---|
3514 | The exception list starts with <computeroutput>exception_list</computeroutput>
|
---|
3515 | and contains a comma separated list with usernames. Furthermore a separate
|
---|
3516 | startup delay can be configured for every user to avoid overloading the host.
|
---|
3517 | A sample configuration is given below:</para>
|
---|
3518 |
|
---|
3519 | <para><screen>
|
---|
3520 | # Default policy is to deny starting a VM, the other option is "allow".
|
---|
3521 | default_policy = deny
|
---|
3522 |
|
---|
3523 | # Bob is allowed to start virtual machines but starting them
|
---|
3524 | # will be delayed for 10 seconds
|
---|
3525 | bob = {
|
---|
3526 | allow = true
|
---|
3527 | startup_delay = 10
|
---|
3528 | }
|
---|
3529 |
|
---|
3530 | # Alice is not allowed to start virtual machines, useful to exclude certain users
|
---|
3531 | # if the default policy is set to allow.
|
---|
3532 | alice = {
|
---|
3533 | allow = false
|
---|
3534 | }
|
---|
3535 | </screen></para>
|
---|
3536 |
|
---|
3537 | <para>Every user who wants to enable autostart for individual machines
|
---|
3538 | has to set the path to the autostart database directory with
|
---|
3539 | <screen>VBoxManage setproperty autostartdbpath <Autostart directory></screen>
|
---|
3540 | </para>
|
---|
3541 | </sect2>
|
---|
3542 |
|
---|
3543 | <sect2 id="autostart-solaris">
|
---|
3544 | <title>Solaris: starting the autostart service via SMF</title>
|
---|
3545 |
|
---|
3546 | <para>On Solaris hosts, the VirtualBox autostart daemon is
|
---|
3547 | integrated into the SMF framework. To enable it you have to point the service
|
---|
3548 | to an existing configuration file which has the same format as on Linux (see <xref linkend="autostart-linux" />):
|
---|
3549 | <screen>svccfg -s svc:/application/virtualbox/autostart:default setprop config/config=/etc/vbox/autostart.cfg</screen>
|
---|
3550 | </para>
|
---|
3551 |
|
---|
3552 | <para>When everything is configured correctly you can start the
|
---|
3553 | VirtualBox autostart service with the following command:<screen>svcadm enable svc:/application/virtualbox/autostart:default</screen></para>
|
---|
3554 |
|
---|
3555 | <para>For more information about SMF, please refer to the Solaris
|
---|
3556 | documentation.</para>
|
---|
3557 | </sect2>
|
---|
3558 |
|
---|
3559 | <sect2 id="autostart-osx">
|
---|
3560 | <title>Mac OS X: starting the autostart service via launchd</title>
|
---|
3561 |
|
---|
3562 | <para>On Mac OS X, launchd is used to start the VirtualBox autostart service. An
|
---|
3563 | example configuration file can be found in
|
---|
3564 | <computeroutput>/Applications/VirtualBox.app/Contents/MacOS/org.virtualbox.vboxautostart.plist</computeroutput>.
|
---|
3565 | To enable the service copy the file to <computeroutput>/Library/LaunchDaemons</computeroutput> and change the
|
---|
3566 | <computeroutput>Disabled</computeroutput> key from
|
---|
3567 | <computeroutput>true</computeroutput> to
|
---|
3568 | <computeroutput>false</computeroutput>. Furthermore replace the second parameter
|
---|
3569 | to an existing configuration file which has the same format as on Linux (see <xref linkend="autostart-linux" />).
|
---|
3570 | To manually start the service use the following command:
|
---|
3571 | <screen>launchctl load /Library/LaunchDaemons/org.virtualbox.vboxautostart.plist</screen>
|
---|
3572 | For additional information on how launchd services could be
|
---|
3573 | configured see <literal><ulink
|
---|
3574 | url="http://developer.apple.com/mac/library/documentation/MacOSX/Conceptual/BPSystemStartup/BPSystemStartup.html">http://developer.apple.com/mac/library/documentation/MacOSX/Conceptual/BPSystemStartup/BPSystemStartup.html</ulink></literal>.</para>
|
---|
3575 | </sect2>
|
---|
3576 | </sect1>
|
---|
3577 |
|
---|
3578 | <sect1 id="vboxexpertstoragemgmt">
|
---|
3579 | <title>VirtualBox expert storage management</title>
|
---|
3580 |
|
---|
3581 | <para>In case the snapshot model of VirtualBox is not sufficient
|
---|
3582 | it is possible to enable a special mode which makes it possible to
|
---|
3583 | reconfigure storage attachments while the VM is paused.
|
---|
3584 | The user has to make sure that the disk data stays consistent to the guest
|
---|
3585 | because unlike with hotplugging the guest is not informed about detached
|
---|
3586 | or newly attached media.</para>
|
---|
3587 |
|
---|
3588 | <para>The expert storage management mode can be enabled per VM executing:</para>
|
---|
3589 |
|
---|
3590 | <screen>VBoxManage setextradata "VM name" "VBoxInternal2/SilentReconfigureWhilePaused" 1</screen>
|
---|
3591 |
|
---|
3592 | <para>Storage attachments can be reconfigured while the VM is paused afterwards using:</para>
|
---|
3593 | <screen>VBoxManage storageattach ...</screen>
|
---|
3594 | </sect1>
|
---|
3595 |
|
---|
3596 | <sect1 id="hostpowertweaks">
|
---|
3597 | <title>Handling of host power management events</title>
|
---|
3598 |
|
---|
3599 | <para>Some host power management events are handled by VirtualBox. The
|
---|
3600 | actual behavior depends on the platform:</para>
|
---|
3601 |
|
---|
3602 | <para>
|
---|
3603 | <glosslist>
|
---|
3604 | <glossentry>
|
---|
3605 | <glossterm>Host Suspends</glossterm>
|
---|
3606 | <glossdef>
|
---|
3607 | <para>
|
---|
3608 | This event is generated when the host is about to suspend, that is,
|
---|
3609 | the host saves the state to some non-volatile storage and powers off.
|
---|
3610 | </para>
|
---|
3611 | <para>
|
---|
3612 | This event is currently only handled on Windows hosts and Mac OS X hosts.
|
---|
3613 | When this event is generated, VirtualBox will pause all running VMs.
|
---|
3614 | </para>
|
---|
3615 | </glossdef>
|
---|
3616 | </glossentry>
|
---|
3617 | <glossentry>
|
---|
3618 | <glossterm>Host Resumes</glossterm>
|
---|
3619 | <glossdef>
|
---|
3620 | <para>
|
---|
3621 | This event is generated when the host woke up from the suspended
|
---|
3622 | state.
|
---|
3623 | </para>
|
---|
3624 | <para>
|
---|
3625 | This event is currently only handled on Windows hosts and Mac OS X hosts.
|
---|
3626 | When this event is generated, VirtualBox will resume all VMs which
|
---|
3627 | are where paused before.
|
---|
3628 | </para>
|
---|
3629 | </glossdef>
|
---|
3630 | </glossentry>
|
---|
3631 | <glossentry>
|
---|
3632 | <glossterm>Battery Low</glossterm>
|
---|
3633 | <glossdef>
|
---|
3634 | <para>
|
---|
3635 | The battery level reached a critical level (usually less than 5
|
---|
3636 | percent charged).
|
---|
3637 | </para>
|
---|
3638 | <para>
|
---|
3639 | This event is currently only handled on Windows hosts and Mac OS X hosts.
|
---|
3640 | When this event is generated, VirtualBox will save the state and
|
---|
3641 | terminate all VMs in preperation of a potential host powerdown.
|
---|
3642 | </para>
|
---|
3643 | <para>The behavior can be configured. By executing the following command,
|
---|
3644 | no VM is saved:</para>
|
---|
3645 | <screen>VBoxManage setextradata global "VBoxInternal2/SavestateOnBatteryLow" 0</screen>
|
---|
3646 | <para>This is a global setting as well as a per-VM setting. The per-VM
|
---|
3647 | value has higher precedence than the global value. The following command
|
---|
3648 | will save the state of all VMs but will not save the state of VM "foo":</para>
|
---|
3649 | <screen>VBoxManage setextradata global "VBoxInternal2/SavestateOnBatteryLow" 1
|
---|
3650 | VBoxManage setextradata "foo" "VBoxInternal2/SavestateOnBatteryLow" 0</screen>
|
---|
3651 | <para>The first line is actually not required as by default the savestate
|
---|
3652 | action is performed.</para>
|
---|
3653 | </glossdef>
|
---|
3654 | </glossentry>
|
---|
3655 | </glosslist>
|
---|
3656 | </para>
|
---|
3657 |
|
---|
3658 | </sect1>
|
---|
3659 |
|
---|
3660 | <sect1 id="sse412passthrough">
|
---|
3661 | <title>Experimental support for passing through SSE4.1 / SSE4.2 instructions</title>
|
---|
3662 | <para>
|
---|
3663 | To provide SSE 4.1 / SSE 4.2 support to guests, the host CPU has to
|
---|
3664 | implement these instruction sets. Starting with VirtualBox 4.3.8 it is
|
---|
3665 | possible to enable these instructions for certain guests using the
|
---|
3666 | following commands:</para><screen>VBoxManage setextradata "VM name" VBoxInternal/CPUM/SSE4.1 1
|
---|
3667 | VBoxManage setextradata "VM name" VBoxInternal/CPUM/SSE4.2 1</screen>
|
---|
3668 | <para>
|
---|
3669 | These are a per-VM settings and they are turned off by default.
|
---|
3670 | </para>
|
---|
3671 | </sect1>
|
---|
3672 |
|
---|
3673 | <sect1 id="hidledssync">
|
---|
3674 | <title>Support for keyboard indicators synchronization</title>
|
---|
3675 |
|
---|
3676 | <para>
|
---|
3677 | This feature makes the host keyboard lights match those of the virtual machine's virtual
|
---|
3678 | keyboard when the machine window is selected. It is currently implemented for Mac OS X and
|
---|
3679 | Windows hosts and available as of releases 4.2.24 and 4.3.8. The feature can be enabled using
|
---|
3680 | the following command:
|
---|
3681 | </para>
|
---|
3682 |
|
---|
3683 | <screen>VBoxManage setextradata "VM name" GUI/HidLedsSync "1"</screen>
|
---|
3684 |
|
---|
3685 | <para>
|
---|
3686 | In order to disable it, use the same command but change "1" to "0", or use the VBoxManage
|
---|
3687 | command to remove the extra data. This is a per-VM setting and it is disabled by default.
|
---|
3688 | </para>
|
---|
3689 |
|
---|
3690 | </sect1>
|
---|
3691 |
|
---|
3692 | <sect1 id="usbtrafficcapturing">
|
---|
3693 | <title>Capturing USB traffic for selected devices</title>
|
---|
3694 |
|
---|
3695 | <para>
|
---|
3696 | Starting with VirtualBox 5.0 it is possible to capture USB traffic for
|
---|
3697 | single USB devices or on the root hub level which captures the traffic of
|
---|
3698 | all USB devices attached to the root hub. VirtualBox stores the traffic
|
---|
3699 | in a format which is compatible with Wireshark. To capture the traffic
|
---|
3700 | of a specific USB device it must be attached to the VM with VBoxManage
|
---|
3701 | using the following command:
|
---|
3702 | </para>
|
---|
3703 |
|
---|
3704 | <screen>VBoxManage controlvm "VM name" usbattach "device uuid|address" --capturefile "filename"</screen>
|
---|
3705 |
|
---|
3706 | <para>
|
---|
3707 | In order to enable capturing on the root hub use the following command
|
---|
3708 | while the VM is not running:
|
---|
3709 | </para>
|
---|
3710 |
|
---|
3711 | <screen>VBoxManage setextradata "VM name" VBoxInternal/Devices/usb-ehci/LUN#0/Config/CaptureFilename "filename"</screen>
|
---|
3712 |
|
---|
3713 | <para>The command above enables capturing on the root hub attached to the EHCI controller.
|
---|
3714 | To enable it for the OHCI or XHCI controller replace <computeroutput>usb-ehci</computeroutput>
|
---|
3715 | with <computeroutput>usb-ohci</computeroutput> or <computeroutput>usb-xhci</computeroutput> respectively.</para>
|
---|
3716 |
|
---|
3717 | </sect1>
|
---|
3718 |
|
---|
3719 | <sect1 id="heartbeatservice">
|
---|
3720 | <title>Configuring the heartbeat service</title>
|
---|
3721 | <para>
|
---|
3722 | VirtualBox ships a simple heartbeat service. Once the Guest Additions are
|
---|
3723 | active, the guest sends frequent heartbeat pings to the host. If the guest
|
---|
3724 | stops sending the heartbeat pings without properly termination the service,
|
---|
3725 | the VM process will log this event in the VBox.log file. In the future it
|
---|
3726 | might be possible to configure dedicated actions but for there is only a
|
---|
3727 | warning in the log file.</para>
|
---|
3728 |
|
---|
3729 | <para>
|
---|
3730 | There are two parameters to configure. The <emphasis>heartbeat interval</emphasis>
|
---|
3731 | defines the time between two heartbeat pings. The default value is 2 seconds, that
|
---|
3732 | is, the heartbeat service of the VirtualBox Guest Additions will send a heartbeat
|
---|
3733 | ping every two seconds. The value in nanoseconds can be configured like this:
|
---|
3734 | </para>
|
---|
3735 | <screen>VBoxManage controlvm "VM name" VBoxInternal/Devices/VMMDev/0/Config/HeartbeatInterval 2000000000</screen>
|
---|
3736 | <para>
|
---|
3737 | The <emphasis>heartbeat timeout</emphasis> defines the time the host waits
|
---|
3738 | starting from the last heartbeat ping before it defines the guest as unresponsive.
|
---|
3739 | The default value is 2 times the heartbeat interval (4 seconds) and can be configured
|
---|
3740 | as following (in nanoseconds):
|
---|
3741 | </para>
|
---|
3742 |
|
---|
3743 | <screen>VBoxManage controlvm "VM name" VBoxInternal/Devices/VMMDev/0/Config/HeartbeatTimeout 4000000000</screen>
|
---|
3744 |
|
---|
3745 | <para>
|
---|
3746 | If the heartbeat timeout expires, there will be a log message like
|
---|
3747 | <emphasis>VMMDev: HeartBeatCheckTimer: Guest seems to be unresponsive. Last heartbeat
|
---|
3748 | received 5 seconds ago.</emphasis>
|
---|
3749 | If another heartbeat ping arrives after this warning, there will be a log
|
---|
3750 | message like
|
---|
3751 | <emphasis>VMMDev: GuestHeartBeat: Guest is alive.</emphasis>
|
---|
3752 | </para>
|
---|
3753 |
|
---|
3754 | </sect1>
|
---|
3755 |
|
---|
3756 | <sect1 id="diskencryption">
|
---|
3757 | <title>Encryption of disk images</title>
|
---|
3758 |
|
---|
3759 | <para>
|
---|
3760 | Starting with VirtualBox 5.0, it is possible to encrypt the data stored in
|
---|
3761 | hard disk images transparently for the guest. It does not depend on a specific
|
---|
3762 | image format to be used. Images which have the data encrypted are not portable
|
---|
3763 | between VirtualBox and other virtualization software though.
|
---|
3764 | </para>
|
---|
3765 |
|
---|
3766 | <para>
|
---|
3767 | VirtualBox uses the AES algorithm in XTS mode and supports 128 or 256 bit
|
---|
3768 | data encryption keys (DEK).
|
---|
3769 | The DEK is stored encrypted in the medium properties and is decrypted during
|
---|
3770 | VM startup by entering a password which was chosen when the image was encrypted.
|
---|
3771 | </para>
|
---|
3772 |
|
---|
3773 | <sect2 id="diskencryption-limitations">
|
---|
3774 | <title>Limitations</title>
|
---|
3775 |
|
---|
3776 | <para>
|
---|
3777 | There are some limitations the user needs to be aware of when using this
|
---|
3778 | feature:
|
---|
3779 | </para>
|
---|
3780 |
|
---|
3781 | <itemizedlist>
|
---|
3782 |
|
---|
3783 | <listitem>
|
---|
3784 | <para>This feature is currently closed source and requires the VirtualBox extension
|
---|
3785 | pack to be installed to work.</para>
|
---|
3786 | </listitem>
|
---|
3787 |
|
---|
3788 | <listitem>
|
---|
3789 | <para>Since encryption works only on the stored user data,
|
---|
3790 | it is currently not possible to check for metadata integrity of the disk image.
|
---|
3791 | Attackers might take advantage of this to remove or insert blocks of data
|
---|
3792 | into the image or change certain metadata items such as the disk size.</para>
|
---|
3793 | </listitem>
|
---|
3794 |
|
---|
3795 | <listitem>
|
---|
3796 | <para>Exporting appliances which contain encrypted disk images is not
|
---|
3797 | possible because the OVF specification doesn't support this.
|
---|
3798 | All images are therefore decrypted during export.</para>
|
---|
3799 | </listitem>
|
---|
3800 |
|
---|
3801 | <listitem>
|
---|
3802 | <para>The DEK is kept in memory while the VM is running to be able to
|
---|
3803 | decrypt data read and encrypt data written by the guest. While this should
|
---|
3804 | be obvious the user needs to be aware of this because an attacker might be able
|
---|
3805 | to extract the key on a compromised host and get access to the data later.</para>
|
---|
3806 | </listitem>
|
---|
3807 |
|
---|
3808 | <listitem>
|
---|
3809 | <para>When encrypting or decrypting the images, the password is passed unencrypted
|
---|
3810 | via the Main API from the frontend to VBoxSVC. This needs to be kept in mind,
|
---|
3811 | especially when using third party frontends which make use of the webservice
|
---|
3812 | where the password might be transmitted unencrypted over the network.</para>
|
---|
3813 | </listitem>
|
---|
3814 |
|
---|
3815 | <listitem>
|
---|
3816 | <para>Encrypting images with differencing images is only possible if there
|
---|
3817 | are no branches. This limitation may be addressed in a future
|
---|
3818 | VirtualBox version.</para>
|
---|
3819 | </listitem>
|
---|
3820 |
|
---|
3821 | </itemizedlist>
|
---|
3822 |
|
---|
3823 | </sect2>
|
---|
3824 |
|
---|
3825 | <sect2 id="diskencryption-encryption">
|
---|
3826 | <title>Encrypting disk images</title>
|
---|
3827 |
|
---|
3828 | <para>
|
---|
3829 | Encrypting disk images can be done either using the GUI or VBoxManage.
|
---|
3830 | While the GUI is easier to use, it works on a per VM basis and encrypts
|
---|
3831 | all disk images attached to the specific VM.
|
---|
3832 | With VBoxManage one can encrypt individual images (including all differencing
|
---|
3833 | images). To encrypt an unencrypted medium with VBoxManage, use:
|
---|
3834 | </para>
|
---|
3835 |
|
---|
3836 | <screen>VBoxManage encryptmedium "uuid|filename" --newpassword "file|-" --cipher "cipher id" --newpasswordid "id"</screen>
|
---|
3837 |
|
---|
3838 | <para>
|
---|
3839 | To supply the encryption password point VBoxManage to the file where the
|
---|
3840 | password is stored or specify <computeroutput>-</computeroutput> to let VBoxManage
|
---|
3841 | ask you for the password on the command line.
|
---|
3842 | </para>
|
---|
3843 | <para>
|
---|
3844 | The cipher parameter specifies the cipher to use for encryption and can be either
|
---|
3845 | <computeroutput>AES-XTS128-PLAIN64</computeroutput> or <computeroutput>AES-XTS256-PLAIN64</computeroutput>.
|
---|
3846 | The specified password identifier can be freely chosen by the user and is
|
---|
3847 | used for correct identification when supplying multiple passwords during
|
---|
3848 | VM startup.
|
---|
3849 | </para>
|
---|
3850 | <para>
|
---|
3851 | If the user uses the same password when encrypting multiple images and also the
|
---|
3852 | same password identifier, the user needs to supply the password only once during
|
---|
3853 | VM startup.
|
---|
3854 | </para>
|
---|
3855 | </sect2>
|
---|
3856 |
|
---|
3857 | <sect2 id="diskencryption-startvm">
|
---|
3858 | <title>Starting a VM with encrypted images</title>
|
---|
3859 |
|
---|
3860 | <para>
|
---|
3861 | When a VM is started using the GUI, a dialog will open where the user
|
---|
3862 | needs to enter all passwords for all encrypted images attached to the VM.
|
---|
3863 | If another frontend like VBoxHeadless is used, the VM will be paused as soon
|
---|
3864 | as the guest tries to access an encrypted disk.
|
---|
3865 | The user needs to provide the passwords through VBoxManage using the following
|
---|
3866 | command:
|
---|
3867 | </para>
|
---|
3868 |
|
---|
3869 | <screen>VBoxManage controlvm "uuid|vmname" addencpassword "id" "password" [--removeonsuspend "yes|no"]</screen>
|
---|
3870 |
|
---|
3871 | <para>
|
---|
3872 | The <computeroutput>id</computeroutput> parameter must be the same as the password identifier
|
---|
3873 | supplied when encrypting the images. <computeroutput>password</computeroutput> is the password
|
---|
3874 | used when encrypting the images. The user can optionally specify
|
---|
3875 | <computeroutput>--removeonsuspend "yes|no"</computeroutput> to specify whether
|
---|
3876 | to remove the password from VM memory when the VM is suspended. Before the VM can be
|
---|
3877 | resumed, the user needs to supply the passwords again. This is useful when
|
---|
3878 | a VM is suspended by a host suspend event and the user doesn't want
|
---|
3879 | the password to remain in memory.
|
---|
3880 | </para>
|
---|
3881 | </sect2>
|
---|
3882 |
|
---|
3883 | <sect2 id="diskencryption-decryption">
|
---|
3884 | <title>Decrypting encrypted images</title>
|
---|
3885 |
|
---|
3886 | <para>
|
---|
3887 | In some circumstances it might be required to decrypt previously encrypted
|
---|
3888 | images. This can be done in the GUI for a complete VM or using VBoxManage
|
---|
3889 | with the following command:
|
---|
3890 | </para>
|
---|
3891 |
|
---|
3892 | <screen>VBoxManage encryptmedium "uuid|filename" --oldpassword "file|-"</screen>
|
---|
3893 |
|
---|
3894 | <para>
|
---|
3895 | The only required parameter is the password the image was encrypted with.
|
---|
3896 | The options are the same as for encrypting images.
|
---|
3897 | </para>
|
---|
3898 | </sect2>
|
---|
3899 | </sect1>
|
---|
3900 |
|
---|
3901 | </chapter>
|
---|