user_AdvancedTopics.xml revision 9ef65a89f35c127b959283ea0e2421a6f957de10
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync<?xml version="1.0" encoding="UTF-8"?>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
051203e46846205a982bcf5ab198a8b5f6f8e6e0vboxsync"http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd">
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync<chapter id="AdvancedTopics">
71ca11d26aa3d715423a305b1c25582f0a5f4f7fvboxsync <title>Advanced topics</title>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <sect1 id="vboxsdl">
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <title>VBoxSDL, the simplified VM displayer</title>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <sect2>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <title>Introduction</title>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <para>VBoxSDL is a simple graphical user interface (GUI) that lacks the
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync nice point-and-click support which VirtualBox, our main GUI, provides.
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync VBoxSDL is currently primarily used internally for debugging VirtualBox
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync and therefore not officially supported. Still, you may find it useful
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync for environments where the virtual machines are not necessarily
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync controlled by the same person that uses the virtual machine.<note>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <para>VBoxSDL is not available on the Mac OS X host platform.</para>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync </note></para>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <para>As you can see in the following screenshot, VBoxSDL does indeed
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync only provide a simple window that contains only the "pure" virtual
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync machine, without menus or other controls to click upon and no additional
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync indicators of virtual machine activity:</para>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <para><mediaobject>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <imageobject>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <imagedata align="center" fileref="images/vbox-sdl.png"
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync width="10cm" />
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync </imageobject>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync </mediaobject></para>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <para>To start a virtual machine with VBoxSDL instead of the VirtualBox
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync GUI, enter the following on a command line:<screen>VBoxSDL --startvm &lt;vm&gt;</screen></para>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <para>where <computeroutput>&lt;vm&gt;</computeroutput> is, as usual
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync with VirtualBox command line parameters, the name or UUID of an existing
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync virtual machine.</para>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync </sect2>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <sect2>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <title>Secure labeling with VBoxSDL</title>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
6160306df39548f807965d1b3e6953ca2ce92847vboxsync <para>When running guest operating systems in full screen mode, the guest
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync operating system usually has control over the whole screen. This could
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync present a security risk as the guest operating system might fool the
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync user into thinking that it is either a different system (which might
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync have a higher security level) or it might present messages on the screen
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync that appear to stem from the host operating system.</para>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <para>In order to protect the user against the above mentioned security
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync risks, the secure labeling feature has been developed. Secure labeling
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync is currently available only for VBoxSDL. When enabled, a portion of the
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync display area is reserved for a label in which a user defined message is
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync displayed. The label height in set to 20 pixels in VBoxSDL. The label
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync font color and background color can be optionally set as hexadecimal RGB
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync color values. The following syntax is used to enable secure
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync labeling:</para>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <screen>VBoxSDL --startvm "VM name"
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync --securelabel --seclabelfnt ~/fonts/arial.ttf
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync --seclabelsiz 14 --seclabelfgcol 00FF00 --seclabelbgcol 00FFFF</screen>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <para>In addition to enabling secure labeling, a TrueType font has to be
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync supplied. To use another font size than 12 point use the parameter
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <computeroutput>--seclabelsiz</computeroutput>.</para>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <para>The label text can be set with <screen>VBoxManage setextradata "VM name" "VBoxSDL/SecureLabel" "The Label"</screen>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync Changing this label will take effect immediately.</para>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <para>Typically, full screen resolutions are limited to certain
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync "standard" geometries such as 1024 x 768. Increasing this by twenty
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync lines is not usually feasible, so in most cases, VBoxSDL will chose the
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync next higher resolution, e.g. 1280 x 1024 and the guest's screen will not
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync cover the whole display surface. If VBoxSDL is unable to choose a higher
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync resolution, the secure label will be painted on top of the guest's
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync screen surface. In order to address the problem of the bottom part of
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync the guest screen being hidden, VBoxSDL can provide custom video modes to
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync the guest that are reduced by the height of the label. For Windows
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync guests and recent Solaris and Linux guests, the VirtualBox Guest
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync Additions automatically provide the reduced video modes. Additionally,
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync the VESA BIOS has been adjusted to duplicate its standard mode table
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync with adjusted resolutions. The adjusted mode IDs can be calculated using
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync the following formula:</para>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <screen>reduced_modeid = modeid + 0x30</screen>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <para>For example, in order to start Linux with 1024 x 748 x 16, the
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync standard mode 0x117 (1024 x 768 x 16) is used as a base. The Linux video
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync mode kernel parameter can then be calculated using:</para>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <screen>vga = 0x200 | 0x117 + 0x30
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsyncvga = 839</screen>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <para>The reason for duplicating the standard modes instead of only
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync supplying the adjusted modes is that most guest operating systems
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync require the standard VESA modes to be fixed and refuse to start with
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync different modes.</para>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <para>When using the X.org VESA driver, custom modelines have to be
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync calculated and added to the configuration (usually in
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <literal>/etc/X11/xorg.conf</literal>. A handy tool to determine
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync modeline entries can be found at <literal><ulink
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync url="http://www.tkk.fi/Misc/Electronics/faq/vga2rgb/calc.html">http://www.tkk.fi/Misc/Electronics/faq/vga2rgb/calc.html</ulink></literal>.)</para>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync </sect2>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <sect2>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <title>Releasing modifiers with VBoxSDL on Linux</title>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <para>When switching from a X virtual terminal (VT) to another VT using
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync Ctrl-Alt-Fx while the VBoxSDL window has the input focus, the guest will
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync receive Ctrl and Alt keypress events without receiving the corresponding
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync key release events. This is an architectural limitation of Linux. In
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync order to reset the modifier keys, it is possible to send
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <computeroutput>SIGUSR1</computeroutput> to the VBoxSDL main thread
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync (first entry in the <computeroutput>ps</computeroutput> list). For
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync example, when switching away to another VT and saving the virtual
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync machine from this terminal, the following sequence can be used to make
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync sure the VM is not saved with stuck modifiers:</para>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <para><screen>kill -usr1 &lt;pid&gt;
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsyncVBoxManage controlvm "Windows 2000" savestate</screen></para>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync </sect2>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync </sect1>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
dd1de51db071be42f2acdf532c49c851b78b0812vboxsync <sect1 id="autologon">
dd1de51db071be42f2acdf532c49c851b78b0812vboxsync <title>Automated guest logons</title>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <para>VirtualBox provides Guest Addition modules for Windows, Linux and
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync Solaris to enable automated logons on the guest.</para>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <para>When a guest operating system is running in a virtual machine, it
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync might be desirable to perform coordinated and automated logons using
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync credentials from a master logon system. (With "credentials", we are
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync referring to logon information consisting of user name, password and
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync domain name, where each value might be empty.)</para>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <sect2 id="autologon_win">
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <title>Automated Windows guest logons</title>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <para>Since Windows NT, Windows has provided a modular system logon
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync subsystem ("Winlogon") which can be customized and extended by means of
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync so-called GINA modules (Graphical Identification and Authentication).
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync With Windows Vista and Windows 7, the GINA modules were replaced with a
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync new mechanism called "credential providers". The VirtualBox Guest
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync Additions for Windows come with both, a GINA and a credential provider
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync module, and therefore enable any Windows guest to perform automated
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync logons.</para>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <para>To activate the VirtualBox GINA or credential provider module,
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync install the Guest Additions with using the command line switch
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <computeroutput>/with_autologon</computeroutput>. All the following
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync manual steps required for installing these modules will be then done by
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync the installer.</para>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <para>To manually install the VirtualBox GINA module, extract the Guest
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync Additions (see <xref linkend="windows-guest-file-extraction" />) and
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync copy the file <computeroutput>VBoxGINA.dll</computeroutput> to the
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync Windows <computeroutput>SYSTEM32</computeroutput> directory. Then, in
051203e46846205a982bcf5ab198a8b5f6f8e6e0vboxsync the registry, create the following key: <screen>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\GinaDLL</screen>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync with a value of <computeroutput>VBoxGINA.dll</computeroutput>.</para>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
e39cffdec314db08b1b3405c4ccd56728eaaa76avboxsync <note>
e39cffdec314db08b1b3405c4ccd56728eaaa76avboxsync <para>The VirtualBox GINA module is implemented as a wrapper around
e39cffdec314db08b1b3405c4ccd56728eaaa76avboxsync the standard Windows GINA module
e39cffdec314db08b1b3405c4ccd56728eaaa76avboxsync (<computeroutput>MSGINA.DLL</computeroutput>). As a result, it will
e39cffdec314db08b1b3405c4ccd56728eaaa76avboxsync most likely not work correctly with 3rd party GINA modules.</para>
e39cffdec314db08b1b3405c4ccd56728eaaa76avboxsync </note>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync <para>To manually install the VirtualBox credential provider module,
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync extract the Guest Additions (see <xref
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync linkend="windows-guest-file-extraction" />) and copy the file
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync <computeroutput>VBoxCredProv.dll</computeroutput> to the Windows
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync <computeroutput>SYSTEM32</computeroutput> directory. Then, in the
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync registry, create the following keys:<screen>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync Authentication\Credential Providers\{275D3BCC-22BB-4948-A7F6-3A3054EBA92B}
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
304f31a2a37f5d690086bff2fb4a59228b4dbd40vboxsyncHKEY_CLASSES_ROOT\CLSID\{275D3BCC-22BB-4948-A7F6-3A3054EBA92B}
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
304f31a2a37f5d690086bff2fb4a59228b4dbd40vboxsyncHKEY_CLASSES_ROOT\CLSID\{275D3BCC-22BB-4948-A7F6-3A3054EBA92B}\InprocServer32</screen></para>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <para>with all default values (the key named
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <computeroutput>(Default)</computeroutput> in each key) set to
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <computeroutput>VBoxCredProv</computeroutput>. After that a new string
051203e46846205a982bcf5ab198a8b5f6f8e6e0vboxsync named <screen>HKEY_CLASSES_ROOT\CLSID\{275D3BCC-22BB-4948-A7F6-3A3054EBA92B}\InprocServer32\ThreadingModel</screen>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync with a value of <computeroutput>Apartment</computeroutput> has to be
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync created.</para>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <para>To set credentials, use the following command on a
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <emphasis>running</emphasis> VM:</para>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
dbabcd810984fc0731edff08eb281f0907dc867avboxsync <screen>VBoxManage controlvm "Windows XP" setcredentials "John Doe" "secretpassword" "DOMTEST"</screen>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <para>While the VM is running, the credentials can be queried by the
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync VirtualBox logon modules (GINA or credential provider) using the
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync VirtualBox Guest Additions device driver. When Windows is in "logged
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync out" mode, the logon modules will constantly poll for credentials and if
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync they are present, a logon will be attempted. After retrieving the
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync credentials, the logon modules will erase them so that the above command
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync will have to be repeated for subsequent logons.</para>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <para>For security reasons, credentials are not stored in any persistent
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync manner and will be lost when the VM is reset. Also, the credentials are
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync "write-only", i.e. there is no way to retrieve the credentials from the
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync host side. Credentials can be reset from the host side by setting empty
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync values.</para>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <para>Depending on the particular variant of the Windows guest, the
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync following restrictions apply: <orderedlist>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <listitem>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <para>For <emphasis role="bold">Windows XP guests,</emphasis> the
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync logon subsystem needs to be configured to use the classic logon
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync dialog as the VirtualBox GINA module does not support the XP-style
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync welcome dialog.</para>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync </listitem>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <listitem>
bf721ef38b15c00c9bbfcedb11dbc61f8bd71816vboxsync <para>For <emphasis role="bold">Windows Vista, Windows 7
061168b301e15895799842f766644c211b8701c9vboxsync and Windows 8 guests,</emphasis> the logon subsystem does not support
bf721ef38b15c00c9bbfcedb11dbc61f8bd71816vboxsync the so-called Secure Attention Sequence
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync (<computeroutput>CTRL+ALT+DEL</computeroutput>). As a result, the
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync guest's group policy settings need to be changed to not use the
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync Secure Attention Sequence. Also, the user name given is only
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync compared to the true user name, not the user friendly name. This
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync means that when you rename a user, you still have to supply the
051203e46846205a982bcf5ab198a8b5f6f8e6e0vboxsync original user name (internally, Windows never renames user
051203e46846205a982bcf5ab198a8b5f6f8e6e0vboxsync accounts).</para>
f2cb8c82257cb6af3622059e397d46af7c774b63vboxsync </listitem>
f2cb8c82257cb6af3622059e397d46af7c774b63vboxsync
f2cb8c82257cb6af3622059e397d46af7c774b63vboxsync <listitem>
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync <para>Auto-logon handling of the built-in Windows Remote Desktop
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync Service (formerly known as Terminal Services) is disabled by
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync default. To enable it, create the registry key <screen>HKEY_LOCAL_MACHINE\SOFTWARE\Oracle\VirtualBox Guest Additions\AutoLogon</screen>
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync with a <computeroutput>DWORD</computeroutput> value of
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync <computeroutput>1</computeroutput>.</para>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync </listitem>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync </orderedlist></para>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <para>The following command forces VirtualBox to keep the credentials
051203e46846205a982bcf5ab198a8b5f6f8e6e0vboxsync 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
051203e46846205a982bcf5ab198a8b5f6f8e6e0vboxsync that this is a potential security risk as a malicious application
051203e46846205a982bcf5ab198a8b5f6f8e6e0vboxsync running on the guest could request this information using the proper
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync interface.</para>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync </sect2>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <sect2 id="autologon_unix">
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <title>Automated Linux/Unix guest logons</title>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <para>Starting with version 3.2, VirtualBox provides a custom PAM module
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync (Pluggable Authentication Module) which can be used to perform automated
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync guest logons on platforms which support this framework. Virtually all
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync modern Linux/Unix distributions rely on PAM.</para>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
d365a9a356e68215d7111b8f676fa04db1b88c1fvboxsync <para>For automated logons on Ubuntu (or Ubuntu-derived) distributions
d365a9a356e68215d7111b8f676fa04db1b88c1fvboxsync using LightDM as the display manager, please see
d365a9a356e68215d7111b8f676fa04db1b88c1fvboxsync <xref linkend="autologon_unix_lightdm" />.</para>
d365a9a356e68215d7111b8f676fa04db1b88c1fvboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <para>The <computeroutput>pam_vbox.so</computeroutput> module itself
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <emphasis role="bold">does not</emphasis> do an actual verification of
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync the credentials passed to the guest OS; instead it relies on other
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync modules such as <computeroutput>pam_unix.so</computeroutput> or
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <computeroutput>pam_unix2.so</computeroutput> down in the PAM stack to
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync do the actual validation using the credentials retrieved by
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <computeroutput>pam_vbox.so</computeroutput>. Therefore
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <computeroutput>pam_vbox.so</computeroutput> has to be on top of the
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync authentication PAM service list.</para>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <note>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <para>The <computeroutput>pam_vbox.so</computeroutput> only supports
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync the <computeroutput>auth</computeroutput> primitive. Other primitives
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync such as <computeroutput>account</computeroutput>,
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <computeroutput>session</computeroutput> or
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <computeroutput>password</computeroutput> are not supported.</para>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync </note>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <para>The <computeroutput>pam_vbox.so</computeroutput> module is shipped
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync as part of the Guest Additions but it is not installed and/or activated
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync on the guest OS by default. In order to install it, it has to be copied
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync from
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <computeroutput>/opt/VBoxGuestAdditions-&lt;version&gt;/lib/VBoxGuestAdditions/</computeroutput>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync to the security modules directory, usually
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync <computeroutput>/lib/security/</computeroutput> on 32-bit guest Linuxes
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync or <computeroutput>/lib64/security/</computeroutput> on 64-bit ones.
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync Please refer to your guest OS documentation for the correct PAM module
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync directory.</para>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <para>For example, to use <computeroutput>pam_vbox.so</computeroutput>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync with a Ubuntu Linux guest OS and GDM (the GNOME Desktop Manager) to
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync logon users automatically with the credentials passed by the host, the
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync guest OS has to be configured like the following:</para>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <orderedlist>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <listitem>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <para>The <computeroutput>pam_vbox.so</computeroutput> module has to
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync be copied to the security modules directory, in this case it is
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <computeroutput>/lib/security</computeroutput>.</para>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync </listitem>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <listitem>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <para>Edit the PAM configuration file for GDM found at
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <computeroutput>/etc/pam.d/gdm</computeroutput>, adding the line
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <computeroutput>auth requisite pam_vbox.so</computeroutput> at the
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync top. Additionaly, in most Linux distributions there is a file called
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <computeroutput>/etc/pam.d/common-auth</computeroutput>. This file
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync is included in many other services (like the GDM file mentioned
2c38b10f3657b32c27c489ef9aede24003a64fa5vboxsync above). There you also have to add the line <computeroutput>auth
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync requisite pam_vbox.so</computeroutput>.</para>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync </listitem>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <listitem>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <para>If authentication against the shadow database using
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <computeroutput>pam_unix.so</computeroutput> or
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <computeroutput>pam_unix2.so</computeroutput> is desired, the
e72d867f5d519d040e3e8a7f842e42bdc5120c5bvboxsync argument <computeroutput>try_first_pass</computeroutput> for
e72d867f5d519d040e3e8a7f842e42bdc5120c5bvboxsync <computeroutput>pam_unix.so</computeroutput> or
e72d867f5d519d040e3e8a7f842e42bdc5120c5bvboxsync <computeroutput>use_first_pass</computeroutput> for
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync <computeroutput>pam_unix2.so</computeroutput> is needed in order to
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync pass the credentials from the VirtualBox module to the shadow
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync database authentication module. For Ubuntu, this needs to be added
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync to <computeroutput>/etc/pam.d/common-auth</computeroutput>, to the
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync end of the line referencing
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <computeroutput>pam_unix.so</computeroutput>. This argument tells
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync the PAM module to use credentials already present in the stack, i.e.
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync the ones provided by the VirtualBox PAM module.</para>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync </listitem>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync </orderedlist>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <para><warning>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <para>An incorrectly configured PAM stack can effectively prevent
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync you from logging into your guest system!</para>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync </warning></para>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <para>To make deployment easier, you can pass the argument
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <computeroutput>debug</computeroutput> right after the
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <computeroutput>pam_vbox.so</computeroutput> statement. Debug log output
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync will then be recorded using syslog.</para>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
e579762795d321fd9390ae09c881e35c8107506fvboxsync <para><note>
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync <para>By default, pam_vbox will not wait for credentials to arrive
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync from the host, in other words: When a login prompt is shown (for
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync example by GDM/KDM or the text console) and pam_vbox does not yet
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync have credentials it does not wait until they arrive. Instead the
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync next module in the PAM stack (depending on the PAM configuration)
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync will have the chance for authentication.</para>
e579762795d321fd9390ae09c881e35c8107506fvboxsync </note></para>
e579762795d321fd9390ae09c881e35c8107506fvboxsync
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync <para>Starting with VirtualBox 4.1.4 pam_vbox supports various guest
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync property parameters which all reside in
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync <computeroutput>/VirtualBox/GuestAdd/PAM/</computeroutput>. These
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync parameters allow pam_vbox to wait for credentials to be provided by the
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync host and optionally can show a message while waiting for those. The
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync following guest properties can be set:</para>
e579762795d321fd9390ae09c881e35c8107506fvboxsync
e579762795d321fd9390ae09c881e35c8107506fvboxsync <orderedlist>
e579762795d321fd9390ae09c881e35c8107506fvboxsync <listitem>
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync <para><computeroutput>CredsWait</computeroutput>: Set to "1" if
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync pam_vbox should start waiting until credentials arrive from the
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync host. Until then no other authentication methods such as manually
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync logging in will be available. If this property is empty or get
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync deleted no waiting for credentials will be performed and pam_vbox
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync will act like before (see paragraph above). This property must be
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync set read-only for the guest
e579762795d321fd9390ae09c881e35c8107506fvboxsync (<computeroutput>RDONLYGUEST</computeroutput>).</para>
e579762795d321fd9390ae09c881e35c8107506fvboxsync </listitem>
e579762795d321fd9390ae09c881e35c8107506fvboxsync
e579762795d321fd9390ae09c881e35c8107506fvboxsync <listitem>
75d67a5757951aa64bf3887a70db379e1feb84aavboxsync <para><computeroutput>CredsWaitAbort</computeroutput>: Aborts waiting
75d67a5757951aa64bf3887a70db379e1feb84aavboxsync for credentials when set to any value. Can be set from host and the
75d67a5757951aa64bf3887a70db379e1feb84aavboxsync guest.</para>
e579762795d321fd9390ae09c881e35c8107506fvboxsync </listitem>
e579762795d321fd9390ae09c881e35c8107506fvboxsync
e579762795d321fd9390ae09c881e35c8107506fvboxsync <listitem>
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync <para><computeroutput>CredsWaitTimeout</computeroutput>: Timeout (in
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync seconds) to let pam_vbox wait for credentials to arrive. When no
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync credentials arrive within this timeout, authentication of pam_vbox
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync will be set to failed and the next PAM module in chain will be
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync asked. If this property is not specified, set to "0" or an invalid
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync value, an infinite timeout will be used. This property must be set
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync read-only for the guest
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync (<computeroutput>RDONLYGUEST</computeroutput>).</para>
e579762795d321fd9390ae09c881e35c8107506fvboxsync </listitem>
e579762795d321fd9390ae09c881e35c8107506fvboxsync </orderedlist>
e579762795d321fd9390ae09c881e35c8107506fvboxsync
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync <para>To customize pam_vbox further there are the following guest
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync properties:</para>
e579762795d321fd9390ae09c881e35c8107506fvboxsync
e579762795d321fd9390ae09c881e35c8107506fvboxsync <orderedlist>
e579762795d321fd9390ae09c881e35c8107506fvboxsync <listitem>
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync <para><computeroutput>CredsMsgWaiting</computeroutput>: Custom
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync message showed while pam_vbox is waiting for credentials from the
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync host. This property must be set read-only for the guest
e579762795d321fd9390ae09c881e35c8107506fvboxsync (<computeroutput>RDONLYGUEST</computeroutput>).</para>
e579762795d321fd9390ae09c881e35c8107506fvboxsync </listitem>
e579762795d321fd9390ae09c881e35c8107506fvboxsync
e579762795d321fd9390ae09c881e35c8107506fvboxsync <listitem>
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync <para><computeroutput>CredsMsgWaitTimeout</computeroutput>: Custom
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync message showed when waiting for credentials by pam_vbox timed out,
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync e.g. did not arrive within time. This property must be set read-only
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync for the guest (<computeroutput>RDONLYGUEST</computeroutput>).</para>
e579762795d321fd9390ae09c881e35c8107506fvboxsync </listitem>
e579762795d321fd9390ae09c881e35c8107506fvboxsync </orderedlist>
e579762795d321fd9390ae09c881e35c8107506fvboxsync
e579762795d321fd9390ae09c881e35c8107506fvboxsync <para><note>
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync <para>If a pam_vbox guest property does not have set the right flags
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync (<computeroutput>RDONLYGUEST</computeroutput>) this property will be
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync ignored then and - depending on the property - a default value will
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync be set. This can result in pam_vbox not waiting for credentials.
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync Consult the appropriate syslog file for more information and use the
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync <computeroutput>debug</computeroutput> option.</para>
e579762795d321fd9390ae09c881e35c8107506fvboxsync </note></para>
d365a9a356e68215d7111b8f676fa04db1b88c1fvboxsync
d365a9a356e68215d7111b8f676fa04db1b88c1fvboxsync <sect3 id="autologon_unix_lightdm">
d365a9a356e68215d7111b8f676fa04db1b88c1fvboxsync <title>VirtualBox Greeter for Ubuntu / LightDM</title>
d365a9a356e68215d7111b8f676fa04db1b88c1fvboxsync
061168b301e15895799842f766644c211b8701c9vboxsync <para>Starting with version 4.2.12, VirtualBox comes with an own greeter
d365a9a356e68215d7111b8f676fa04db1b88c1fvboxsync module named vbox-greeter which can be used with LightDM 1.0.1 or later.
d365a9a356e68215d7111b8f676fa04db1b88c1fvboxsync LightDM is the default display manager since Ubuntu 10.11 and therefore
d365a9a356e68215d7111b8f676fa04db1b88c1fvboxsync also can be used for automated guest logons.</para>
d365a9a356e68215d7111b8f676fa04db1b88c1fvboxsync
d365a9a356e68215d7111b8f676fa04db1b88c1fvboxsync <para>vbox-greeter does not need the pam_vbox module described above
d365a9a356e68215d7111b8f676fa04db1b88c1fvboxsync in order to function -- it comes with its own authentication mechanism
d365a9a356e68215d7111b8f676fa04db1b88c1fvboxsync provided by LightDM. However, to provide maximum of flexibility both
d365a9a356e68215d7111b8f676fa04db1b88c1fvboxsync modules can be used together on the same guest.</para>
d365a9a356e68215d7111b8f676fa04db1b88c1fvboxsync
d365a9a356e68215d7111b8f676fa04db1b88c1fvboxsync <para>As for the pam_vbox module, vbox-greeter is shipped as part of
d365a9a356e68215d7111b8f676fa04db1b88c1fvboxsync the Guest Additions but it is not installed and/or activated on the
d365a9a356e68215d7111b8f676fa04db1b88c1fvboxsync guest OS by default For installing vbox-greeter automatically upon
061168b301e15895799842f766644c211b8701c9vboxsync Guest Additions installation, use the
d365a9a356e68215d7111b8f676fa04db1b88c1fvboxsync <computeroutput>--with-autologon</computeroutput> switch when starting
7cd58c15468048a6bd897f5ca3f07a5396fd2aa7vboxsync the VBoxLinuxAdditions.run file:</para><screen># /VBoxLinuxAdditions.run -- --with-autologon</screen>
d365a9a356e68215d7111b8f676fa04db1b88c1fvboxsync
d365a9a356e68215d7111b8f676fa04db1b88c1fvboxsync <para>For manual or postponed installation, the
d365a9a356e68215d7111b8f676fa04db1b88c1fvboxsync <computeroutput>vbox-greeter.desktop</computeroutput>
d365a9a356e68215d7111b8f676fa04db1b88c1fvboxsync file has to be copied from
d365a9a356e68215d7111b8f676fa04db1b88c1fvboxsync <computeroutput>/opt/VBoxGuestAdditions-&lt;version&gt;/shared/VBoxGuestAdditions/</computeroutput>
d365a9a356e68215d7111b8f676fa04db1b88c1fvboxsync to the <computeroutput>xgreeters</computeroutput> directory, usually
d365a9a356e68215d7111b8f676fa04db1b88c1fvboxsync <computeroutput>/usr/share/xgreeters/</computeroutput>.
d365a9a356e68215d7111b8f676fa04db1b88c1fvboxsync Please refer to your guest OS documentation for the correct LightDM
d365a9a356e68215d7111b8f676fa04db1b88c1fvboxsync greeter directory.</para>
d365a9a356e68215d7111b8f676fa04db1b88c1fvboxsync
d365a9a356e68215d7111b8f676fa04db1b88c1fvboxsync <para>The vbox-greeter module itself already was installed by the
d365a9a356e68215d7111b8f676fa04db1b88c1fvboxsync VirtualBox Guest Additions installer and resides in
d365a9a356e68215d7111b8f676fa04db1b88c1fvboxsync <computeroutput>/usr/sbin/</computeroutput>. To enable vbox-greeter as
d365a9a356e68215d7111b8f676fa04db1b88c1fvboxsync the standard greeter module, the file
d365a9a356e68215d7111b8f676fa04db1b88c1fvboxsync <computeroutput>/etc/lightdm/lightdm.conf</computeroutput> needs to be
d365a9a356e68215d7111b8f676fa04db1b88c1fvboxsync edited:</para>
d365a9a356e68215d7111b8f676fa04db1b88c1fvboxsync
7cd58c15468048a6bd897f5ca3f07a5396fd2aa7vboxsync <para><screen>[SeatDefaults]
7cd58c15468048a6bd897f5ca3f07a5396fd2aa7vboxsyncgreeter-session=vbox-greeter</screen></para>
d365a9a356e68215d7111b8f676fa04db1b88c1fvboxsync
d365a9a356e68215d7111b8f676fa04db1b88c1fvboxsync <note><para>The LightDM server needs to be fully restarted in order to
d365a9a356e68215d7111b8f676fa04db1b88c1fvboxsync get vbox-greeter used as the default greeter. As root, do a
d365a9a356e68215d7111b8f676fa04db1b88c1fvboxsync <computeroutput>service lightdm --full-restart</computeroutput> on
d365a9a356e68215d7111b8f676fa04db1b88c1fvboxsync Ubuntu, or simply restart the guest.</para></note>
d365a9a356e68215d7111b8f676fa04db1b88c1fvboxsync
d365a9a356e68215d7111b8f676fa04db1b88c1fvboxsync <note><para>vbox-greeter is independent of the graphical session chosen
38e134c57e4174d882b56ac7b10e76ae5f6c412bvboxsync by the user (like Gnome, KDE, Unity etc). However, it requires FLTK 1.3
061168b301e15895799842f766644c211b8701c9vboxsync for representing its own user interface.</para></note>
d365a9a356e68215d7111b8f676fa04db1b88c1fvboxsync
061168b301e15895799842f766644c211b8701c9vboxsync <para>There are numerous guest properties which can be used to further
061168b301e15895799842f766644c211b8701c9vboxsync customize the login experience. For automatically logging in users, the
061168b301e15895799842f766644c211b8701c9vboxsync same guest properties apply as for pam_vbox, see
061168b301e15895799842f766644c211b8701c9vboxsync <xref linkend="autologon_unix" />.</para>
061168b301e15895799842f766644c211b8701c9vboxsync
061168b301e15895799842f766644c211b8701c9vboxsync <para>In addition to the above mentioned guest properties, vbox-greeter
061168b301e15895799842f766644c211b8701c9vboxsync allows further customization of its user interface. These special guest
061168b301e15895799842f766644c211b8701c9vboxsync properties all reside in
d365a9a356e68215d7111b8f676fa04db1b88c1fvboxsync <computeroutput>/VirtualBox/GuestAdd/Greeter/</computeroutput>:</para>
d365a9a356e68215d7111b8f676fa04db1b88c1fvboxsync
d365a9a356e68215d7111b8f676fa04db1b88c1fvboxsync <orderedlist>
d365a9a356e68215d7111b8f676fa04db1b88c1fvboxsync <listitem>
d365a9a356e68215d7111b8f676fa04db1b88c1fvboxsync <para><computeroutput>HideRestart</computeroutput>: Set to "1" if
d365a9a356e68215d7111b8f676fa04db1b88c1fvboxsync vbox-greeter should hide the button to restart the guest. This
d365a9a356e68215d7111b8f676fa04db1b88c1fvboxsync property must be set read-only for the guest
d365a9a356e68215d7111b8f676fa04db1b88c1fvboxsync (<computeroutput>RDONLYGUEST</computeroutput>).</para>
d365a9a356e68215d7111b8f676fa04db1b88c1fvboxsync </listitem>
d365a9a356e68215d7111b8f676fa04db1b88c1fvboxsync
d365a9a356e68215d7111b8f676fa04db1b88c1fvboxsync <listitem>
d365a9a356e68215d7111b8f676fa04db1b88c1fvboxsync <para><computeroutput>HideShutdown</computeroutput>: Set to "1" if
d365a9a356e68215d7111b8f676fa04db1b88c1fvboxsync vbox-greeter should hide the button to shutdown the guest. This
d365a9a356e68215d7111b8f676fa04db1b88c1fvboxsync property must be set read-only for the guest
d365a9a356e68215d7111b8f676fa04db1b88c1fvboxsync (<computeroutput>RDONLYGUEST</computeroutput>).</para>
d365a9a356e68215d7111b8f676fa04db1b88c1fvboxsync </listitem>
d365a9a356e68215d7111b8f676fa04db1b88c1fvboxsync
d365a9a356e68215d7111b8f676fa04db1b88c1fvboxsync <listitem>
d365a9a356e68215d7111b8f676fa04db1b88c1fvboxsync <para><computeroutput>BannerPath</computeroutput>: Path to a .PNG
d365a9a356e68215d7111b8f676fa04db1b88c1fvboxsync file for using it as a banner on the top. The image size must be
d365a9a356e68215d7111b8f676fa04db1b88c1fvboxsync 460 x 90 pixels, any bit depth. This property must be
d365a9a356e68215d7111b8f676fa04db1b88c1fvboxsync set read-only for the guest
d365a9a356e68215d7111b8f676fa04db1b88c1fvboxsync (<computeroutput>RDONLYGUEST</computeroutput>).</para>
d365a9a356e68215d7111b8f676fa04db1b88c1fvboxsync </listitem>
d365a9a356e68215d7111b8f676fa04db1b88c1fvboxsync
d365a9a356e68215d7111b8f676fa04db1b88c1fvboxsync <listitem>
d365a9a356e68215d7111b8f676fa04db1b88c1fvboxsync <para><computeroutput>UseTheming</computeroutput>: Set to "1" for
d365a9a356e68215d7111b8f676fa04db1b88c1fvboxsync turning on the following theming options. This property must be
d365a9a356e68215d7111b8f676fa04db1b88c1fvboxsync set read-only for the guest
d365a9a356e68215d7111b8f676fa04db1b88c1fvboxsync (<computeroutput>RDONLYGUEST</computeroutput>).</para>
d365a9a356e68215d7111b8f676fa04db1b88c1fvboxsync </listitem>
d365a9a356e68215d7111b8f676fa04db1b88c1fvboxsync
d365a9a356e68215d7111b8f676fa04db1b88c1fvboxsync <listitem>
d365a9a356e68215d7111b8f676fa04db1b88c1fvboxsync <para><computeroutput>Theme/BackgroundColor</computeroutput>:
d365a9a356e68215d7111b8f676fa04db1b88c1fvboxsync Hexadecimal RRGGBB color for the background. This property must be
d365a9a356e68215d7111b8f676fa04db1b88c1fvboxsync set read-only for the guest
d365a9a356e68215d7111b8f676fa04db1b88c1fvboxsync (<computeroutput>RDONLYGUEST</computeroutput>).</para>
d365a9a356e68215d7111b8f676fa04db1b88c1fvboxsync </listitem>
d365a9a356e68215d7111b8f676fa04db1b88c1fvboxsync
d365a9a356e68215d7111b8f676fa04db1b88c1fvboxsync <listitem>
d365a9a356e68215d7111b8f676fa04db1b88c1fvboxsync <para><computeroutput>Theme/LogonDialog/HeaderColor</computeroutput>:
d365a9a356e68215d7111b8f676fa04db1b88c1fvboxsync Hexadecimal RRGGBB foreground color for the header text. This
d365a9a356e68215d7111b8f676fa04db1b88c1fvboxsync property must be set read-only for the guest
d365a9a356e68215d7111b8f676fa04db1b88c1fvboxsync (<computeroutput>RDONLYGUEST</computeroutput>).</para>
d365a9a356e68215d7111b8f676fa04db1b88c1fvboxsync </listitem>
d365a9a356e68215d7111b8f676fa04db1b88c1fvboxsync
d365a9a356e68215d7111b8f676fa04db1b88c1fvboxsync <listitem>
d365a9a356e68215d7111b8f676fa04db1b88c1fvboxsync <para><computeroutput>Theme/LogonDialog/BackgroundColor</computeroutput>:
d365a9a356e68215d7111b8f676fa04db1b88c1fvboxsync Hexadecimal RRGGBB color for the logon dialog background. This
d365a9a356e68215d7111b8f676fa04db1b88c1fvboxsync property must be set read-only for the guest
d365a9a356e68215d7111b8f676fa04db1b88c1fvboxsync (<computeroutput>RDONLYGUEST</computeroutput>).</para>
d365a9a356e68215d7111b8f676fa04db1b88c1fvboxsync </listitem>
d365a9a356e68215d7111b8f676fa04db1b88c1fvboxsync
d365a9a356e68215d7111b8f676fa04db1b88c1fvboxsync <listitem>
d365a9a356e68215d7111b8f676fa04db1b88c1fvboxsync <para><computeroutput>Theme/LogonDialog/ButtonColor</computeroutput>:
d365a9a356e68215d7111b8f676fa04db1b88c1fvboxsync Hexadecimal RRGGBB background color for the logon dialog button. This
d365a9a356e68215d7111b8f676fa04db1b88c1fvboxsync property must be set read-only for the guest
d365a9a356e68215d7111b8f676fa04db1b88c1fvboxsync (<computeroutput>RDONLYGUEST</computeroutput>).</para>
d365a9a356e68215d7111b8f676fa04db1b88c1fvboxsync </listitem>
d365a9a356e68215d7111b8f676fa04db1b88c1fvboxsync </orderedlist>
d365a9a356e68215d7111b8f676fa04db1b88c1fvboxsync
d365a9a356e68215d7111b8f676fa04db1b88c1fvboxsync <note><para>The same restrictions for the guest properties above apply
d365a9a356e68215d7111b8f676fa04db1b88c1fvboxsync as for the ones specified in the pam_vbox section.</para></note>
d365a9a356e68215d7111b8f676fa04db1b88c1fvboxsync </sect3>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync </sect2>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync </sect1>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <sect1>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <title>Advanced configuration for Windows guests</title>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <sect2 id="sysprep">
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <title>Automated Windows system preparation</title>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <para>Beginning with Windows NT 4.0, Microsoft offers a "system
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync preparation" tool (in short: Sysprep) to prepare a Windows system for
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync deployment or redistribution. Whereas Windows 2000 and XP ship with
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync Sysprep on the installation medium, the tool also is available for
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync download on the Microsoft web site. In a standard installation of
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync Windows Vista and 7, Sysprep is already included. Sysprep mainly
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync consists of an executable called
051203e46846205a982bcf5ab198a8b5f6f8e6e0vboxsync <computeroutput>sysprep.exe</computeroutput> which is invoked by the
051203e46846205a982bcf5ab198a8b5f6f8e6e0vboxsync user to put the Windows installation into preparation mode.</para>
051203e46846205a982bcf5ab198a8b5f6f8e6e0vboxsync
051203e46846205a982bcf5ab198a8b5f6f8e6e0vboxsync <para>Starting with VirtualBox 3.2.2, the Guest Additions offer a way to
051203e46846205a982bcf5ab198a8b5f6f8e6e0vboxsync launch a system preparation on the guest operating system in an
051203e46846205a982bcf5ab198a8b5f6f8e6e0vboxsync automated way, controlled from the host system. To achieve that, see
051203e46846205a982bcf5ab198a8b5f6f8e6e0vboxsync <xref linkend="guestadd-guestcontrol" /> for using the feature with the
051203e46846205a982bcf5ab198a8b5f6f8e6e0vboxsync special identifier <computeroutput>sysprep</computeroutput> as the
051203e46846205a982bcf5ab198a8b5f6f8e6e0vboxsync program to execute, along with the user name
051203e46846205a982bcf5ab198a8b5f6f8e6e0vboxsync <computeroutput>sysprep</computeroutput> and password
051203e46846205a982bcf5ab198a8b5f6f8e6e0vboxsync <computeroutput>sysprep</computeroutput> for the credentials. Sysprep
051203e46846205a982bcf5ab198a8b5f6f8e6e0vboxsync then gets launched with the required system rights.</para>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <note>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <para>Specifying the location of "sysprep.exe" is <emphasis
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync role="bold">not possible</emphasis> -- instead the following paths are
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync used (based on the operating system): <itemizedlist>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <listitem>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <para><computeroutput>C:\sysprep\sysprep.exe</computeroutput>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync for Windows NT 4.0, 2000 and XP</para>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync </listitem>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <listitem>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <para><computeroutput>%WINDIR%\System32\Sysprep\sysprep.exe</computeroutput>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync for Windows Vista, 2008 Server and 7</para>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync </listitem>
051203e46846205a982bcf5ab198a8b5f6f8e6e0vboxsync </itemizedlist> The Guest Additions will automatically use the
051203e46846205a982bcf5ab198a8b5f6f8e6e0vboxsync appropriate path to execute the system preparation tool.</para>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync </note>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync </sect2>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync </sect1>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
4c303299e657f3cfd3c6db618e443b93e5b814a2vboxsync <sect1>
4c303299e657f3cfd3c6db618e443b93e5b814a2vboxsync <title>Advanced configuration for Linux and Solaris guests</title>
4c303299e657f3cfd3c6db618e443b93e5b814a2vboxsync
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync <sect2>
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync <title>Manual setup of selected guest services on Linux</title>
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync <para>The VirtualBox Guest Additions contain several different drivers.
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync If for any reason you do not wish to set them all up, you can install
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync the Guest Additions using the following command:</para>
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync <screen> sh /VBoxLinuxAdditions.run no_setup</screen>
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync <para>After this, you will need to at least compile the kernel modules
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync by running the command <screen> /usr/lib/VBoxGuestAdditions/vboxadd setup</screen>
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync as root (you will need to replace <emphasis>lib</emphasis> by
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync <emphasis>lib64</emphasis> on some 64bit guests), and on older guests
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync without the udev service you will need to add the
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync <emphasis>vboxadd</emphasis> service to the default runlevel to ensure
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync that the modules get loaded.</para>
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync <para>To setup the time synchronization service, run the command
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync <screen> /usr/lib/VBoxGuestAdditions/vboxadd-service setup</screen> and
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync add the service vboxadd-service to the default runlevel. To set up the
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync X11 and OpenGL part of the Guest Additions, run the command <screen> /usr/lib/VBoxGuestAdditions/vboxadd-x11 setup</screen>
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync (you do not need to enable any services for this).</para>
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync <para>To recompile the guest kernel modules, use this command: <screen> /usr/lib/VBoxGuestAdditions/vboxadd setup</screen>
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync After compilation you should reboot your guest to ensure that the new
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync modules are actually used.</para>
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync </sect2>
4c303299e657f3cfd3c6db618e443b93e5b814a2vboxsync
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync <sect2 id="guestxorgsetup">
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync <title>Guest graphics and mouse driver setup in depth</title>
4c303299e657f3cfd3c6db618e443b93e5b814a2vboxsync
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync <para>This section assumes that you are familiar with configuring the
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync X.Org server using xorg.conf and optionally the newer mechanisms using
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync hal or udev and xorg.conf.d. If not you can learn about them by studying
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync the documentation which comes with X.Org.</para>
4c303299e657f3cfd3c6db618e443b93e5b814a2vboxsync
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync <para>The VirtualBox Guest Additions come with drivers for X.Org
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync versions <itemizedlist>
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync <listitem>
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync X11R6.8/X11R6.9 and XFree86 version 4.3 (vboxvideo_drv_68.o and vboxmouse_drv_68.o)
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync </listitem>
4c303299e657f3cfd3c6db618e443b93e5b814a2vboxsync
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync <listitem>
75d67a5757951aa64bf3887a70db379e1feb84aavboxsync X11R7.0 (vboxvideo_drv_70.so and vboxmouse_drv_70.so)
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync </listitem>
4c303299e657f3cfd3c6db618e443b93e5b814a2vboxsync
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync <listitem>
75d67a5757951aa64bf3887a70db379e1feb84aavboxsync X11R7.1 (vboxvideo_drv_71.so and vboxmouse_drv_71.so)
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync </listitem>
4c303299e657f3cfd3c6db618e443b93e5b814a2vboxsync
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync <listitem>
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync X.Org Server versions 1.3 and later (vboxvideo_drv_13.so and vboxmouse_drv_13.so and so on).
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync </listitem>
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync </itemizedlist> By default these drivers can be found in the
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync directory</para>
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync <para><computeroutput>/opt/VBoxGuestAdditions-&lt;version&gt;/lib/VBoxGuestAdditions</computeroutput></para>
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync <para>and the correct versions for the X server are symbolically linked
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync into the X.Org driver directories.</para>
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync <para>For graphics integration to work correctly, the X server must load
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync the vboxvideo driver (many recent X server versions look for it
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync automatically if they see that they are running in VirtualBox) and for
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync an optimal user experience the guest kernel drivers must be loaded and
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync the Guest Additions tool VBoxClient must be running as a client in the X
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync session. For mouse integration to work correctly, the guest kernel
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync drivers must be loaded and in addition, in X servers from X.Org X11R6.8
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync to X11R7.1 and in XFree86 version 4.3 the right vboxmouse driver must be
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync loaded and associated with /dev/mouse or /dev/psaux; in X.Org server 1.3
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync or later a driver for a PS/2 mouse must be loaded and the right
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync vboxmouse driver must be associated with /dev/vboxguest.</para>
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync <para>The VirtualBox guest graphics driver can use any graphics
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync configuration for which the virtual resolution fits into the virtual
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync video memory allocated to the virtual machine (minus a small amount used
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync by the guest driver) as described in <xref
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync linkend="settings-display" />. The driver will offer a range of standard
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync modes at least up to the default guest resolution for all active guest
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync monitors. In X.Org Server 1.3 and later the default mode can be changed
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync by setting the output property VBOX_MODE to
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync "&lt;width&gt;x&lt;height&gt;" for any guest monitor. When VBoxClient
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync and the kernel drivers are active this is done automatically when the
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync host requests a mode change. The driver for older versions can only
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync receive new modes by querying the host for requests at regular
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync intervals.</para>
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync <para>With pre-1.3 X Servers you can also add your own modes to the X
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync server configuration file. You simply need to add them to the "Modes"
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync list in the "Display" subsection of the "Screen" section. For example,
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync the section shown here has a custom 2048x800 resolution mode
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync added:</para>
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync <screen>Section "Screen"
4c303299e657f3cfd3c6db618e443b93e5b814a2vboxsync Identifier "Default Screen"
4c303299e657f3cfd3c6db618e443b93e5b814a2vboxsync Device "VirtualBox graphics card"
4c303299e657f3cfd3c6db618e443b93e5b814a2vboxsync Monitor "Generic Monitor"
4c303299e657f3cfd3c6db618e443b93e5b814a2vboxsync DefaultDepth 24
4c303299e657f3cfd3c6db618e443b93e5b814a2vboxsync SubSection "Display"
4c303299e657f3cfd3c6db618e443b93e5b814a2vboxsync Depth 24
4c303299e657f3cfd3c6db618e443b93e5b814a2vboxsync Modes "2048x800" "800x600" "640x480"
4c303299e657f3cfd3c6db618e443b93e5b814a2vboxsync EndSubSection
4c303299e657f3cfd3c6db618e443b93e5b814a2vboxsyncEndSection</screen>
4c303299e657f3cfd3c6db618e443b93e5b814a2vboxsync </sect2>
4c303299e657f3cfd3c6db618e443b93e5b814a2vboxsync </sect1>
4c303299e657f3cfd3c6db618e443b93e5b814a2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <sect1 id="cpuhotplug">
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <title>CPU hot-plugging</title>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <para>With virtual machines running modern server operating systems,
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync VirtualBox supports CPU hot-plugging.<footnote>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <para>Support for CPU hot-plugging was introduced with VirtualBox
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync 3.2.</para>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync </footnote> Whereas on a physical computer this would mean that a CPU
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync can be added or removed while the machine is running, VirtualBox supports
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync adding and removing virtual CPUs while a virtual machine is
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync running.</para>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <para>CPU hot-plugging works only with guest operating systems that
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync support it. So far this applies only to Linux and Windows Server 2008 x64
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync Data Center Edition. Windows supports only hot-add while Linux supports
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync hot-add and hot-remove but to use this feature with more than 8 CPUs a
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync 64bit Linux guest is required.</para>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <para>At this time, CPU hot-plugging requires using the VBoxManage
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync command-line interface. First, hot-plugging needs to be enabled for a
dbabcd810984fc0731edff08eb281f0907dc867avboxsync virtual machine:<screen>VBoxManage modifyvm "VM name" --cpuhotplug on</screen></para>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <para>After that, the --cpus option specifies the maximum number of CPUs
dbabcd810984fc0731edff08eb281f0907dc867avboxsync that the virtual machine can have:<screen>VBoxManage modifyvm "VM name" --cpus 8</screen>When
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync the VM is off, you can then add and remove virtual CPUs with the modifyvm
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync --plugcpu and --unplugcpu subcommands, which take the number of the
dbabcd810984fc0731edff08eb281f0907dc867avboxsync virtual CPU as a parameter, like this:<screen>VBoxManage modifyvm "VM name" --plugcpu 3
051203e46846205a982bcf5ab198a8b5f6f8e6e0vboxsyncVBoxManage modifyvm "VM name" --unplugcpu 3</screen>Note that CPU 0 can never
051203e46846205a982bcf5ab198a8b5f6f8e6e0vboxsync be removed.</para>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <para>While the VM is running, CPUs can be added with the
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <computeroutput>controlvm plugcpu/unplugcpu</computeroutput> commands
dbabcd810984fc0731edff08eb281f0907dc867avboxsync instead:<screen>VBoxManage controlvm "VM name" plugcpu 3
dbabcd810984fc0731edff08eb281f0907dc867avboxsyncVBoxManage controlvm "VM name" unplugcpu 3</screen></para>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <para>See <xref linkend="vboxmanage-modifyvm" /> and <xref
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync linkend="vboxmanage-controlvm" /> for details.</para>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <para>With Linux guests, the following applies: To prevent ejection while
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync the CPU is still used it has to be ejected from within the guest before.
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync The Linux Guest Additions contain a service which receives hot-remove
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync events and ejects the CPU. Also, after a CPU is added to the VM it is not
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync automatically used by Linux. The Linux Guest Additions service will take
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync care of that if installed. If not a CPU can be started with the following
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync command:<screen>echo 1 &gt; /sys/devices/system/cpu/cpu&lt;id&gt;/online</screen></para>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync </sect1>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
4c7080424765b6ab6900953b3736e857318a6126vboxsync <sect1 id="pcipassthrough">
4c7080424765b6ab6900953b3736e857318a6126vboxsync <title>PCI passthrough</title>
4c7080424765b6ab6900953b3736e857318a6126vboxsync
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync <para>When running on Linux hosts, with a recent enough kernel (at least
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync version <computeroutput>2.6.31</computeroutput>) experimental host PCI
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync devices passthrough is available.<footnote>
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync <para>Experimental support for PCI passthrough was introduced with
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync VirtualBox 4.1.</para>
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync </footnote></para>
e579762795d321fd9390ae09c881e35c8107506fvboxsync
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync <note>
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync <para>The PCI passthrough module is shipped as a VirtualBox extension
d6a533c77fa274df5ee0e592c6abfa73549f2b34vboxsync package, which must be installed separately. See <xref
d6a533c77fa274df5ee0e592c6abfa73549f2b34vboxsync linkend="intro-installing" /> for more information.</para>
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync </note>
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync <para>Essentially this feature allows to directly use physical PCI devices
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync on the host by the guest even if host doesn't have drivers for this
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync particular device. Both, regular PCI and some PCI Express cards, are
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync supported. AGP and certain PCI Express cards are not supported at the
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync moment if they rely on GART (Graphics Address Remapping Table) unit
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync programming for texture management as it does rather nontrivial operations
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync with pages remapping interfering with IOMMU. This limitation may be lifted
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync in future releases.</para>
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync <para>To be fully functional, PCI passthrough support in VirtualBox
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync depends upon an IOMMU hardware unit which is not yet too widely available.
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync If the device uses bus mastering (i.e. it performs DMA to the OS memory on
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync its own), then an IOMMU is required, otherwise such DMA transactions may
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync write to the wrong physical memory address as the device DMA engine is
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync programmed using a device-specific protocol to perform memory
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync transactions. The IOMMU functions as translation unit mapping physical
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync memory access requests from the device using knowledge of the guest
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync physical address to host physical addresses translation rules.</para>
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync <para>Intel's solution for IOMMU is marketed as "Intel Virtualization
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync Technology for Directed I/O" (VT-d), and AMD's one is called AMD-Vi. So
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync please check if your motherboard datasheet has appropriate technology.
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync Even if your hardware doesn't have a IOMMU, certain PCI cards may work
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync (such as serial PCI adapters), but the guest will show a warning on boot
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync and the VM execution will terminate if the guest driver will attempt to
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync enable card bus mastering.</para>
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync <para>It is very common that the BIOS or the host OS disables the IOMMU by
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync default. So before any attempt to use it please make sure that
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync <orderedlist>
4c7080424765b6ab6900953b3736e857318a6126vboxsync <listitem>
d6a533c77fa274df5ee0e592c6abfa73549f2b34vboxsync <para>Your motherboard has an IOMMU unit.</para>
4c7080424765b6ab6900953b3736e857318a6126vboxsync </listitem>
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync
4c7080424765b6ab6900953b3736e857318a6126vboxsync <listitem>
d6a533c77fa274df5ee0e592c6abfa73549f2b34vboxsync <para>Your CPU supports the IOMMU.</para>
4c7080424765b6ab6900953b3736e857318a6126vboxsync </listitem>
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync
4c7080424765b6ab6900953b3736e857318a6126vboxsync <listitem>
d6a533c77fa274df5ee0e592c6abfa73549f2b34vboxsync <para>The IOMMU is enabled in the BIOS.</para>
4c7080424765b6ab6900953b3736e857318a6126vboxsync </listitem>
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync
4c7080424765b6ab6900953b3736e857318a6126vboxsync <listitem>
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync <para>The VM must run with VT-x/AMD-V and nested paging
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync enabled.</para>
4c7080424765b6ab6900953b3736e857318a6126vboxsync </listitem>
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync
4c7080424765b6ab6900953b3736e857318a6126vboxsync <listitem>
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync <para>Your Linux kernel was compiled with IOMMU support (including
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync DMA remapping, see <computeroutput>CONFIG_DMAR</computeroutput>
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync kernel compilation option). The PCI stub driver
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync (<computeroutput>CONFIG_PCI_STUB</computeroutput>) is required as
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync well.</para>
d6a533c77fa274df5ee0e592c6abfa73549f2b34vboxsync </listitem>
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync
d6a533c77fa274df5ee0e592c6abfa73549f2b34vboxsync <listitem>
d6a533c77fa274df5ee0e592c6abfa73549f2b34vboxsync <para>Your Linux kernel recognizes and uses the IOMMU unit
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync (<computeroutput>intel_iommu=on</computeroutput> boot option could
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync be needed). Search for DMAR and PCI-DMA in kernel boot log.</para>
4c7080424765b6ab6900953b3736e857318a6126vboxsync </listitem>
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync </orderedlist></para>
2087cc1f185f94ea367e4bba400e039159e7ec3cvboxsync
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync <para>Once you made sure that the host kernel supports the IOMMU, the next
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync step is to select the PCI card and attach it to the guest. To figure out
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync the list of available PCI devices, use the
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync <computeroutput>lspci</computeroutput> command. The output will look like
c4a86a42862e637efc6a3680e0253e1a5ec47a32vboxsync this:</para>
c4a86a42862e637efc6a3680e0253e1a5ec47a32vboxsync <screen>01:00.0 VGA compatible controller: ATI Technologies Inc Cedar PRO [Radeon HD 5450]
c4a86a42862e637efc6a3680e0253e1a5ec47a32vboxsync01:00.1 Audio device: ATI Technologies Inc Manhattan HDMI Audio [Mobility Radeon HD 5000 Series]
c4a86a42862e637efc6a3680e0253e1a5ec47a32vboxsync02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit
c4a86a42862e637efc6a3680e0253e1a5ec47a32vboxsync Ethernet controller (rev 03)
c4a86a42862e637efc6a3680e0253e1a5ec47a32vboxsync03:00.0 SATA controller: JMicron Technology Corp. JMB362/JMB363 Serial ATA Controller (rev 03)
c4a86a42862e637efc6a3680e0253e1a5ec47a32vboxsync03:00.1 IDE interface: JMicron Technology Corp. JMB362/JMB363 Serial ATA Controller (rev 03)
c4a86a42862e637efc6a3680e0253e1a5ec47a32vboxsync06:00.0 VGA compatible controller: nVidia Corporation G86 [GeForce 8500 GT] (rev a1)</screen>
c4a86a42862e637efc6a3680e0253e1a5ec47a32vboxsync <para>The first column is a PCI address (in format
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync <computeroutput>bus:device.function</computeroutput>). This address could
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync be used to identify the device for further operations. For example, to
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync attach a PCI network controller on the system listed above to the second
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync PCI bus in the guest, as device 5, function 0, use the following command:
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync <screen>VBoxManage modifyvm "VM name" --pciattach 02:00.0@01:05.0</screen>
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync To detach same device, use <screen>VBoxManage modifyvm "VM name" --pcidetach 02:00.0</screen>
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync Please note that both host and guest could freely assign a different PCI
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync address to the card attached during runtime, so those addresses only apply
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync to the address of the card at the moment of attachment (host), and during
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync BIOS PCI init (guest).</para>
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync <para>If the virtual machine has a PCI device attached, certain
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync limitations apply: <orderedlist>
4c7080424765b6ab6900953b3736e857318a6126vboxsync <listitem>
75d67a5757951aa64bf3887a70db379e1feb84aavboxsync Only PCI cards with non-shared interrupts (such as using MSI on host) are supported at the moment.
4c7080424765b6ab6900953b3736e857318a6126vboxsync </listitem>
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync
4c7080424765b6ab6900953b3736e857318a6126vboxsync <listitem>
75d67a5757951aa64bf3887a70db379e1feb84aavboxsync No guest state can be reliably saved/restored (as the internal state of the PCI card could not be retrieved).
4c7080424765b6ab6900953b3736e857318a6126vboxsync </listitem>
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync
4c7080424765b6ab6900953b3736e857318a6126vboxsync <listitem>
75d67a5757951aa64bf3887a70db379e1feb84aavboxsync Teleportation (live migration) doesn't work (for the same reason).
2087cc1f185f94ea367e4bba400e039159e7ec3cvboxsync </listitem>
2087cc1f185f94ea367e4bba400e039159e7ec3cvboxsync
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync <listitem>
75d67a5757951aa64bf3887a70db379e1feb84aavboxsync 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).
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync </listitem>
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync </orderedlist></para>
4c7080424765b6ab6900953b3736e857318a6126vboxsync </sect1>
4c7080424765b6ab6900953b3736e857318a6126vboxsync
df6fd659828ab2cc2390132f20cf611eb4a8489cvboxsync <sect1>
df6fd659828ab2cc2390132f20cf611eb4a8489cvboxsync <title>Webcam passthrough</title>
df6fd659828ab2cc2390132f20cf611eb4a8489cvboxsync
16fbac5eecfd5dad7155a4c7328feee40b6ed715vboxsync <sect2 id="webcam-passthrough">
df6fd659828ab2cc2390132f20cf611eb4a8489cvboxsync <title>Using a host webcam in the guest</title>
df6fd659828ab2cc2390132f20cf611eb4a8489cvboxsync
df6fd659828ab2cc2390132f20cf611eb4a8489cvboxsync <para>VirtualBox 4.3 includes an experimental feature which allows a guest to use
a1b231800e01a4b36c167b58b7dd4c59652932fbvboxsync a host webcam. This complements the general USB passthrough support which was the
c385c6effc7f9ca4abd6179f696507483d1b6679vboxsync typical way of using host webcams in earlier versions. The webcam passthrough support
a1b231800e01a4b36c167b58b7dd4c59652932fbvboxsync can handle non-USB video sources in theory, but this is completely untested.</para>
df6fd659828ab2cc2390132f20cf611eb4a8489cvboxsync
df6fd659828ab2cc2390132f20cf611eb4a8489cvboxsync <note>
a1b231800e01a4b36c167b58b7dd4c59652932fbvboxsync <para>The webcam passthrough module is shipped as part of the Oracle VM VirtualBox
a1b231800e01a4b36c167b58b7dd4c59652932fbvboxsync extension pack, which must be installed separately. See <xref
df6fd659828ab2cc2390132f20cf611eb4a8489cvboxsync linkend="intro-installing" /> for more information.</para>
df6fd659828ab2cc2390132f20cf611eb4a8489cvboxsync </note>
df6fd659828ab2cc2390132f20cf611eb4a8489cvboxsync
d6885273b9405b64429987a2b023057aaa36c736vboxsync <para>The host webcam can be attached to the VM using "Devices" menu in the VM menu bar.
d6885273b9405b64429987a2b023057aaa36c736vboxsync The "Webcams" menu contains a list of available video input devices on the host.
d6885273b9405b64429987a2b023057aaa36c736vboxsync Clicking on a webcam name attaches or detaches the corresponding host device.</para>
d6885273b9405b64429987a2b023057aaa36c736vboxsync
d6885273b9405b64429987a2b023057aaa36c736vboxsync <para>The VBoxManage command line tool can be used to enable webcam passthrough.
0a9e7e71671fe11d8e9acd29bb5c5e02d2fbbec3vboxsync Please see the host-specific sections below for additional details.
0a9e7e71671fe11d8e9acd29bb5c5e02d2fbbec3vboxsync The following commands are available:
a1b231800e01a4b36c167b58b7dd4c59652932fbvboxsync <itemizedlist>
df6fd659828ab2cc2390132f20cf611eb4a8489cvboxsync <listitem><para>Get a list of host webcams (or other video input devices):
df6fd659828ab2cc2390132f20cf611eb4a8489cvboxsync <screen>VBoxManage list webcams</screen>
df6fd659828ab2cc2390132f20cf611eb4a8489cvboxsync The output format:
df6fd659828ab2cc2390132f20cf611eb4a8489cvboxsync <screen>alias "user friendly name"
df6fd659828ab2cc2390132f20cf611eb4a8489cvboxsynchost path or identifier</screen>
df6fd659828ab2cc2390132f20cf611eb4a8489cvboxsync The alias can be used as a shortcut in other commands. Alias '.0' means
df6fd659828ab2cc2390132f20cf611eb4a8489cvboxsync default video input device on the host, '.1', '.2', etc mean first, second, etc
d224c226d000b22b8439af91aa28a31fe1e141e0vboxsync video input device. The device order is host-specific.
df6fd659828ab2cc2390132f20cf611eb4a8489cvboxsync </para></listitem>
df6fd659828ab2cc2390132f20cf611eb4a8489cvboxsync <listitem><para>Attach a webcam to a running VM:
0a9e7e71671fe11d8e9acd29bb5c5e02d2fbbec3vboxsync <screen>VBoxManage controlvm "VM name" webcam attach [host_path|alias [settings]]</screen>
0a9e7e71671fe11d8e9acd29bb5c5e02d2fbbec3vboxsync This will attach a USB webcam device to the guest.</para>
0a9e7e71671fe11d8e9acd29bb5c5e02d2fbbec3vboxsync
0a9e7e71671fe11d8e9acd29bb5c5e02d2fbbec3vboxsync <para>The <computeroutput>settings</computeroutput> parameter is a string
0a9e7e71671fe11d8e9acd29bb5c5e02d2fbbec3vboxsync <computeroutput>Setting1=Value1;Setting2=Value2</computeroutput>, which allows to
0a9e7e71671fe11d8e9acd29bb5c5e02d2fbbec3vboxsync configure the emulated webcam device. The following settings are supported:
0a9e7e71671fe11d8e9acd29bb5c5e02d2fbbec3vboxsync <itemizedlist>
0a9e7e71671fe11d8e9acd29bb5c5e02d2fbbec3vboxsync <listitem>
0a9e7e71671fe11d8e9acd29bb5c5e02d2fbbec3vboxsync <computeroutput>MaxFramerate</computeroutput> The highest rate at which video frames
0a9e7e71671fe11d8e9acd29bb5c5e02d2fbbec3vboxsync are sent to the guest. A higher frame rate requires more CPU power. Therefore sometimes
0a9e7e71671fe11d8e9acd29bb5c5e02d2fbbec3vboxsync it is useful to set a lower limit. Default is no limit and allow the guest to use all
0a9e7e71671fe11d8e9acd29bb5c5e02d2fbbec3vboxsync frame rates supported by the host webcam.
0a9e7e71671fe11d8e9acd29bb5c5e02d2fbbec3vboxsync </listitem>
0a9e7e71671fe11d8e9acd29bb5c5e02d2fbbec3vboxsync <listitem>
0a9e7e71671fe11d8e9acd29bb5c5e02d2fbbec3vboxsync <computeroutput>MaxPayloadTransferSize</computeroutput> How many bytes the emulated
0a9e7e71671fe11d8e9acd29bb5c5e02d2fbbec3vboxsync webcam can send to the guest at a time. Default value is 3060 bytes, which is used by
0a9e7e71671fe11d8e9acd29bb5c5e02d2fbbec3vboxsync some webcams. Higher values can slightly reduce CPU load, if the guest is able to use
38e134c57e4174d882b56ac7b10e76ae5f6c412bvboxsync larger buffers. However, a high <computeroutput>MaxPayloadTransferSize</computeroutput>
0a9e7e71671fe11d8e9acd29bb5c5e02d2fbbec3vboxsync might be not supported by some guests.
0a9e7e71671fe11d8e9acd29bb5c5e02d2fbbec3vboxsync </listitem>
0a9e7e71671fe11d8e9acd29bb5c5e02d2fbbec3vboxsync </itemizedlist>
df6fd659828ab2cc2390132f20cf611eb4a8489cvboxsync </para></listitem>
df6fd659828ab2cc2390132f20cf611eb4a8489cvboxsync <listitem><para>Detach a webcam from a running VM:
d224c226d000b22b8439af91aa28a31fe1e141e0vboxsync <screen>VBoxManage controlvm "VM name" webcam detach [host_path|alias]</screen>
df6fd659828ab2cc2390132f20cf611eb4a8489cvboxsync </para></listitem>
df6fd659828ab2cc2390132f20cf611eb4a8489cvboxsync <listitem><para>List webcams attached to a running VM:
d224c226d000b22b8439af91aa28a31fe1e141e0vboxsync <screen>VBoxManage controlvm "VM name" webcam list</screen>
df6fd659828ab2cc2390132f20cf611eb4a8489cvboxsync The output contains path or alias which was used in 'webcam attach' command for
df6fd659828ab2cc2390132f20cf611eb4a8489cvboxsync each attached webcam.
df6fd659828ab2cc2390132f20cf611eb4a8489cvboxsync </para></listitem>
df6fd659828ab2cc2390132f20cf611eb4a8489cvboxsync </itemizedlist>
df6fd659828ab2cc2390132f20cf611eb4a8489cvboxsync </para>
df6fd659828ab2cc2390132f20cf611eb4a8489cvboxsync </sect2>
df6fd659828ab2cc2390132f20cf611eb4a8489cvboxsync
df6fd659828ab2cc2390132f20cf611eb4a8489cvboxsync <sect2>
d224c226d000b22b8439af91aa28a31fe1e141e0vboxsync <title>Windows hosts</title>
df6fd659828ab2cc2390132f20cf611eb4a8489cvboxsync
a1b231800e01a4b36c167b58b7dd4c59652932fbvboxsync <para>When the webcam device is detached from the host, the emulated webcam device is
df6fd659828ab2cc2390132f20cf611eb4a8489cvboxsync automatically detached from the guest.</para>
df6fd659828ab2cc2390132f20cf611eb4a8489cvboxsync </sect2>
df6fd659828ab2cc2390132f20cf611eb4a8489cvboxsync
df6fd659828ab2cc2390132f20cf611eb4a8489cvboxsync <sect2>
d224c226d000b22b8439af91aa28a31fe1e141e0vboxsync <title>Mac OS X hosts</title>
df6fd659828ab2cc2390132f20cf611eb4a8489cvboxsync
f8209655f06579f0efa9f2d11b6e31c3aa06e5a8vboxsync <para>OS X version 10.7 or newer is required.</para>
df6fd659828ab2cc2390132f20cf611eb4a8489cvboxsync
a1b231800e01a4b36c167b58b7dd4c59652932fbvboxsync <para>When the webcam device is detached from the host, the emulated webcam device
d224c226d000b22b8439af91aa28a31fe1e141e0vboxsync remains attached to the guest and must be manually detached using the
d224c226d000b22b8439af91aa28a31fe1e141e0vboxsync <computeroutput>VBoxManage controlvm "VM name" webcam detach ...</computeroutput> command.</para>
df6fd659828ab2cc2390132f20cf611eb4a8489cvboxsync </sect2>
df6fd659828ab2cc2390132f20cf611eb4a8489cvboxsync
df6fd659828ab2cc2390132f20cf611eb4a8489cvboxsync <sect2>
281234460952ccdb635292305559affb1b20f576vboxsync <title>Linux and Solaris hosts</title>
df6fd659828ab2cc2390132f20cf611eb4a8489cvboxsync
d9d7618cf6d7e5980b2e01ed2a63c368db6745c5vboxsync <para>When the webcam is detached from the host the emulated webcam device is
d9d7618cf6d7e5980b2e01ed2a63c368db6745c5vboxsync automatically detached from the guest only if the webcam is streaming video.
d9d7618cf6d7e5980b2e01ed2a63c368db6745c5vboxsync If the emulated webcam is inactive it should be manually detached using the
d224c226d000b22b8439af91aa28a31fe1e141e0vboxsync <computeroutput>VBoxManage controlvm "VM name" webcam detach ...</computeroutput> command.</para>
0a9e7e71671fe11d8e9acd29bb5c5e02d2fbbec3vboxsync
0a9e7e71671fe11d8e9acd29bb5c5e02d2fbbec3vboxsync <para>Aliases <computeroutput>.0</computeroutput> and <computeroutput>.1</computeroutput> are mapped
0a9e7e71671fe11d8e9acd29bb5c5e02d2fbbec3vboxsync to <computeroutput>/dev/video0</computeroutput>, alias <computeroutput>.2</computeroutput> is mapped
0a9e7e71671fe11d8e9acd29bb5c5e02d2fbbec3vboxsync to <computeroutput>/dev/video1</computeroutput> and so forth.</para>
df6fd659828ab2cc2390132f20cf611eb4a8489cvboxsync </sect2>
df6fd659828ab2cc2390132f20cf611eb4a8489cvboxsync </sect1>
df6fd659828ab2cc2390132f20cf611eb4a8489cvboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <sect1>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <title>Advanced display configuration</title>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <sect2>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <title>Custom VESA resolutions</title>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <para>Apart from the standard VESA resolutions, the VirtualBox VESA BIOS
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync allows you to add up to 16 custom video modes which will be reported to
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync the guest operating system. When using Windows guests with the
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync VirtualBox Guest Additions, a custom graphics driver will be used
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync instead of the fallback VESA solution so this information does not
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync apply.</para>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <para>Additional video modes can be configured for each VM using the
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync extra data facility. The extra data key is called
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <literal>CustomVideoMode&lt;x&gt;</literal> with <literal>x</literal>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync being a number from 1 to 16. Please note that modes will be read from 1
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync until either the following number is not defined or 16 is reached. The
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync following example adds a video mode that corresponds to the native
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync display resolution of many notebook computers:</para>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
dbabcd810984fc0731edff08eb281f0907dc867avboxsync <screen>VBoxManage setextradata "VM name" "CustomVideoMode1" "1400x1050x16"</screen>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <para>The VESA mode IDs for custom video modes start at
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <literal>0x160</literal>. In order to use the above defined custom video
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync mode, the following command line has be supplied to Linux:</para>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <screen>vga = 0x200 | 0x160
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsyncvga = 864</screen>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <para>For guest operating systems with VirtualBox Guest Additions, a
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync custom video mode can be set using the video mode hint feature.</para>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync </sect2>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <sect2>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <title>Configuring the maximum resolution of guests when using the
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync graphical frontend</title>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <para>When guest systems with the Guest Additions installed are started
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync using the graphical frontend (the normal VirtualBox application), they
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync will not be allowed to use screen resolutions greater than the host's
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync screen size unless the user manually resizes them by dragging the
6160306df39548f807965d1b3e6953ca2ce92847vboxsync window, switching to full screen or seamless mode or sending a video mode
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync hint using VBoxManage. This behavior is what most users will want, but
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync if you have different needs, it is possible to change it by issuing one
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync of the following commands from the command line:</para>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <screen>VBoxManage setextradata global GUI/MaxGuestResolution any</screen>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <para>will remove all limits on guest resolutions.</para>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
dbabcd810984fc0731edff08eb281f0907dc867avboxsync <screen>VBoxManage setextradata global GUI/MaxGuestResolution &gt;width,height&lt;</screen>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <para>manually specifies a maximum resolution.</para>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <screen>VBoxManage setextradata global GUI/MaxGuestResolution auto</screen>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <para>restores the default settings. Note that these settings apply
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync globally to all guest systems, not just to a single machine.</para>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync </sect2>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync </sect1>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <sect1>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <title>Advanced storage configuration</title>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <sect2 id="rawdisk">
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <title>Using a raw host hard disk from a guest</title>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <para>Starting with version 1.4, as an alternative to using virtual disk
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync images (as described in detail in <xref linkend="storage" />),
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync VirtualBox can also present either entire physical hard disks or
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync selected partitions thereof as virtual disks to virtual machines.</para>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <para>With VirtualBox, this type of access is called "raw hard disk
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync access"; it allows a guest operating system to access its virtual hard
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync disk without going through the host OS file system. The actual
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync performance difference for image files vs. raw disk varies greatly
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync depending on the overhead of the host file system, whether dynamically
531197d0c66f247938034384b933cc002ed6441evboxsync growing images are used, and on host OS caching strategies. The caching
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync indirectly also affects other aspects such as failure behavior, i.e.
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync whether the virtual disk contains all data written before a host OS
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync crash. Consult your host OS documentation for details on this.</para>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <para><warning>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <para>Raw hard disk access is for expert users only. Incorrect use
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync or use of an outdated configuration can lead to <emphasis
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync role="bold">total loss of data </emphasis>on the physical disk. Most
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync importantly, <emphasis>do not</emphasis> attempt to boot the
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync partition with the currently running host operating system in a
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync guest. This will lead to severe data corruption.</para>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync </warning></para>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <para>Raw hard disk access -- both for entire disks and individual
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync partitions -- is implemented as part of the VMDK image format support.
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync As a result, you will need to create a special VMDK image file which
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync defines where the data will be stored. After creating such a special
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync VMDK image, you can use it like a regular virtual disk image. For
531197d0c66f247938034384b933cc002ed6441evboxsync example, you can use the VirtualBox Manager (<xref linkend="vdis" />)
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync or <computeroutput>VBoxManage</computeroutput> to assign the image to a
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync virtual machine.</para>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <sect3>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <title>Access to entire physical hard disk</title>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <para>While this variant is the simplest to set up, you must be aware
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync that this will give a guest operating system direct and full access to
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync an <emphasis>entire physical disk</emphasis>. If your
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <emphasis>host</emphasis> operating system is also booted from this
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync disk, please take special care to not access the partition from the
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync guest at all. On the positive side, the physical disk can be
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync repartitioned in arbitrary ways without having to recreate the image
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync file that gives access to the raw disk.</para>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <para>To create an image that represents an entire physical hard disk
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync (which will not contain any actual data, as this will all be stored on
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync the physical disk), on a Linux host, use the command<screen>VBoxManage internalcommands createrawvmdk -filename /path/to/file.vmdk
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync -rawdisk /dev/sda</screen>This creates the image
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <code>/path/to/file.vmdk</code> (must be absolute), and all data will
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync be read and written from <code>/dev/sda</code>.</para>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <para>On a Windows host, instead of the above device specification,
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync use e.g. <code>\\.\PhysicalDrive0</code>. On a Mac OS X host, instead
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync of the above device specification use e.g. <code>/dev/disk1</code>.
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync Note that on OS X you can only get access to an entire disk if no
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync volume is mounted from it.</para>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <para>Creating the image requires read/write access for the given
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync device. Read/write access is also later needed when using the image
531197d0c66f247938034384b933cc002ed6441evboxsync from a virtual machine. On some host platforms (e.g. Windows Vista
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync and later), raw disk access may be restricted and not permitted by
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync the host OS in some situations.</para>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <para>Just like with regular disk images, this does not automatically
c551f0f256f0a10f4fde1610cc0e200bd01e3663vboxsync attach the newly created image to a virtual machine. This can be done
2efd74fc9286676f97464d908ad84285b06c0946vboxsync with e.g. <screen>VBoxManage storageattach WindowsXP --storagectl "IDE Controller"
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync --port 0 --device 0 --type hdd --medium /path/to/file.vmdk</screen>When
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync this is done the selected virtual machine will boot from the specified
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync physical disk.</para>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync </sect3>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <sect3>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <title>Access to individual physical hard disk partitions</title>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <para>This "raw partition support" is quite similar to the "full hard
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync disk" access described above. However, in this case, any partitioning
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync information will be stored inside the VMDK image, so you can e.g.
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync install a different boot loader in the virtual hard disk without
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync affecting the host's partitioning information. While the guest will be
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync able to <emphasis>see</emphasis> all partitions that exist on the
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync physical disk, access will be filtered in that reading from partitions
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync for which no access is allowed the partitions will only yield zeroes,
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync and all writes to them are ignored.</para>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <para>To create a special image for raw partition support (which will
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync contain a small amount of data, as already mentioned), on a Linux
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync host, use the command<screen>VBoxManage internalcommands createrawvmdk -filename /path/to/file.vmdk
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync -rawdisk /dev/sda -partitions 1,5</screen></para>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <para>As you can see, the command is identical to the one for "full
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync hard disk" access, except for the additional
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <computeroutput>-partitions</computeroutput> parameter. This example
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync would create the image <code>/path/to/file.vmdk</code> (which, again,
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync must be absolute), and partitions 1 and 5 of <code>/dev/sda</code>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync would be made accessible to the guest.</para>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <para>VirtualBox uses the same partition numbering as your Linux host.
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync As a result, the numbers given in the above example would refer to the
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync first primary partition and the first logical drive in the extended
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync partition, respectively.</para>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <para>On a Windows host, instead of the above device specification,
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync use e.g. <code>\\.\PhysicalDrive0</code>. On a Mac OS X host, instead
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync of the above device specification use e.g. <code>/dev/disk1</code>.
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync Note that on OS X you can only use partitions which are not mounted
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync (eject the respective volume first). Partition numbers are the same on
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync Linux, Windows and Mac OS X hosts.</para>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <para>The numbers for the list of partitions can be taken from the
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync output of<screen>VBoxManage internalcommands listpartitions -rawdisk /dev/sda</screen>The
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync output lists the partition types and sizes to give the user enough
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync information to identify the partitions necessary for the guest.</para>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <para>Images which give access to individual partitions are specific
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync to a particular host disk setup. You cannot transfer these images to
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync another host; also, whenever the host partitioning changes, the image
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <emphasis>must be recreated</emphasis>.</para>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <para>Creating the image requires read/write access for the given
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync device. Read/write access is also later needed when using the image
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync from a virtual machine. If this is not feasible, there is a special
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync variant for raw partition access (currently only available on Linux
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync hosts) that avoids having to give the current user access to the
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync entire disk. To set up such an image, use<screen>VBoxManage internalcommands createrawvmdk -filename /path/to/file.vmdk
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync -rawdisk /dev/sda -partitions 1,5 -relative</screen>When used from a
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync virtual machine, the image will then refer not to the entire disk, but
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync only to the individual partitions (in the example
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <code>/dev/sda1</code> and <code>/dev/sda5</code>). As a consequence,
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync read/write access is only required for the affected partitions, not
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync for the entire disk. During creation however, read-only access to the
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync entire disk is required to obtain the partitioning information.</para>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <para>In some configurations it may be necessary to change the MBR
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync code of the created image, e.g. to replace the Linux boot loader that
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync is used on the host by another boot loader. This allows e.g. the guest
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync to boot directly to Windows, while the host boots Linux from the
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync "same" disk. For this purpose the
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <computeroutput>-mbr</computeroutput> parameter is provided. It
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync specifies a file name from which to take the MBR code. The partition
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync table is not modified at all, so a MBR file from a system with totally
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync different partitioning can be used. An example of this is<screen>VBoxManage internalcommands createrawvmdk -filename /path/to/file.vmdk
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync -rawdisk /dev/sda -partitions 1,5 -mbr winxp.mbr</screen>The modified
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync MBR will be stored inside the image, not on the host disk.</para>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync <para>The created image can be attached to a storage controller in a
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync VM configuration as usual.</para>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync </sect3>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync </sect2>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <sect2 id="changevpd">
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <title>Configuring the hard disk vendor product data (VPD)</title>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <para>VirtualBox reports vendor product data for its virtual hard disks
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync which consist of hard disk serial number, firmware revision and model
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync number. These can be changed using the following commands:</para>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
dbabcd810984fc0731edff08eb281f0907dc867avboxsync <screen>VBoxManage setextradata "VM name"
304f31a2a37f5d690086bff2fb4a59228b4dbd40vboxsync "VBoxInternal/Devices/ahci/0/Config/Port0/SerialNumber" "serial"
dbabcd810984fc0731edff08eb281f0907dc867avboxsyncVBoxManage setextradata "VM name"
304f31a2a37f5d690086bff2fb4a59228b4dbd40vboxsync "VBoxInternal/Devices/ahci/0/Config/Port0/FirmwareRevision" "firmware"
dbabcd810984fc0731edff08eb281f0907dc867avboxsyncVBoxManage setextradata "VM name"
304f31a2a37f5d690086bff2fb4a59228b4dbd40vboxsync "VBoxInternal/Devices/ahci/0/Config/Port0/ModelNumber" "model"</screen>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <para>The serial number is a 20 byte alphanumeric string, the firmware
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync revision an 8 byte alphanumeric string and the model number a 40 byte
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync alphanumeric string. Instead of "Port0" (referring to the first port),
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync specify the desired SATA hard disk port.</para>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
4ae37290cb50a39ea45112540ac89f0b12b172b8vboxsync <para>The above commands apply to virtual machines with an AHCI (SATA)
4ae37290cb50a39ea45112540ac89f0b12b172b8vboxsync controller. The commands for virtual machines with an IDE controller
4ae37290cb50a39ea45112540ac89f0b12b172b8vboxsync are:</para>
4ae37290cb50a39ea45112540ac89f0b12b172b8vboxsync
4ae37290cb50a39ea45112540ac89f0b12b172b8vboxsync <screen>VBoxManage setextradata "VM name"
4ae37290cb50a39ea45112540ac89f0b12b172b8vboxsync "VBoxInternal/Devices/piix3ide/0/Config/PrimaryMaster/SerialNumber" "serial"
4ae37290cb50a39ea45112540ac89f0b12b172b8vboxsyncVBoxManage setextradata "VM name"
4ae37290cb50a39ea45112540ac89f0b12b172b8vboxsync "VBoxInternal/Devices/piix3ide/0/Config/PrimaryMaster/FirmwareRevision" "firmware"
4ae37290cb50a39ea45112540ac89f0b12b172b8vboxsyncVBoxManage setextradata "VM name"
4ae37290cb50a39ea45112540ac89f0b12b172b8vboxsync "VBoxInternal/Devices/piix3ide/0/Config/PrimaryMaster/ModelNumber" "model"</screen>
4ae37290cb50a39ea45112540ac89f0b12b172b8vboxsync
531197d0c66f247938034384b933cc002ed6441evboxsync <para>For hard disks it's also possible to mark the
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync drive as having a non-rotational medium with:</para>
4ae37290cb50a39ea45112540ac89f0b12b172b8vboxsync
4ae37290cb50a39ea45112540ac89f0b12b172b8vboxsync <screen>VBoxManage setextradata "VM name"
4ae37290cb50a39ea45112540ac89f0b12b172b8vboxsync "VBoxInternal/Devices/ahci/0/Config/Port0/NonRotational" "1"</screen>
4ae37290cb50a39ea45112540ac89f0b12b172b8vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <para>Additional three parameters are needed for CD/DVD drives to report
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync the vendor product data:</para>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
dbabcd810984fc0731edff08eb281f0907dc867avboxsync <screen>VBoxManage setextradata "VM name"
304f31a2a37f5d690086bff2fb4a59228b4dbd40vboxsync "VBoxInternal/Devices/ahci/0/Config/Port0/ATAPIVendorId" "vendor"
dbabcd810984fc0731edff08eb281f0907dc867avboxsyncVBoxManage setextradata "VM name"
304f31a2a37f5d690086bff2fb4a59228b4dbd40vboxsync "VBoxInternal/Devices/ahci/0/Config/Port0/ATAPIProductId" "product"
dbabcd810984fc0731edff08eb281f0907dc867avboxsyncVBoxManage setextradata "VM name"
304f31a2a37f5d690086bff2fb4a59228b4dbd40vboxsync "VBoxInternal/Devices/ahci/0/Config/Port0/ATAPIRevision" "revision"</screen>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <para>The vendor id is an 8 byte alphanumeric string, the product id an
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync 16 byte alphanumeric string and the revision a 4 byte alphanumeric
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync string. Instead of "Port0" (referring to the first port), specify the
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync desired SATA hard disk port.</para>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync </sect2>
cf289c84a0ecd24e5808b46b70d545cdc2c8805cvboxsync
dd1de51db071be42f2acdf532c49c851b78b0812vboxsync <sect2 id="iscsi-intnet">
dd1de51db071be42f2acdf532c49c851b78b0812vboxsync <title>Access iSCSI targets via Internal Networking</title>
cf289c84a0ecd24e5808b46b70d545cdc2c8805cvboxsync
cf289c84a0ecd24e5808b46b70d545cdc2c8805cvboxsync <para>As an experimental feature, VirtualBox allows for accessing an
cf289c84a0ecd24e5808b46b70d545cdc2c8805cvboxsync iSCSI target running in a virtual machine which is configured for using
cf289c84a0ecd24e5808b46b70d545cdc2c8805cvboxsync Internal Networking mode. Please see <xref linkend="storage-iscsi" />;
cf289c84a0ecd24e5808b46b70d545cdc2c8805cvboxsync <xref linkend="network_internal" />; and <xref
cf289c84a0ecd24e5808b46b70d545cdc2c8805cvboxsync linkend="vboxmanage-storageattach" /> for additional information.</para>
cf289c84a0ecd24e5808b46b70d545cdc2c8805cvboxsync
cf289c84a0ecd24e5808b46b70d545cdc2c8805cvboxsync <para>The IP stack accessing Internal Networking must be configured in
cf289c84a0ecd24e5808b46b70d545cdc2c8805cvboxsync the virtual machine which accesses the iSCSI target. A free static IP
cf289c84a0ecd24e5808b46b70d545cdc2c8805cvboxsync and a MAC address not used by other virtual machines must be chosen. In
cf289c84a0ecd24e5808b46b70d545cdc2c8805cvboxsync the example below, adapt the name of the virtual machine, the MAC
cf289c84a0ecd24e5808b46b70d545cdc2c8805cvboxsync address, the IP configuration and the Internal Networking name
fa3fa0f86525c9e18c25e7c1e9abdbe5faaf317bvboxsync ("MyIntNet") according to your needs. The following eight commands must
cf289c84a0ecd24e5808b46b70d545cdc2c8805cvboxsync first be issued:<screen>VBoxManage setextradata "VM name" VBoxInternal/Devices/IntNetIP/0/Trusted 1
cf289c84a0ecd24e5808b46b70d545cdc2c8805cvboxsyncVBoxManage setextradata "VM name" VBoxInternal/Devices/IntNetIP/0/Config/MAC 08:00:27:01:02:0f
cf289c84a0ecd24e5808b46b70d545cdc2c8805cvboxsyncVBoxManage setextradata "VM name" VBoxInternal/Devices/IntNetIP/0/Config/IP 10.0.9.1
cf289c84a0ecd24e5808b46b70d545cdc2c8805cvboxsyncVBoxManage setextradata "VM name" VBoxInternal/Devices/IntNetIP/0/Config/Netmask 255.255.255.0
cf289c84a0ecd24e5808b46b70d545cdc2c8805cvboxsyncVBoxManage setextradata "VM name" VBoxInternal/Devices/IntNetIP/0/LUN#0/Driver IntNet
cf289c84a0ecd24e5808b46b70d545cdc2c8805cvboxsyncVBoxManage setextradata "VM name" VBoxInternal/Devices/IntNetIP/0/LUN#0/Config/Network MyIntNet
c86c393454032ef132726cb301a802f7f799e44dvboxsyncVBoxManage setextradata "VM name" VBoxInternal/Devices/IntNetIP/0/LUN#0/Config/TrunkType 2
cf289c84a0ecd24e5808b46b70d545cdc2c8805cvboxsyncVBoxManage setextradata "VM name" VBoxInternal/Devices/IntNetIP/0/LUN#0/Config/IsService 1</screen></para>
cf289c84a0ecd24e5808b46b70d545cdc2c8805cvboxsync
cf289c84a0ecd24e5808b46b70d545cdc2c8805cvboxsync <para>Finally the iSCSI disk must be attached with the
cf289c84a0ecd24e5808b46b70d545cdc2c8805cvboxsync <computeroutput>--intnet</computeroutput> option to tell the iSCSI
e72d867f5d519d040e3e8a7f842e42bdc5120c5bvboxsync initiator to use internal networking:<screen>VBoxManage storageattach ... --medium iscsi
cf289c84a0ecd24e5808b46b70d545cdc2c8805cvboxsync --server 10.0.9.30 --target iqn.2008-12.com.sun:sampletarget --intnet</screen></para>
cf289c84a0ecd24e5808b46b70d545cdc2c8805cvboxsync
cf289c84a0ecd24e5808b46b70d545cdc2c8805cvboxsync <para>Compared to a "regular" iSCSI setup, IP address of the target
cf289c84a0ecd24e5808b46b70d545cdc2c8805cvboxsync <emphasis>must</emphasis> be specified as a numeric IP address, as there
cf289c84a0ecd24e5808b46b70d545cdc2c8805cvboxsync is no DNS resolver for internal networking.</para>
cf289c84a0ecd24e5808b46b70d545cdc2c8805cvboxsync
cf289c84a0ecd24e5808b46b70d545cdc2c8805cvboxsync <para>The virtual machine with the iSCSI target should be started before
cf289c84a0ecd24e5808b46b70d545cdc2c8805cvboxsync the VM using it is powered on. If a virtual machine using an iSCSI disk
cf289c84a0ecd24e5808b46b70d545cdc2c8805cvboxsync is started without having the iSCSI target powered up, it can take up to
cf289c84a0ecd24e5808b46b70d545cdc2c8805cvboxsync 200 seconds to detect this situation. The VM will fail to power
cf289c84a0ecd24e5808b46b70d545cdc2c8805cvboxsync up.</para>
cf289c84a0ecd24e5808b46b70d545cdc2c8805cvboxsync </sect2>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync </sect1>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <sect1>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <title>Legacy commands for using serial ports</title>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <para>Starting with version 1.4, VirtualBox provided support for virtual
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync serial ports, which, at the time, was rather complicated to set up with a
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync sequence of <computeroutput>VBoxManage setextradata</computeroutput>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync statements. Since version 1.5, that way of setting up serial ports is no
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync longer necessary and <emphasis>deprecated.</emphasis> To set up virtual
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync serial ports, use the methods now described in <xref
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync linkend="serialports" />.<note>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <para>For backwards compatibility, the old
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <computeroutput>setextradata</computeroutput> statements, whose
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync description is retained below from the old version of the manual, take
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <emphasis>precedence</emphasis> over the new way of configuring serial
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync ports. As a result, if configuring serial ports the new way doesn't
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync work, make sure the VM in question does not have old configuration
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync data such as below still active.</para>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync </note></para>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <para>The old sequence of configuring a serial port used the following 6
e39cffdec314db08b1b3405c4ccd56728eaaa76avboxsync commands:</para>
e39cffdec314db08b1b3405c4ccd56728eaaa76avboxsync
e39cffdec314db08b1b3405c4ccd56728eaaa76avboxsync <screen>VBoxManage setextradata "VM name"
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync "VBoxInternal/Devices/serial/0/Config/IRQ" 4
dbabcd810984fc0731edff08eb281f0907dc867avboxsyncVBoxManage setextradata "VM name"
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync "VBoxInternal/Devices/serial/0/Config/IOBase" 0x3f8
dbabcd810984fc0731edff08eb281f0907dc867avboxsyncVBoxManage setextradata "VM name"
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync "VBoxInternal/Devices/serial/0/LUN#0/Driver" Char
dbabcd810984fc0731edff08eb281f0907dc867avboxsyncVBoxManage setextradata "VM name"
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync "VBoxInternal/Devices/serial/0/LUN#0/AttachedDriver/Driver" NamedPipe
dbabcd810984fc0731edff08eb281f0907dc867avboxsyncVBoxManage setextradata "VM name"
304f31a2a37f5d690086bff2fb4a59228b4dbd40vboxsync "VBoxInternal/Devices/serial/0/LUN#0/AttachedDriver/Config/Location" "\\.\pipe\vboxCOM1"
dbabcd810984fc0731edff08eb281f0907dc867avboxsyncVBoxManage setextradata "VM name"
304f31a2a37f5d690086bff2fb4a59228b4dbd40vboxsync "VBoxInternal/Devices/serial/0/LUN#0/AttachedDriver/Config/IsServer" 1</screen>
e39cffdec314db08b1b3405c4ccd56728eaaa76avboxsync
e39cffdec314db08b1b3405c4ccd56728eaaa76avboxsync <para>This sets up a serial port in the guest with the default settings
e39cffdec314db08b1b3405c4ccd56728eaaa76avboxsync for COM1 (IRQ 4, I/O address 0x3f8) and the
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <computeroutput>Location</computeroutput> setting assumes that this
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync configuration is used on a Windows host, because the Windows named pipe
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync syntax is used. Keep in mind that on Windows hosts a named pipe must
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync always start with <computeroutput>\\.\pipe\</computeroutput>. On Linux the
a5082574e0ae7ff5d13ba4d68cc4900a1d376900vboxsync same configuration settings apply, except that the path name for the
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <computeroutput>Location</computeroutput> can be chosen more freely. Local
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync domain sockets can be placed anywhere, provided the user running
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync VirtualBox has the permission to create a new file in the directory. The
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync final command above defines that VirtualBox acts as a server, i.e. it
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync creates the named pipe itself instead of connecting to an already existing
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync one.</para>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync </sect1>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <sect1 id="changenat">
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <title>Fine-tuning the VirtualBox NAT engine</title>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <sect2>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <title>Configuring the address of a NAT network interface</title>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <para>In NAT mode, the guest network interface is assigned to the IPv4
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync range <computeroutput>10.0.x.0/24</computeroutput> by default where
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <computeroutput>x</computeroutput> corresponds to the instance of the
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync NAT interface +2. So <computeroutput>x</computeroutput> is 2 when there
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync is only one NAT instance active. In that case the guest is assigned to
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync the address <computeroutput>10.0.2.15</computeroutput>, the gateway is
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync set to <computeroutput>10.0.2.2</computeroutput> and the name server can
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync be found at <computeroutput>10.0.2.3</computeroutput>.</para>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <para>If, for any reason, the NAT network needs to be changed, this can
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync be achieved with the following command:</para>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
dbabcd810984fc0731edff08eb281f0907dc867avboxsync <screen>VBoxManage modifyvm "VM name" --natnet1 "192.168/16"</screen>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <para>This command would reserve the network addresses from
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <computeroutput>192.168.0.0</computeroutput> to
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <computeroutput>192.168.254.254</computeroutput> for the first NAT
dbabcd810984fc0731edff08eb281f0907dc867avboxsync network instance of "VM name". The guest IP would be assigned to
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <computeroutput>192.168.0.15</computeroutput> and the default gateway
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync could be found at <computeroutput>192.168.0.2</computeroutput>.</para>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync </sect2>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <sect2 id="nat-adv-tftp">
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <title>Configuring the boot server (next server) of a NAT network
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync interface</title>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <para>For network booting in NAT mode, by default VirtualBox uses a
10a02a45fc98a9a78ec46003653687eeaaf70165vboxsync built-in TFTP server at the IP address 10.0.2.4. This default behavior
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync should work fine for typical remote-booting scenarios. However, it is
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync possible to change the boot server IP and the location of the boot image
dbabcd810984fc0731edff08eb281f0907dc867avboxsync with the following commands: <screen>VBoxManage modifyvm "VM name" --nattftpserver1 10.0.2.2
dbabcd810984fc0731edff08eb281f0907dc867avboxsyncVBoxManage modifyvm "VM name" --nattftpfile1 /srv/tftp/boot/MyPXEBoot.pxe</screen></para>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync </sect2>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <sect2 id="nat-adv-settings">
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <title>Tuning TCP/IP buffers for NAT</title>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <para>The VirtualBox NAT stack performance is often determined by its
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync interaction with the host's TCP/IP stack and the size of several buffers
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync (<computeroutput>SO_RCVBUF</computeroutput> and
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <computeroutput>SO_SNDBUF</computeroutput>). For certain setups users
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync might want to adjust the buffer size for a better performance. This can
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync by achieved using the following commands (values are in kilobytes and
dbabcd810984fc0731edff08eb281f0907dc867avboxsync can range from 8 to 1024): <screen>VBoxManage modifyvm "VM name" --natsettings1 16000,128,128,0,0</screen>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync This example illustrates tuning the NAT settings. The first parameter is
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync the MTU, then the size of the socket's send buffer and the size of the
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync socket's receive buffer, the initial size of the TCP send window, and
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync lastly the initial size of the TCP receive window. Note that specifying
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync zero means fallback to the default value.</para>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <para>Each of these buffers has a default size of 64KB and default MTU
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync is 1500.</para>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync </sect2>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <sect2>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <title>Binding NAT sockets to a specific interface</title>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <para>By default, VirtualBox's NAT engine will route TCP/IP packets
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync through the default interface assigned by the host's TCP/IP stack. (The
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync technical reason for this is that the NAT engine uses sockets for
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync communication.) If, for some reason, you want to change this behavior,
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync you can tell the NAT engine to bind to a particular IP address instead.
dbabcd810984fc0731edff08eb281f0907dc867avboxsync Use the following command: <screen>VBoxManage modifyvm "VM name" --natbindip1 "10.45.0.2"</screen></para>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <para>After this, all outgoing traffic will be sent through the
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync interface with the IP address 10.45.0.2. Please make sure that this
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync interface is up and running prior to this assignment.</para>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync </sect2>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <sect2 id="nat-adv-dns">
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <title>Enabling DNS proxy in NAT mode</title>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <para>The NAT engine by default offers the same DNS servers to the guest
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync that are configured on the host. In some scenarios, it can be desirable
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync to hide the DNS server IPs from the guest, for example when this
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync information can change on the host due to expiring DHCP leases. In this
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync case, you can tell the NAT engine to act as DNS proxy using the
dbabcd810984fc0731edff08eb281f0907dc867avboxsync following command: <screen>VBoxManage modifyvm "VM name" --natdnsproxy1 on</screen></para>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync </sect2>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <sect2 id="nat_host_resolver_proxy">
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <title>Using the host's resolver as a DNS proxy in NAT mode</title>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <para>For resolving network names, the DHCP server of the NAT engine
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync offers a list of registered DNS servers of the host. If for some reason
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync you need to hide this DNS server list and use the host's resolver
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync settings, thereby forcing the VirtualBox NAT engine to intercept DNS
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync requests and forward them to host's resolver, use the following command:
dbabcd810984fc0731edff08eb281f0907dc867avboxsync <screen>VBoxManage modifyvm "VM name" --natdnshostresolver1 on</screen>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync Note that this setting is similar to the DNS proxy mode, however whereas
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync the proxy mode just forwards DNS requests to the appropriate servers,
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync the resolver mode will interpret the DNS requests and use the host's DNS
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync API to query the information and return it to the guest.</para>
c9523ad08e2f9ea1e29d94dc7e7ff83a99f6e232vboxsync
85f758f51d85462ce2b196c551ae52bdfd6b0c9cvboxsync <sect3 id="nat_host_resolver_name_intercepting">
c9523ad08e2f9ea1e29d94dc7e7ff83a99f6e232vboxsync <title>User-defined host name resolving</title>
c9523ad08e2f9ea1e29d94dc7e7ff83a99f6e232vboxsync <para>In some cases it might be useful to intercept the name resolving mechanism,
c9523ad08e2f9ea1e29d94dc7e7ff83a99f6e232vboxsync providing a user-defined IP address on a particular DNS request. The intercepting
c9523ad08e2f9ea1e29d94dc7e7ff83a99f6e232vboxsync mechanism allows the user to map not only a single host but domains and even more
c9523ad08e2f9ea1e29d94dc7e7ff83a99f6e232vboxsync complex namings conventions if required.</para>
c9523ad08e2f9ea1e29d94dc7e7ff83a99f6e232vboxsync <para>
c9523ad08e2f9ea1e29d94dc7e7ff83a99f6e232vboxsync The following command sets a rule for mapping a name to a specified IP:</para>
c9523ad08e2f9ea1e29d94dc7e7ff83a99f6e232vboxsync <screen>VBoxManage setextradata "VM name" \
c9523ad08e2f9ea1e29d94dc7e7ff83a99f6e232vboxsync "VBoxInternal/Devices/{pcnet,e1000}/0/LUN#0/Config/HostResolverMappings/ \
c9523ad08e2f9ea1e29d94dc7e7ff83a99f6e232vboxsync &lt;uniq name of interception rule&gt;/HostIP" &lt;IPv4&gt;
c9523ad08e2f9ea1e29d94dc7e7ff83a99f6e232vboxsyncVBoxManage setextradata "VM name" \
c9523ad08e2f9ea1e29d94dc7e7ff83a99f6e232vboxsync "VBoxInternal/Devices/{pcnet,e1000}/0/LUN#0/Config/HostResolverMappings/ \
c9523ad08e2f9ea1e29d94dc7e7ff83a99f6e232vboxsync &lt;uniq name of interception rule&gt;/HostName" &lt;name of host&gt;</screen>
c9523ad08e2f9ea1e29d94dc7e7ff83a99f6e232vboxsync <para>The following command sets a rule for mapping a pattern name to a specified IP:</para>
c9523ad08e2f9ea1e29d94dc7e7ff83a99f6e232vboxsync <screen>VBoxManage setextradata "VM name" \
c9523ad08e2f9ea1e29d94dc7e7ff83a99f6e232vboxsync "VBoxInternal/Devices/{pcnet,e1000}/0/LUN#0/Config/HostResolverMappings/ \
c9523ad08e2f9ea1e29d94dc7e7ff83a99f6e232vboxsync &lt;uniq name of interception rule&gt;/HostIP" &lt;IPv4&gt;
c9523ad08e2f9ea1e29d94dc7e7ff83a99f6e232vboxsyncVBoxManage setextradata "VM name" \
c9523ad08e2f9ea1e29d94dc7e7ff83a99f6e232vboxsync "VBoxInternal/Devices/{pcnet,e1000}/0/LUN#0/Config/HostResolverMappings/ \
c9523ad08e2f9ea1e29d94dc7e7ff83a99f6e232vboxsync &lt;uniq name of interception rule&gt;/HostNamePattern" &lt;hostpattern&gt;</screen>
c9523ad08e2f9ea1e29d94dc7e7ff83a99f6e232vboxsync <para>The host pattern may include <computeroutput>"|", "?" and "*"</computeroutput>.</para>
c9523ad08e2f9ea1e29d94dc7e7ff83a99f6e232vboxsync <para>This example demonstrates how to instruct the host-resolver mechanism to resolve
c9523ad08e2f9ea1e29d94dc7e7ff83a99f6e232vboxsync all domain and probably some mirrors of www.blocked-site.info site with IP 127.0.0.1:</para>
c9523ad08e2f9ea1e29d94dc7e7ff83a99f6e232vboxsync <screen>VBoxManage setextradata "VM name" \
c9523ad08e2f9ea1e29d94dc7e7ff83a99f6e232vboxsync "VBoxInternal/Devices/e1000/0/LUN#0/Config/HostResolverMappings/ \
c9523ad08e2f9ea1e29d94dc7e7ff83a99f6e232vboxsync all_blocked_site/HostIP" 127.0.0.1
c9523ad08e2f9ea1e29d94dc7e7ff83a99f6e232vboxsyncVBoxManage setextradata "VM name" \
c9523ad08e2f9ea1e29d94dc7e7ff83a99f6e232vboxsync "VBoxInternal/Devices/e1000/0/LUN#0/Config/HostResolverMappings/ \
c9523ad08e2f9ea1e29d94dc7e7ff83a99f6e232vboxsync all_blocked_site/HostNamePattern" "*.blocked-site.*|*.fb.org"</screen>
c9523ad08e2f9ea1e29d94dc7e7ff83a99f6e232vboxsync <note><para>The host resolver mechanism should be enabled to use user-defined
c9523ad08e2f9ea1e29d94dc7e7ff83a99f6e232vboxsync mapping rules (please see
c9523ad08e2f9ea1e29d94dc7e7ff83a99f6e232vboxsync <xref linkend="nat_host_resolver_proxy" /> for more details).</para></note>
85f758f51d85462ce2b196c551ae52bdfd6b0c9cvboxsync </sect3>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync </sect2>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <sect2 id="nat-adv-alias">
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <title>Configuring aliasing of the NAT engine</title>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <para>By default, the NAT core uses aliasing and uses random ports when
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync generating an alias for a connection. This works well for the most
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync protocols like SSH, FTP and so on. Though some protocols might need a
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync more transparent behavior or may depend on the real port number the
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync packet was sent from. It is possible to change the NAT mode via the
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync VBoxManage frontend with the following commands: <screen>VBoxManage modifyvm "VM name" --nataliasmode1 proxyonly</screen>
ae8425b895d2e881de7f542f8d20bea13f205f51vboxsync and <screen>VBoxManage modifyvm "Linux Guest" --nataliasmode1 sameports</screen>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync The first example disables aliasing and switches NAT into transparent
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync mode, the second example enforces preserving of port values. These modes
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync can be combined if necessary.</para>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync </sect2>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync </sect1>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <sect1 id="changedmi">
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <title>Configuring the BIOS DMI information</title>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <para>The DMI data VirtualBox provides to guests can be changed for a
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync specific VM. Use the following commands to configure the DMI BIOS
9ad841c97d2390e4f8deddf48739acaac8ffdb49vboxsync information. In case your VM is configured to use EFI firmware you need to
9ad841c97d2390e4f8deddf48739acaac8ffdb49vboxsync replace <code>pcbios</code> by <code>efi</code> in the keys.</para>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
1fcabda547f526deb351f39b455062dc165387d9vboxsync <sect2>
1fcabda547f526deb351f39b455062dc165387d9vboxsync <title>DMI BIOS information (type 0)</title>
1fcabda547f526deb351f39b455062dc165387d9vboxsync <screen>VBoxManage setextradata "VM name"
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync "VBoxInternal/Devices/pcbios/0/Config/DmiBIOSVendor" "BIOS Vendor"
dbabcd810984fc0731edff08eb281f0907dc867avboxsyncVBoxManage setextradata "VM name"
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync "VBoxInternal/Devices/pcbios/0/Config/DmiBIOSVersion" "BIOS Version"
dbabcd810984fc0731edff08eb281f0907dc867avboxsyncVBoxManage setextradata "VM name"
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync "VBoxInternal/Devices/pcbios/0/Config/DmiBIOSReleaseDate" "BIOS Release Date"
dbabcd810984fc0731edff08eb281f0907dc867avboxsyncVBoxManage setextradata "VM name"
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync "VBoxInternal/Devices/pcbios/0/Config/DmiBIOSReleaseMajor" 1
dbabcd810984fc0731edff08eb281f0907dc867avboxsyncVBoxManage setextradata "VM name"
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync "VBoxInternal/Devices/pcbios/0/Config/DmiBIOSReleaseMinor" 2
dbabcd810984fc0731edff08eb281f0907dc867avboxsyncVBoxManage setextradata "VM name"
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync "VBoxInternal/Devices/pcbios/0/Config/DmiBIOSFirmwareMajor" 3
dbabcd810984fc0731edff08eb281f0907dc867avboxsyncVBoxManage setextradata "VM name"
1fcabda547f526deb351f39b455062dc165387d9vboxsync "VBoxInternal/Devices/pcbios/0/Config/DmiBIOSFirmwareMinor" 4</screen>
1fcabda547f526deb351f39b455062dc165387d9vboxsync </sect2>
1fcabda547f526deb351f39b455062dc165387d9vboxsync <sect2>
1fcabda547f526deb351f39b455062dc165387d9vboxsync <title>DMI system information (type 1)</title>
1fcabda547f526deb351f39b455062dc165387d9vboxsync <screen>VBoxManage setextradata "VM name"
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync "VBoxInternal/Devices/pcbios/0/Config/DmiSystemVendor" "System Vendor"
dbabcd810984fc0731edff08eb281f0907dc867avboxsyncVBoxManage setextradata "VM name"
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync "VBoxInternal/Devices/pcbios/0/Config/DmiSystemProduct" "System Product"
dbabcd810984fc0731edff08eb281f0907dc867avboxsyncVBoxManage setextradata "VM name"
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync "VBoxInternal/Devices/pcbios/0/Config/DmiSystemVersion" "System Version"
dbabcd810984fc0731edff08eb281f0907dc867avboxsyncVBoxManage setextradata "VM name"
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync "VBoxInternal/Devices/pcbios/0/Config/DmiSystemSerial" "System Serial"
434521f20688750b48498b6cabbc7d109d053942vboxsyncVBoxManage setextradata "VM name"
434521f20688750b48498b6cabbc7d109d053942vboxsync "VBoxInternal/Devices/pcbios/0/Config/DmiSystemSKU" "System SKU"
dbabcd810984fc0731edff08eb281f0907dc867avboxsyncVBoxManage setextradata "VM name"
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync "VBoxInternal/Devices/pcbios/0/Config/DmiSystemFamily" "System Family"
dbabcd810984fc0731edff08eb281f0907dc867avboxsyncVBoxManage setextradata "VM name"
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync "VBoxInternal/Devices/pcbios/0/Config/DmiSystemUuid"
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync "9852bf98-b83c-49db-a8de-182c42c7226b"</screen>
1fcabda547f526deb351f39b455062dc165387d9vboxsync </sect2>
1fcabda547f526deb351f39b455062dc165387d9vboxsync <sect2>
1fcabda547f526deb351f39b455062dc165387d9vboxsync <title>DMI board information (type 2)</title>
1fcabda547f526deb351f39b455062dc165387d9vboxsync <screen>VBoxManage setextradata "VM name"
1fcabda547f526deb351f39b455062dc165387d9vboxsync "VBoxInternal/Devices/pcbios/0/Config/DmiBoardVendor" "Board Vendor"
1fcabda547f526deb351f39b455062dc165387d9vboxsyncVBoxManage setextradata "VM name"
1fcabda547f526deb351f39b455062dc165387d9vboxsync "VBoxInternal/Devices/pcbios/0/Config/DmiBoardProduct" "Board Product"
1fcabda547f526deb351f39b455062dc165387d9vboxsyncVBoxManage setextradata "VM name"
1fcabda547f526deb351f39b455062dc165387d9vboxsync "VBoxInternal/Devices/pcbios/0/Config/DmiBoardVersion" "Board Version"
1fcabda547f526deb351f39b455062dc165387d9vboxsyncVBoxManage setextradata "VM name"
1fcabda547f526deb351f39b455062dc165387d9vboxsync "VBoxInternal/Devices/pcbios/0/Config/DmiBoardSerial" "Board Serial"
1fcabda547f526deb351f39b455062dc165387d9vboxsyncVBoxManage setextradata "VM name"
1fcabda547f526deb351f39b455062dc165387d9vboxsync "VBoxInternal/Devices/pcbios/0/Config/DmiBoardAssetTag" "Board Tag"
1fcabda547f526deb351f39b455062dc165387d9vboxsyncVBoxManage setextradata "VM name"
1fcabda547f526deb351f39b455062dc165387d9vboxsync "VBoxInternal/Devices/pcbios/0/Config/DmiBoardLocInChass" "Board Location"
1fcabda547f526deb351f39b455062dc165387d9vboxsyncVBoxManage setextradata "VM name"
d9db473be457a0dea5d82e138ce986246444846bvboxsync "VBoxInternal/Devices/pcbios/0/Config/DmiBoardBoardType" 10</screen>
1fcabda547f526deb351f39b455062dc165387d9vboxsync </sect2>
1fcabda547f526deb351f39b455062dc165387d9vboxsync <sect2>
1fcabda547f526deb351f39b455062dc165387d9vboxsync <title>DMI system enclosure or chassis (type 3)</title>
1fcabda547f526deb351f39b455062dc165387d9vboxsync <screen>VBoxManage setextradata "VM name"
1fcabda547f526deb351f39b455062dc165387d9vboxsync "VBoxInternal/Devices/pcbios/0/Config/DmiChassisVendor" "Chassis Vendor"
d9db473be457a0dea5d82e138ce986246444846bvboxsyncVBoxManage setextradata "VM name"
d9db473be457a0dea5d82e138ce986246444846bvboxsync "VBoxInternal/Devices/pcbios/0/Config/DmiChassisType" 3
1fcabda547f526deb351f39b455062dc165387d9vboxsyncVBoxManage setextradata "VM name"
1fcabda547f526deb351f39b455062dc165387d9vboxsync "VBoxInternal/Devices/pcbios/0/Config/DmiChassisVersion" "Chassis Version"
1fcabda547f526deb351f39b455062dc165387d9vboxsyncVBoxManage setextradata "VM name"
1fcabda547f526deb351f39b455062dc165387d9vboxsync "VBoxInternal/Devices/pcbios/0/Config/DmiChassisSerial" "Chassis Serial"
1fcabda547f526deb351f39b455062dc165387d9vboxsyncVBoxManage setextradata "VM name"
1fcabda547f526deb351f39b455062dc165387d9vboxsync "VBoxInternal/Devices/pcbios/0/Config/DmiChassisAssetTag" "Chassis Tag"</screen>
1fcabda547f526deb351f39b455062dc165387d9vboxsync </sect2>
1fcabda547f526deb351f39b455062dc165387d9vboxsync <sect2>
1fcabda547f526deb351f39b455062dc165387d9vboxsync <title>DMI processor informatiion (type 4)</title>
1fcabda547f526deb351f39b455062dc165387d9vboxsync <screen>VBoxManage setextradata "VM name"
1fcabda547f526deb351f39b455062dc165387d9vboxsync "VBoxInternal/Devices/pcbios/0/Config/DmiProcManufacturer" "GenuineIntel"
1fcabda547f526deb351f39b455062dc165387d9vboxsyncVBoxManage setextradata "VM name"
1fcabda547f526deb351f39b455062dc165387d9vboxsync "VBoxInternal/Devices/pcbios/0/Config/DmiProcVersion" "Pentium(R) III"</screen>
1fcabda547f526deb351f39b455062dc165387d9vboxsync </sect2>
1fcabda547f526deb351f39b455062dc165387d9vboxsync <sect2>
1fcabda547f526deb351f39b455062dc165387d9vboxsync <title>DMI OEM strings (type 11)</title>
1fcabda547f526deb351f39b455062dc165387d9vboxsync <screen>VBoxManage setextradata "VM name"
1fcabda547f526deb351f39b455062dc165387d9vboxsync "VBoxInternal/Devices/pcbios/0/Config/DmiOEMVBoxVer" "vboxVer_1.2.3"
1fcabda547f526deb351f39b455062dc165387d9vboxsyncVBoxManage setextradata "VM name"
1fcabda547f526deb351f39b455062dc165387d9vboxsync "VBoxInternal/Devices/pcbios/0/Config/DmiOEMVBoxRev" "vboxRev_12345"</screen>
1fcabda547f526deb351f39b455062dc165387d9vboxsync </sect2>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <para>If a DMI string is not set, the default value of VirtualBox is used.
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync To set an empty string use
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <computeroutput>"&lt;EMPTY&gt;"</computeroutput>.</para>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <para>Note that in the above list, all quoted parameters (DmiBIOSVendor,
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync DmiBIOSVersion but not DmiBIOSReleaseMajor) are expected to be strings. If
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync such a string is a valid number, the parameter is treated as number and
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync the VM will most probably refuse to start with an
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <computeroutput>VERR_CFGM_NOT_STRING</computeroutput> error. In that case,
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync use <computeroutput>"string:&lt;value&gt;"</computeroutput>, for instance
dbabcd810984fc0731edff08eb281f0907dc867avboxsync <screen>VBoxManage setextradata "VM name"
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync "VBoxInternal/Devices/pcbios/0/Config/DmiSystemSerial" "string:1234"</screen></para>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <para>Changing this information can be necessary to provide the DMI
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync information of the host to the guest to prevent Windows from asking for a
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync new product key. On Linux hosts the DMI BIOS information can be obtained
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync with <screen>dmidecode -t0</screen>and the DMI system information can be
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync obtained with <screen>dmidecode -t1</screen></para>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync </sect1>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
2eb85afb963be602d58f63aa6d70884fb5bf6717vboxsync <sect1 id="changeacpicust">
2eb85afb963be602d58f63aa6d70884fb5bf6717vboxsync <title>Configuring the custom ACPI table</title>
2eb85afb963be602d58f63aa6d70884fb5bf6717vboxsync
2eb85afb963be602d58f63aa6d70884fb5bf6717vboxsync <para>VirtualBox can be configured to present an custom ACPI table to
2eb85afb963be602d58f63aa6d70884fb5bf6717vboxsync the guest. Use the following command to configure this:</para>
2eb85afb963be602d58f63aa6d70884fb5bf6717vboxsync
2eb85afb963be602d58f63aa6d70884fb5bf6717vboxsync <screen>VBoxManage setextradata "VM name"
2eb85afb963be602d58f63aa6d70884fb5bf6717vboxsync "VBoxInternal/Devices/acpi/0/Config/CustomTable" "/path/to/table.bin"</screen>
2eb85afb963be602d58f63aa6d70884fb5bf6717vboxsync
2eb85afb963be602d58f63aa6d70884fb5bf6717vboxsync <para>Configuring a custom ACPI table can prevent Windows
2eb85afb963be602d58f63aa6d70884fb5bf6717vboxsync Vista and Windows 7 from asking for a new product key. On Linux hosts,
2eb85afb963be602d58f63aa6d70884fb5bf6717vboxsync one of the host tables can be read from
2eb85afb963be602d58f63aa6d70884fb5bf6717vboxsync <filename>/sys/firmware/acpi/tables/</filename>.</para>
2eb85afb963be602d58f63aa6d70884fb5bf6717vboxsync </sect1>
2eb85afb963be602d58f63aa6d70884fb5bf6717vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <sect1>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <title>Fine-tuning timers and time synchronization</title>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <sect2 id="changetscmode">
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <title>Configuring the guest time stamp counter (TSC) to reflect guest
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync execution</title>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <para>By default, VirtualBox keeps all sources of time visible to the
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync guest synchronized to a single time source, the monotonic host time.
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync This reflects the assumptions of many guest operating systems, which
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync expect all time sources to reflect "wall clock" time. In special
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync circumstances it may be useful however to make the TSC (time stamp
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync counter) in the guest reflect the time actually spent executing the
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync guest.</para>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <para>This special TSC handling mode can be enabled on a per-VM basis,
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync and for best results must be used only in combination with hardware
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync virtualization. To enable this mode use the following command:</para>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
dbabcd810984fc0731edff08eb281f0907dc867avboxsync <screen>VBoxManage setextradata "VM name" "VBoxInternal/TM/TSCTiedToExecution" 1</screen>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <para>To revert to the default TSC handling mode use:</para>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
dbabcd810984fc0731edff08eb281f0907dc867avboxsync <screen>VBoxManage setextradata "VM name" "VBoxInternal/TM/TSCTiedToExecution"</screen>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <para>Note that if you use the special TSC handling mode with a guest
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync operating system which is very strict about the consistency of time
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync sources you may get a warning or error message about the timing
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync inconsistency. It may also cause clocks to become unreliable with some
6785d00904fafda14b1501bac0d15cadfb3a52f7vboxsync guest operating systems depending on how they use the TSC.</para>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync </sect2>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <sect2 id="warpguest">
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <title>Accelerate or slow down the guest clock</title>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <para>For certain purposes it can be useful to accelerate or to slow
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync down the (virtual) guest clock. This can be achieved as follows:</para>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
dbabcd810984fc0731edff08eb281f0907dc867avboxsync <screen>VBoxManage setextradata "VM name" "VBoxInternal/TM/WarpDrivePercentage" 200</screen>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <para>The above example will double the speed of the guest clock
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync while</para>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
dbabcd810984fc0731edff08eb281f0907dc867avboxsync <screen>VBoxManage setextradata "VM name" "VBoxInternal/TM/WarpDrivePercentage" 50</screen>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <para>will halve the speed of the guest clock. Note that changing the
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync rate of the virtual clock can confuse the guest and can even lead to
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync abnormal guest behavior. For instance, a higher clock rate means shorter
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync timeouts for virtual devices with the result that a slightly increased
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync response time of a virtual device due to an increased host load can
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync cause guest failures. Note further that any time synchronization
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync mechanism will frequently try to resynchronize the guest clock with the
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync reference clock (which is the host clock if the VirtualBox Guest
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync Additions are active). Therefore any time synchronization should be
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync disabled if the rate of the guest clock is changed as described above
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync (see <xref linkend="changetimesync" />).</para>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync </sect2>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <sect2 id="changetimesync">
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <title>Tuning the Guest Additions time synchronization
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync parameters</title>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <para>The VirtualBox Guest Additions ensure that the guest's system time
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync is synchronized with the host time. There are several parameters which
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync can be tuned. The parameters can be set for a specific VM using the
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync following command:</para>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
c9523ad08e2f9ea1e29d94dc7e7ff83a99f6e232vboxsync <screen>VBoxManage guestproperty set "VM name" "/VirtualBox/GuestAdd/VBoxService/PARAMETER" VALUE</screen>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <para>where <computeroutput>PARAMETER</computeroutput> is one of the
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync following:</para>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <para><glosslist>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <glossentry>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <glossterm><computeroutput>--timesync-interval</computeroutput></glossterm>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <glossdef>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <para>Specifies the interval at which to synchronize the time
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync with the host. The default is 10000 ms (10 seconds).</para>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync </glossdef>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync </glossentry>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <glossentry>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <glossterm><computeroutput>--timesync-min-adjust</computeroutput></glossterm>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <glossdef>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <para>The minimum absolute drift value measured in milliseconds
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync to make adjustments for. The default is 1000 ms on OS/2 and 100
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync ms elsewhere.</para>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync </glossdef>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync </glossentry>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <glossentry>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <glossterm><computeroutput>--timesync-latency-factor</computeroutput></glossterm>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <glossdef>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <para>The factor to multiply the time query latency with to
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync calculate the dynamic minimum adjust time. The default is 8
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync times, that means in detail: Measure the time it takes to
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync determine the host time (the guest has to contact the VM host
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync service which may take some time), multiply this value by 8 and
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync do an adjustment only if the time difference between host and
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync guest is bigger than this value. Don't do any time adjustment
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync otherwise.</para>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync </glossdef>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync </glossentry>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <glossentry>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <glossterm><computeroutput>--timesync-max-latency</computeroutput></glossterm>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <glossdef>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <para>The max host timer query latency to accept. The default is
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync 250 ms.</para>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync </glossdef>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync </glossentry>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <glossentry>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <glossterm><computeroutput>--timesync-set-threshold</computeroutput></glossterm>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <glossdef>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <para>The absolute drift threshold, given as milliseconds where
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync to start setting the time instead of trying to smoothly adjust
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync it. The default is 20 minutes.</para>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync </glossdef>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync </glossentry>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <glossentry>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <glossterm><computeroutput>--timesync-set-start</computeroutput></glossterm>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <glossdef>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <para>Set the time when starting the time sync service.</para>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync </glossdef>
82ec021964a07a8f01bb7d741ce1d8150171bc8avboxsync </glossentry>
82ec021964a07a8f01bb7d741ce1d8150171bc8avboxsync
82ec021964a07a8f01bb7d741ce1d8150171bc8avboxsync <glossentry>
e39cffdec314db08b1b3405c4ccd56728eaaa76avboxsync <glossterm><computeroutput>--timesync-set-on-restore
e39cffdec314db08b1b3405c4ccd56728eaaa76avboxsync 0|1</computeroutput></glossterm>
82ec021964a07a8f01bb7d741ce1d8150171bc8avboxsync <glossdef>
82ec021964a07a8f01bb7d741ce1d8150171bc8avboxsync <para>Set the time after the VM was restored from a saved state
e39cffdec314db08b1b3405c4ccd56728eaaa76avboxsync when passing 1 as parameter (default). Disable by passing 0. In
e39cffdec314db08b1b3405c4ccd56728eaaa76avboxsync the latter case, the time will be adjusted smoothly which can
e39cffdec314db08b1b3405c4ccd56728eaaa76avboxsync take a long time.</para>
82ec021964a07a8f01bb7d741ce1d8150171bc8avboxsync </glossdef>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync </glossentry>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync </glosslist></para>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <para>All these parameters can be specified as command line parameters
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync to VBoxService as well.</para>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync </sect2>
ae1ed5f418cc952541dc91da2e61b557535c61bfvboxsync
ae1ed5f418cc952541dc91da2e61b557535c61bfvboxsync <sect2 id="disabletimesync">
2b55a3168b490c568b411befb5fb7d2e28813ee8vboxsync
ae1ed5f418cc952541dc91da2e61b557535c61bfvboxsync <title>Disabling the Guest Additions time synchronization</title>
ae1ed5f418cc952541dc91da2e61b557535c61bfvboxsync
ae1ed5f418cc952541dc91da2e61b557535c61bfvboxsync <para>Once installed and started, the VirtualBox Guest Additions will
ae1ed5f418cc952541dc91da2e61b557535c61bfvboxsync try to synchronize the guest time with the host time. This can be
d513b77a25a975921896e8ff2b719757603197fcvboxsync prevented by forbidding the guest service from reading the host
ae1ed5f418cc952541dc91da2e61b557535c61bfvboxsync clock:</para>
ae1ed5f418cc952541dc91da2e61b557535c61bfvboxsync
ae1ed5f418cc952541dc91da2e61b557535c61bfvboxsync <screen>VBoxManage setextradata "VM name" "VBoxInternal/Devices/VMMDev/0/Config/GetHostTimeDisabled" 1</screen>
ae1ed5f418cc952541dc91da2e61b557535c61bfvboxsync
ae1ed5f418cc952541dc91da2e61b557535c61bfvboxsync </sect2>
ae1ed5f418cc952541dc91da2e61b557535c61bfvboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync </sect1>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
d59c16b6a080bcdce09dfd882341c1b2ed96a393vboxsync <sect1 id="vboxbowsolaris11">
386db787081ab13628e0123bd65eb2f272f073a5vboxsync <title>Installing the alternate bridged networking driver on Solaris 11
d59c16b6a080bcdce09dfd882341c1b2ed96a393vboxsync hosts</title>
d59c16b6a080bcdce09dfd882341c1b2ed96a393vboxsync
d59c16b6a080bcdce09dfd882341c1b2ed96a393vboxsync <para>Starting with VirtualBox 4.1, VirtualBox ships a new network filter
d59c16b6a080bcdce09dfd882341c1b2ed96a393vboxsync driver that utilizes Solaris 11's Crossbow functionality. By default, this
386db787081ab13628e0123bd65eb2f272f073a5vboxsync new driver is installed for Solaris 11 hosts (builds 159 and above) that
386db787081ab13628e0123bd65eb2f272f073a5vboxsync has support for it.</para>
d59c16b6a080bcdce09dfd882341c1b2ed96a393vboxsync
386db787081ab13628e0123bd65eb2f272f073a5vboxsync <para>To force installation of the older STREAMS based network filter
b666a60a65a283baf4a2ae07a3fceede2c70e25dvboxsync driver, execute as root the following command before installing the
386db787081ab13628e0123bd65eb2f272f073a5vboxsync VirtualBox package:</para>
d59c16b6a080bcdce09dfd882341c1b2ed96a393vboxsync
d59c16b6a080bcdce09dfd882341c1b2ed96a393vboxsync <screen>touch /etc/vboxinst_vboxflt</screen>
d59c16b6a080bcdce09dfd882341c1b2ed96a393vboxsync
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync <para>To force installation of the Crossbow based network filter driver,
b666a60a65a283baf4a2ae07a3fceede2c70e25dvboxsync execute as root the following command before installing the VirtualBox
386db787081ab13628e0123bd65eb2f272f073a5vboxsync package:</para>
d59c16b6a080bcdce09dfd882341c1b2ed96a393vboxsync
d59c16b6a080bcdce09dfd882341c1b2ed96a393vboxsync <screen>touch /etc/vboxinst_vboxbow</screen>
d59c16b6a080bcdce09dfd882341c1b2ed96a393vboxsync
386db787081ab13628e0123bd65eb2f272f073a5vboxsync <para>To check which driver is currently being used by VirtualBox,
386db787081ab13628e0123bd65eb2f272f073a5vboxsync execute:</para>
d59c16b6a080bcdce09dfd882341c1b2ed96a393vboxsync
d59c16b6a080bcdce09dfd882341c1b2ed96a393vboxsync <screen>modinfo | grep vbox</screen>
d59c16b6a080bcdce09dfd882341c1b2ed96a393vboxsync
386db787081ab13628e0123bd65eb2f272f073a5vboxsync <para>If the output contains "vboxbow", it indicates VirtualBox is using
649076983a27a61a0f8289d4631975051f4b829evboxsync the Crossbow network filter driver, while the name "vboxflt" indicates
649076983a27a61a0f8289d4631975051f4b829evboxsync usage of the older STREAMS network filter.</para>
386db787081ab13628e0123bd65eb2f272f073a5vboxsync </sect1>
386db787081ab13628e0123bd65eb2f272f073a5vboxsync
386db787081ab13628e0123bd65eb2f272f073a5vboxsync <sect1 id="vboxbowvnictemplates">
386db787081ab13628e0123bd65eb2f272f073a5vboxsync <title>VirtualBox VNIC templates for VLANs on Solaris 11 hosts</title>
386db787081ab13628e0123bd65eb2f272f073a5vboxsync
386db787081ab13628e0123bd65eb2f272f073a5vboxsync <para>VirtualBox supports VNIC (Virtual Network Interface) templates for
649076983a27a61a0f8289d4631975051f4b829evboxsync configuring VMs over VLANs.<footnote>
386db787081ab13628e0123bd65eb2f272f073a5vboxsync <para>Support for Crossbow based bridged networking was introduced
386db787081ab13628e0123bd65eb2f272f073a5vboxsync with VirtualBox 4.1 and requires Solaris 11 build 159 or above.</para>
386db787081ab13628e0123bd65eb2f272f073a5vboxsync </footnote> A VirtualBox VNIC template is a VNIC whose name starts with
4437cb045c2d337ea315a81ad6262b3c09fa64a7vboxsync "vboxvnic_template" (case-sensitive).</para>
1e22f470082dea5de7ba42e84ebfa4fea0de1d2avboxsync
82a063d3ddb2484b7bfd25156b55101ed86a16dfvboxsync <para>On Solaris 11 hosts<footnote><para>When Crossbow based bridged
82a063d3ddb2484b7bfd25156b55101ed86a16dfvboxsync networking is used.</para></footnote>, a VNIC template may be used to
82a063d3ddb2484b7bfd25156b55101ed86a16dfvboxsync specify the VLAN ID to use while bridging over a network link.</para>
386db787081ab13628e0123bd65eb2f272f073a5vboxsync
52ffe8c69d22100518f63db9ccc3dd748b3455b9vboxsync <para>Here is an example of how to use a VNIC template to configure a VM
52ffe8c69d22100518f63db9ccc3dd748b3455b9vboxsync over a VLAN. Create a VirtualBox VNIC template, by executing as root:</para>
386db787081ab13628e0123bd65eb2f272f073a5vboxsync
f34e466484d9727a000bac50c2e198c0173168d4vboxsync <screen>dladm create-vnic -t -l nge0 -v 23 vboxvnic_template0</screen>
386db787081ab13628e0123bd65eb2f272f073a5vboxsync
52ffe8c69d22100518f63db9ccc3dd748b3455b9vboxsync <para>This will create a temporary VNIC template over interface "nge0"
52ffe8c69d22100518f63db9ccc3dd748b3455b9vboxsync with the VLAN ID 23. To create VNIC templates that are persistent across
52ffe8c69d22100518f63db9ccc3dd748b3455b9vboxsync host reboots, skip the <computeroutput>-t</computeroutput> parameter in the
386db787081ab13628e0123bd65eb2f272f073a5vboxsync above command. You may check the current state of links using:</para>
386db787081ab13628e0123bd65eb2f272f073a5vboxsync
386db787081ab13628e0123bd65eb2f272f073a5vboxsync <para><screen>$ dladm show-link
386db787081ab13628e0123bd65eb2f272f073a5vboxsyncLINK CLASS MTU STATE BRIDGE OVER
386db787081ab13628e0123bd65eb2f272f073a5vboxsyncnge0 phys 1500 up -- --
386db787081ab13628e0123bd65eb2f272f073a5vboxsyncnge1 phys 1500 down -- --
386db787081ab13628e0123bd65eb2f272f073a5vboxsyncvboxvnic_template0 vnic 1500 up -- nge0
386db787081ab13628e0123bd65eb2f272f073a5vboxsync
386db787081ab13628e0123bd65eb2f272f073a5vboxsync$ dladm show-vnic
386db787081ab13628e0123bd65eb2f272f073a5vboxsyncLINK OVER SPEED MACADDRESS MACADDRTYPE VID
f34e466484d9727a000bac50c2e198c0173168d4vboxsyncvboxvnic_template0 nge0 1000 2:8:20:25:12:75 random 23</screen></para>
386db787081ab13628e0123bd65eb2f272f073a5vboxsync
52ffe8c69d22100518f63db9ccc3dd748b3455b9vboxsync <para>Once the VNIC template is created, any VMs that need to be on VLAN
52ffe8c69d22100518f63db9ccc3dd748b3455b9vboxsync 23 over the interface "nge0" can be configured to bridge using this VNIC
52ffe8c69d22100518f63db9ccc3dd748b3455b9vboxsync template.</para>
1e22f470082dea5de7ba42e84ebfa4fea0de1d2avboxsync
52ffe8c69d22100518f63db9ccc3dd748b3455b9vboxsync <para>VNIC templates makes managing VMs on VLANs simpler and efficient.
52ffe8c69d22100518f63db9ccc3dd748b3455b9vboxsync The VLAN details are not stored as part of every VM's configuration but
52ffe8c69d22100518f63db9ccc3dd748b3455b9vboxsync rather inherited from the VNIC template while starting the VM. The VNIC
52ffe8c69d22100518f63db9ccc3dd748b3455b9vboxsync template itself can be modified anytime using <computeroutput>dladm</computeroutput>.</para>
1e22f470082dea5de7ba42e84ebfa4fea0de1d2avboxsync
52ffe8c69d22100518f63db9ccc3dd748b3455b9vboxsync <para>VNIC templates can be created with additional properties such as
52ffe8c69d22100518f63db9ccc3dd748b3455b9vboxsync bandwidth limits, CPU fanout etc. Refer to your Solaris network
52ffe8c69d22100518f63db9ccc3dd748b3455b9vboxsync documentation on how to accomplish this. These additional properties,
52ffe8c69d22100518f63db9ccc3dd748b3455b9vboxsync if any, are also applied to VMs which bridge using the VNIC template.</para>
d59c16b6a080bcdce09dfd882341c1b2ed96a393vboxsync </sect1>
d59c16b6a080bcdce09dfd882341c1b2ed96a393vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <sect1 id="addhostonlysolaris">
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <title>Configuring multiple host-only network interfaces on Solaris
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync hosts</title>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <para>By default VirtualBox provides you with one host-only network
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync interface. Adding more host-only network interfaces on Solaris hosts
dbc14e4e4421a90b09b14a253be920edb9faf584vboxsync requires manual configuration. Here's how to add another host-only
dbc14e4e4421a90b09b14a253be920edb9faf584vboxsync network interface.</para>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
dbc14e4e4421a90b09b14a253be920edb9faf584vboxsync <para>Begin by stopping all running VMs. Then, unplumb the existing
dbc14e4e4421a90b09b14a253be920edb9faf584vboxsync "vboxnet0" interface by execute the following command as root:</para>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <screen>ifconfig vboxnet0 unplumb</screen>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
dbc14e4e4421a90b09b14a253be920edb9faf584vboxsync <para>If you have several vboxnet interfaces, you will need to unplumb
dbc14e4e4421a90b09b14a253be920edb9faf584vboxsync all of them. Once all vboxnet interfaces are unplumbed, remove the
dbc14e4e4421a90b09b14a253be920edb9faf584vboxsync driver by executing the following command as root:</para>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
dbc14e4e4421a90b09b14a253be920edb9faf584vboxsync <screen>rem_drv vboxnet</screen>
aed733b777035afdfbb4c3ea1d65d5ab617c02d0vboxsync
dbc14e4e4421a90b09b14a253be920edb9faf584vboxsync <para>Edit the file <computeroutput>/platform/i86pc/kernel/drv/vboxnet.conf</computeroutput>
dbc14e4e4421a90b09b14a253be920edb9faf584vboxsync and add a line for the new interface we want to add as shown below:</para>
dbc14e4e4421a90b09b14a253be920edb9faf584vboxsync
dbc14e4e4421a90b09b14a253be920edb9faf584vboxsync <screen>name="vboxnet" parent="pseudo" instance=1;
dbc14e4e4421a90b09b14a253be920edb9faf584vboxsyncname="vboxnet" parent="pseudo" instance=2;</screen>
dbc14e4e4421a90b09b14a253be920edb9faf584vboxsync
dbc14e4e4421a90b09b14a253be920edb9faf584vboxsync <para>Add as many of these lines as required with each line having a
dbc14e4e4421a90b09b14a253be920edb9faf584vboxsync unique instance number.</para>
dbc14e4e4421a90b09b14a253be920edb9faf584vboxsync
dbc14e4e4421a90b09b14a253be920edb9faf584vboxsync <para>Next, reload the vboxnet driver by executing the following command
dbc14e4e4421a90b09b14a253be920edb9faf584vboxsync as root:</para>
dbc14e4e4421a90b09b14a253be920edb9faf584vboxsync
dbc14e4e4421a90b09b14a253be920edb9faf584vboxsync <screen>add_drv vboxnet</screen>
aed733b777035afdfbb4c3ea1d65d5ab617c02d0vboxsync
dbc14e4e4421a90b09b14a253be920edb9faf584vboxsync <para>On Solaris 11.1 and newer hosts you may want to rename the default
dbc14e4e4421a90b09b14a253be920edb9faf584vboxsync vanity interface name. To check what name has been assigned, execute:</para>
aed733b777035afdfbb4c3ea1d65d5ab617c02d0vboxsync
dbc14e4e4421a90b09b14a253be920edb9faf584vboxsync <screen>dladm show-phys
dbc14e4e4421a90b09b14a253be920edb9faf584vboxsyncLINK MEDIA STATE SPEED DUPLEX DEVICE
dbc14e4e4421a90b09b14a253be920edb9faf584vboxsyncnet0 Ethernet up 100 full e1000g0
dbc14e4e4421a90b09b14a253be920edb9faf584vboxsyncnet2 Ethernet up 1000 full vboxnet1
dbc14e4e4421a90b09b14a253be920edb9faf584vboxsyncnet1 Ethernet up 1000 full vboxnet0</screen>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
dbc14e4e4421a90b09b14a253be920edb9faf584vboxsync <para>In the above example, we can rename "net2" to "vboxnet1" before
dbc14e4e4421a90b09b14a253be920edb9faf584vboxsync proceeding to plumb the interface. This can be done by executing as root:</para>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
dbc14e4e4421a90b09b14a253be920edb9faf584vboxsync <screen>dladm rename-link net2 vboxnet1</screen>
dbc14e4e4421a90b09b14a253be920edb9faf584vboxsync
dbc14e4e4421a90b09b14a253be920edb9faf584vboxsync <para>Now plumb all the interfaces using
dbc14e4e4421a90b09b14a253be920edb9faf584vboxsync <computeroutput>ifconfig vboxnetX plumb</computeroutput> (where 'X' would
dbc14e4e4421a90b09b14a253be920edb9faf584vboxsync be 1 in this case). Once the interface is plumbed, it may be configured
dbc14e4e4421a90b09b14a253be920edb9faf584vboxsync like any other network interface. Refer to the
dbc14e4e4421a90b09b14a253be920edb9faf584vboxsync <computeroutput>ifconfig</computeroutput> documentation for further details.</para>
dbc14e4e4421a90b09b14a253be920edb9faf584vboxsync
dbc14e4e4421a90b09b14a253be920edb9faf584vboxsync <para>To make the newly added interfaces' settings persistent across
dbc14e4e4421a90b09b14a253be920edb9faf584vboxsync reboots, you will need to edit the files
aed733b777035afdfbb4c3ea1d65d5ab617c02d0vboxsync <computeroutput>/etc/inet/netmasks</computeroutput>, and if you are using NWAM
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <computeroutput>/etc/nwam/llp</computeroutput> and add the appropriate
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync entries to set the netmask and static IP for each of those interfaces. The
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync VirtualBox installer only updates these configuration files for the one
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync "vboxnet0" interface it creates by default.</para>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync </sect1>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
304f31a2a37f5d690086bff2fb4a59228b4dbd40vboxsync <sect1 id="solariscodedumper">
5a4c0239fb40e75ff03c2842bfc549705ea55335vboxsync <title>Configuring the VirtualBox CoreDumper on Solaris hosts</title>
9864317785d3ad19e5f4fd6d328858d71c9d474cvboxsync
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync <para>VirtualBox is capable of producing its own core files for extensive
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync debugging when things go wrong. Currently this is only available on
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync Solaris hosts.</para>
9864317785d3ad19e5f4fd6d328858d71c9d474cvboxsync
9864317785d3ad19e5f4fd6d328858d71c9d474cvboxsync <para>The VirtualBox CoreDumper can be enabled using the following
9864317785d3ad19e5f4fd6d328858d71c9d474cvboxsync command:</para>
9864317785d3ad19e5f4fd6d328858d71c9d474cvboxsync
fbac0da11344b078c8df6e338e0493dccc279198vboxsync <para><screen>VBoxManage setextradata "VM name" VBoxInternal2/CoreDumpEnabled 1</screen></para>
9864317785d3ad19e5f4fd6d328858d71c9d474cvboxsync
9864317785d3ad19e5f4fd6d328858d71c9d474cvboxsync <para>You can specify which directory to use for core dumps with this
9864317785d3ad19e5f4fd6d328858d71c9d474cvboxsync command:</para>
9864317785d3ad19e5f4fd6d328858d71c9d474cvboxsync
fbac0da11344b078c8df6e338e0493dccc279198vboxsync <para><screen>VBoxManage setextradata "VM name" VBoxInternal2/CoreDumpDir &lt;path-to-directory&gt;</screen>Make
9864317785d3ad19e5f4fd6d328858d71c9d474cvboxsync sure the directory you specify is on a volume with sufficient free space
9864317785d3ad19e5f4fd6d328858d71c9d474cvboxsync and that the VirtualBox process has sufficient permissions to write files
9864317785d3ad19e5f4fd6d328858d71c9d474cvboxsync to this directory. If you skip this command and don't specify any core
9864317785d3ad19e5f4fd6d328858d71c9d474cvboxsync dump directory, the current directory of the VirtualBox executable will be
9864317785d3ad19e5f4fd6d328858d71c9d474cvboxsync used (which would most likely fail when writing cores as they are
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync protected with root permissions). It is recommended you explicitly set a
9864317785d3ad19e5f4fd6d328858d71c9d474cvboxsync core dump directory.</para>
9864317785d3ad19e5f4fd6d328858d71c9d474cvboxsync
a2e827cf7080bb70bfa39f5fdf85b04145b53204vboxsync <para>You must specify when the VirtualBox CoreDumper should be triggered.
a2e827cf7080bb70bfa39f5fdf85b04145b53204vboxsync This is done using the following commands:</para>
9864317785d3ad19e5f4fd6d328858d71c9d474cvboxsync
fbac0da11344b078c8df6e338e0493dccc279198vboxsync <para><screen>VBoxManage setextradata "VM name" VBoxInternal2/CoreDumpReplaceSystemDump 1
fbac0da11344b078c8df6e338e0493dccc279198vboxsyncVBoxManage setextradata "VM name" VBoxInternal2/CoreDumpLive 1</screen>At
9864317785d3ad19e5f4fd6d328858d71c9d474cvboxsync least one of the above two commands will have to be provided if you have
9864317785d3ad19e5f4fd6d328858d71c9d474cvboxsync enabled the VirtualBox CoreDumper.</para>
9864317785d3ad19e5f4fd6d328858d71c9d474cvboxsync
fbac0da11344b078c8df6e338e0493dccc279198vboxsync <para>Setting <computeroutput>CoreDumpReplaceSystemDump</computeroutput>
a2e827cf7080bb70bfa39f5fdf85b04145b53204vboxsync sets up the VM to override the host's core dumping mechanism and in the
a2e827cf7080bb70bfa39f5fdf85b04145b53204vboxsync event of any crash only the VirtualBox CoreDumper would produce the core
a2e827cf7080bb70bfa39f5fdf85b04145b53204vboxsync file.</para>
9864317785d3ad19e5f4fd6d328858d71c9d474cvboxsync
fbac0da11344b078c8df6e338e0493dccc279198vboxsync <para>Setting <computeroutput>CoreDumpLive</computeroutput> sets up the VM
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync to produce cores whenever the VM process receives a
9864317785d3ad19e5f4fd6d328858d71c9d474cvboxsync <computeroutput>SIGUSR2</computeroutput> signal. After producing the core
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync file, the VM will not be terminated and will continue to run. You can thus
a2e827cf7080bb70bfa39f5fdf85b04145b53204vboxsync take cores of the VM process using:</para>
9864317785d3ad19e5f4fd6d328858d71c9d474cvboxsync
9864317785d3ad19e5f4fd6d328858d71c9d474cvboxsync <para><screen>kill -s SIGUSR2 &lt;VM-process-id&gt;</screen></para>
9864317785d3ad19e5f4fd6d328858d71c9d474cvboxsync
9864317785d3ad19e5f4fd6d328858d71c9d474cvboxsync <para>Core files produced by the VirtualBox CoreDumper are of the form
9864317785d3ad19e5f4fd6d328858d71c9d474cvboxsync <computeroutput>core.vb.&lt;ProcessName&gt;.&lt;ProcessID&gt;</computeroutput>,
188f53eda6c7dd6221a2b9c9f3341bac724b107evboxsync for example <computeroutput>core.vb.VBoxHeadless.11321</computeroutput>.</para>
9864317785d3ad19e5f4fd6d328858d71c9d474cvboxsync </sect1>
b5fc11b083106d30c615f078c14ee1eecd0b5241vboxsync
b5fc11b083106d30c615f078c14ee1eecd0b5241vboxsync <sect1 id="vboxandsolzvmm">
b5fc11b083106d30c615f078c14ee1eecd0b5241vboxsync <title>VirtualBox and Solaris kernel zones</title>
b5fc11b083106d30c615f078c14ee1eecd0b5241vboxsync
b5fc11b083106d30c615f078c14ee1eecd0b5241vboxsync <para>Solaris kernel zones on x86-based systems make use of hardware-assisted
e39291374370f4b8ff5e843fdeefa68ae4c6cda8vboxsync virtualization features like VirtualBox does. However, for kernel zones and
b5fc11b083106d30c615f078c14ee1eecd0b5241vboxsync VirtualBox to share this hardware resource, they need to co-operate.</para>
b5fc11b083106d30c615f078c14ee1eecd0b5241vboxsync
b5fc11b083106d30c615f078c14ee1eecd0b5241vboxsync <para>By default, due to performance reasons, VirtualBox acquires the
b5fc11b083106d30c615f078c14ee1eecd0b5241vboxsync hardware-assisted virtualization resource (VT-x/AMD-V) globally on the
b5fc11b083106d30c615f078c14ee1eecd0b5241vboxsync host machine and uses it until the last VirtualBox VM that requires it is
e39291374370f4b8ff5e843fdeefa68ae4c6cda8vboxsync powered off. This prevents other software from using VT-x/AMD-V during the
e39291374370f4b8ff5e843fdeefa68ae4c6cda8vboxsync time VirtualBox has taken control of it.</para>
b5fc11b083106d30c615f078c14ee1eecd0b5241vboxsync
b5fc11b083106d30c615f078c14ee1eecd0b5241vboxsync <para>VirtualBox can be instructed to relinquish use of hardware-assisted
b5fc11b083106d30c615f078c14ee1eecd0b5241vboxsync virtualization features when not executing guest code, thereby allowing
b5fc11b083106d30c615f078c14ee1eecd0b5241vboxsync kernel zones to make use of them. To do this, shutdown all VirtualBox VMs
b5fc11b083106d30c615f078c14ee1eecd0b5241vboxsync and execute the following command:</para>
b5fc11b083106d30c615f078c14ee1eecd0b5241vboxsync
b5fc11b083106d30c615f078c14ee1eecd0b5241vboxsync <screen>VBoxManage setproperty hwvirtexclusive off</screen>
b5fc11b083106d30c615f078c14ee1eecd0b5241vboxsync
b5fc11b083106d30c615f078c14ee1eecd0b5241vboxsync <para>This command needs to be executed only once as the setting is stored
b5fc11b083106d30c615f078c14ee1eecd0b5241vboxsync as part of the global VirtualBox settings which will continue to persist
b5fc11b083106d30c615f078c14ee1eecd0b5241vboxsync across host-reboots and VirtualBox upgrades.</para>
b5fc11b083106d30c615f078c14ee1eecd0b5241vboxsync </sect1>
9864317785d3ad19e5f4fd6d328858d71c9d474cvboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync <sect1 id="guitweaks">
5a4c0239fb40e75ff03c2842bfc549705ea55335vboxsync <title>Locking down the VirtualBox manager GUI</title>
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync
34e20f45494bfef87a3a03451616f013ecec80fbvboxsync <sect2>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <title>Customizing the VM manager</title>
2b55a3168b490c568b411befb5fb7d2e28813ee8vboxsync
34e20f45494bfef87a3a03451616f013ecec80fbvboxsync <para>There are several advanced customization settings for locking down
34e20f45494bfef87a3a03451616f013ecec80fbvboxsync the VirtualBox manager, that is, removing some features that the user
34e20f45494bfef87a3a03451616f013ecec80fbvboxsync should not see.</para>
34e20f45494bfef87a3a03451616f013ecec80fbvboxsync
34e20f45494bfef87a3a03451616f013ecec80fbvboxsync <para><screen>VBoxManage setextradata global GUI/Customizations OPTION[,OPTION...]</screen></para>
34e20f45494bfef87a3a03451616f013ecec80fbvboxsync
34e20f45494bfef87a3a03451616f013ecec80fbvboxsync <para>where <computeroutput>OPTION</computeroutput> is one of the
34e20f45494bfef87a3a03451616f013ecec80fbvboxsync following keywords:<glosslist>
34e20f45494bfef87a3a03451616f013ecec80fbvboxsync <glossentry>
34e20f45494bfef87a3a03451616f013ecec80fbvboxsync <glossterm><computeroutput>noSelector</computeroutput></glossterm>
34e20f45494bfef87a3a03451616f013ecec80fbvboxsync <glossdef>
34e20f45494bfef87a3a03451616f013ecec80fbvboxsync <para>Don't allow to start the VirtualBox manager. Trying to do so
34e20f45494bfef87a3a03451616f013ecec80fbvboxsync will show a window containing a proper error message.</para>
34e20f45494bfef87a3a03451616f013ecec80fbvboxsync </glossdef>
34e20f45494bfef87a3a03451616f013ecec80fbvboxsync </glossentry>
34e20f45494bfef87a3a03451616f013ecec80fbvboxsync
34e20f45494bfef87a3a03451616f013ecec80fbvboxsync <glossentry>
34e20f45494bfef87a3a03451616f013ecec80fbvboxsync <glossterm><computeroutput>noMenuBar</computeroutput></glossterm>
34e20f45494bfef87a3a03451616f013ecec80fbvboxsync <glossdef>
34e20f45494bfef87a3a03451616f013ecec80fbvboxsync <para>VM windows will not contain a menu bar.</para>
34e20f45494bfef87a3a03451616f013ecec80fbvboxsync </glossdef>
34e20f45494bfef87a3a03451616f013ecec80fbvboxsync </glossentry>
34e20f45494bfef87a3a03451616f013ecec80fbvboxsync
34e20f45494bfef87a3a03451616f013ecec80fbvboxsync <glossentry>
34e20f45494bfef87a3a03451616f013ecec80fbvboxsync <glossterm><computeroutput>noStatusBar</computeroutput></glossterm>
34e20f45494bfef87a3a03451616f013ecec80fbvboxsync <glossdef>
34e20f45494bfef87a3a03451616f013ecec80fbvboxsync <para>VM windows will not contain a status bar.</para>
34e20f45494bfef87a3a03451616f013ecec80fbvboxsync </glossdef>
34e20f45494bfef87a3a03451616f013ecec80fbvboxsync </glossentry>
34e20f45494bfef87a3a03451616f013ecec80fbvboxsync </glosslist></para>
34e20f45494bfef87a3a03451616f013ecec80fbvboxsync
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <para>To disable any of these VM manager customizations do
6acd5767ff5ed731a4e382a6b6a32c73a92f847bvboxsync <screen>VBoxManage setextradata global GUI/Customizations</screen></para>
6acd5767ff5ed731a4e382a6b6a32c73a92f847bvboxsync
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync </sect2>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <sect2>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync
6acd5767ff5ed731a4e382a6b6a32c73a92f847bvboxsync <title>VM selector customization</title>
6acd5767ff5ed731a4e382a6b6a32c73a92f847bvboxsync <para>The following per-machine VM extradata settings can be used to change the
6acd5767ff5ed731a4e382a6b6a32c73a92f847bvboxsync behavior of the VM selector window in respect of certain VMs:</para>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <screen>VBoxManage setextradata "VM name" true</screen>
6acd5767ff5ed731a4e382a6b6a32c73a92f847bvboxsync <para>where <computeroutput>SETTING</computeroutput> can be:</para>
6acd5767ff5ed731a4e382a6b6a32c73a92f847bvboxsync <glosslist>
6acd5767ff5ed731a4e382a6b6a32c73a92f847bvboxsync <glossentry>
6acd5767ff5ed731a4e382a6b6a32c73a92f847bvboxsync <glossterm><computeroutput>GUI/HideDetails</computeroutput></glossterm>
6acd5767ff5ed731a4e382a6b6a32c73a92f847bvboxsync <glossdef>
6acd5767ff5ed731a4e382a6b6a32c73a92f847bvboxsync <para>Don't show the VM configuration of a certain VM. The details
6acd5767ff5ed731a4e382a6b6a32c73a92f847bvboxsync window will remain just empty if this VM is selected.</para>
6acd5767ff5ed731a4e382a6b6a32c73a92f847bvboxsync </glossdef>
6acd5767ff5ed731a4e382a6b6a32c73a92f847bvboxsync </glossentry>
6acd5767ff5ed731a4e382a6b6a32c73a92f847bvboxsync <glossentry>
6acd5767ff5ed731a4e382a6b6a32c73a92f847bvboxsync <glossterm><computeroutput>GUI/PreventReconfiguration</computeroutput></glossterm>
6acd5767ff5ed731a4e382a6b6a32c73a92f847bvboxsync <glossdef>
6acd5767ff5ed731a4e382a6b6a32c73a92f847bvboxsync <para>Don't allow the user to open the settings dialog for a certain VM.</para>
6acd5767ff5ed731a4e382a6b6a32c73a92f847bvboxsync </glossdef>
6acd5767ff5ed731a4e382a6b6a32c73a92f847bvboxsync </glossentry>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <glossentry>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <glossterm><computeroutput>GUI/PreventSnapshotOperations</computeroutput></glossterm>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <glossdef>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <para>Prevent snapshot operations for a VM from the GUI, either at runtime or when
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync the VM is powered off.</para>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync </glossdef>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync </glossentry>
6acd5767ff5ed731a4e382a6b6a32c73a92f847bvboxsync <glossentry>
6acd5767ff5ed731a4e382a6b6a32c73a92f847bvboxsync <glossterm><computeroutput>GUI/HideFromManager</computeroutput></glossterm>
6acd5767ff5ed731a4e382a6b6a32c73a92f847bvboxsync <glossdef>
6acd5767ff5ed731a4e382a6b6a32c73a92f847bvboxsync <para>Hide a certain VM in the VM selector window.</para>
6acd5767ff5ed731a4e382a6b6a32c73a92f847bvboxsync </glossdef>
6acd5767ff5ed731a4e382a6b6a32c73a92f847bvboxsync </glossentry>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <glossentry>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <glossterm><computeroutput>GUI/PreventApplicationUpdate</computeroutput></glossterm>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <glossdef>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <para>Disable the automatic update check and hide the corresponding menu item.</para>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync </glossdef>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync </glossentry>
6acd5767ff5ed731a4e382a6b6a32c73a92f847bvboxsync </glosslist>
6acd5767ff5ed731a4e382a6b6a32c73a92f847bvboxsync <para>Please note that these settings wouldn't prevent the user from
6acd5767ff5ed731a4e382a6b6a32c73a92f847bvboxsync reconfiguring the VM by <computeroutput>VBoxManage modifyvm</computeroutput>.</para>
061168b301e15895799842f766644c211b8701c9vboxsync
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync </sect2>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <sect2>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <title>Configure VM selector menu entries</title>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <para>You can disable (i.e. black-list) certain entries in the global settings
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync page of the VM selector:</para>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <screen>VBoxManage setextradata global GUI/RestrictedGlobalSettingsPages OPTION[,OPTION...]</screen>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <para>where <computeroutput>OPTION</computeroutput> is one of the
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync following keywords:</para><glosslist>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <glossentry>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <glossterm><computeroutput>General</computeroutput></glossterm>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <glossdef>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <para>Don't show the <emphasis>General</emphasis> settings pane.</para>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync </glossdef>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync </glossentry>
04f6ecb6bf4fb32f1dd2616076c70cec0282e236vboxsync
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <glossentry>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <glossterm><computeroutput>Input</computeroutput></glossterm>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <glossdef>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <para>Don't show the <emphasis>Input</emphasis> settings pane.</para>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync </glossdef>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync </glossentry>
04f6ecb6bf4fb32f1dd2616076c70cec0282e236vboxsync
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <glossentry>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <glossterm><computeroutput>Update</computeroutput></glossterm>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <glossdef>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <para>Don't show the <emphasis>Update</emphasis> settings pane.</para>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync </glossdef>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync </glossentry>
04f6ecb6bf4fb32f1dd2616076c70cec0282e236vboxsync
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <glossentry>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <glossterm><computeroutput>Language</computeroutput></glossterm>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <glossdef>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <para>Don't show the <emphasis>Language</emphasis> settings pane.</para>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync </glossdef>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync </glossentry>
04f6ecb6bf4fb32f1dd2616076c70cec0282e236vboxsync
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <glossentry>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <glossterm><computeroutput>Display</computeroutput></glossterm>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <glossdef>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <para>Don't show the <emphasis>Display</emphasis> settings pane.</para>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync </glossdef>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync </glossentry>
04f6ecb6bf4fb32f1dd2616076c70cec0282e236vboxsync
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <glossentry>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <glossterm><computeroutput>Network</computeroutput></glossterm>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <glossdef>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <para>Don't show the <emphasis>Network</emphasis> settings pane.</para>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync </glossdef>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync </glossentry>
04f6ecb6bf4fb32f1dd2616076c70cec0282e236vboxsync
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <glossentry>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <glossterm><computeroutput>Extensions</computeroutput></glossterm>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <glossdef>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <para>Don't show the <emphasis>Extensions</emphasis> settings pane.</para>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync </glossdef>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync </glossentry>
04f6ecb6bf4fb32f1dd2616076c70cec0282e236vboxsync
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <glossentry>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <glossterm><computeroutput>Proxy</computeroutput></glossterm>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <glossdef>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <para>Don't show the <emphasis>Proxy</emphasis> settings pane.</para>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync </glossdef>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync </glossentry>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync </glosslist>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <para>This is a global setting. Any combination of the above is allowed.
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync To restore the default behavior, use</para>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <screen>VBoxManage setextradata global GUI/RestrictedGlobalSettingsPages</screen>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync </sect2>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <sect2>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <title>Configure VM window menu entries</title>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <para>You can disable (i.e. black-list) certain menu actions in the VM window:</para>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <screen>VBoxManage setextradata "VM name" GUI/RestrictedRuntimeMenus OPTION[,OPTION...]</screen>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <para>where <computeroutput>OPTION</computeroutput> is one of the
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync following keywords:</para><glosslist>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <glossentry>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <glossterm><computeroutput>All</computeroutput></glossterm>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <glossdef>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <para>Don't show any menu in the VM window.</para>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync </glossdef>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync </glossentry>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <glossentry>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <glossterm><computeroutput>Machine</computeroutput></glossterm>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <glossdef>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <para>Don't show the <emphasis>Machine</emphasis> menu in the VM window.</para>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync </glossdef>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync </glossentry>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <glossentry>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <glossterm><computeroutput>View</computeroutput></glossterm>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <glossdef>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <para>Don't show the <emphasis>View</emphasis> menu in the VM window.</para>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync </glossdef>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync </glossentry>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <glossentry>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <glossterm><computeroutput>Devices</computeroutput></glossterm>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <glossdef>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <para>Don't show the <emphasis>Devices</emphasis> menu in the VM window.</para>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync </glossdef>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync </glossentry>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <glossentry>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <glossterm><computeroutput>Help</computeroutput></glossterm>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <glossdef>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <para>Don't show the <emphasis>Help</emphasis> menu in the VM window.</para>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync </glossdef>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync </glossentry>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <glossentry>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <glossterm><computeroutput>Debug</computeroutput></glossterm>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <glossdef>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <para>Don't show the <emphasis>Debug</emphasis> menu in the VM window. The debug
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync menu is only visible if the GUI was started with special command line parameters
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync or environment variable settings.</para>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync </glossdef>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync </glossentry>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync </glosslist>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <para>This is a per-VM setting. Any combination of the above is allowed. To restore
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync the default behavior, use</para>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <screen>VBoxManage setextradata "VM name" GUI/RestrictedRuntimeMenus</screen>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <para>You can also disable (i.e. blacklist) certain menu actions of certain
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync menus. Use the following command to disable certain actions of the
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <emphasis>Application</emphasis> menu (only available on Mac OS X hosts):</para>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <screen>VBoxManage setextradata "VM name" GUI/RestrictedRuntimeApplicationMenuActions OPTION[,OPTION...]</screen>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <para>where <computeroutput>OPTION</computeroutput> is one of the
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync following keywords:</para><glosslist>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossentry>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossterm><computeroutput>All</computeroutput></glossterm>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossdef>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <para>Don't show any menu item in this menu.</para>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync </glossdef>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync </glossentry>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossentry>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossterm><computeroutput>About</computeroutput></glossterm>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossdef>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <para>Don't show the <emphasis>About</emphasis> menu item in this menu.</para>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync </glossdef>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync </glossentry>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync </glosslist>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <para>This is a per-VM setting. Any combination of the above is allowed. To restore
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync the default behavior, use</para>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <screen>VBoxManage setextradata "VM name" GUI/RestrictedRuntimeMenus</screen>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <para>Use the following command to disable certain actions of the <emphasis>Machine</emphasis>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync menu:</para>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <screen>VBoxManage setextradata "VM name" GUI/RestrictedRuntimeApplicationMenuActions OPTION[,OPTION...]</screen>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <para>where <computeroutput>OPTION</computeroutput> is one of the
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync following keywords:</para><glosslist>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossentry>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossterm><computeroutput>All</computeroutput></glossterm>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossdef>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <para>Don't show any menu item in this menu.</para>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync </glossdef>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync </glossentry>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossentry>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossterm><computeroutput>SettingsDialog</computeroutput></glossterm>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossdef>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <para>Don't show the <emphasis>Settings</emphasis> menu item in this menu.</para>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync </glossdef>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync </glossentry>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossentry>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossterm><computeroutput>TakeSnapshot</computeroutput></glossterm>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossdef>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <para>Don't show the <emphasis>Take Snapshot</emphasis> menu item in this menu.</para>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync </glossdef>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync </glossentry>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossentry>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossterm><computeroutput>TakeScreenshot</computeroutput></glossterm>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossdef>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <para>Don't show the <emphasis>Take Screenshot</emphasis> menu item in this menu.</para>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync </glossdef>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync </glossentry>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossentry>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossterm><computeroutput>InformationDialog</computeroutput></glossterm>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossdef>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <para>Don't show the <emphasis>Session Information</emphasis> menu item in this menu.</para>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync </glossdef>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync </glossentry>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossentry>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossterm><computeroutput>MouseIntegration</computeroutput></glossterm>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossdef>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <para>Don't show the <emphasis>Disable Mouse Integration</emphasis> menu item in this menu.</para>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync </glossdef>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync </glossentry>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossentry>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossterm><computeroutput>TypeCAD</computeroutput></glossterm>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossdef>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <para>Don't show the <emphasis>Insert Ctrl+Alt+Del</emphasis> menu item in this menu.</para>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync </glossdef>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync </glossentry>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossentry>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossterm><computeroutput>TypeCABS</computeroutput></glossterm>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossdef>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <para>Don't show the <emphasis>Insert Ctrl+Alt+Backspace</emphasis> menu item in
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync this menu (available on X11 hosts only).</para>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync </glossdef>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync </glossentry>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossentry>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossterm><computeroutput>Pause</computeroutput></glossterm>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossdef>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <para>Don't show the <emphasis>Pause</emphasis> menu item in this menu.</para>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync </glossdef>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync </glossentry>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossentry>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossterm><computeroutput>Reset</computeroutput></glossterm>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossdef>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <para>Don't show the <emphasis>Reset</emphasis> menu item in this menu.</para>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync </glossdef>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync </glossentry>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossentry>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossterm><computeroutput>SaveState</computeroutput></glossterm>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossdef>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <para>Don't show the <emphasis>Save the machine state</emphasis> menu item in this menu.</para>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync </glossdef>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync </glossentry>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossentry>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossterm><computeroutput>Shutdown</computeroutput></glossterm>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossdef>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <para>Don't show the <emphasis>ACPI Shutdown</emphasis> menu item in this menu.</para>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync </glossdef>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync </glossentry>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossentry>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossterm><computeroutput>PowerOff</computeroutput></glossterm>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossdef>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <para>Don't show the <emphasis>Power Off the machine</emphasis> menu item in this menu.</para>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync </glossdef>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync </glossentry>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync </glosslist>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <para>This is a per-VM setting. Any combination of the above is allowed. To restore
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync the default behavior, use</para>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <screen>VBoxManage setextradata "VM name" GUI/RestrictedRuntimeApplicationMenuActions</screen>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <para>Use the following command to disable certain actions of the <emphasis>View</emphasis>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync menu:</para>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <screen>VBoxManage setextradata "VM name" GUI/RestrictedRuntimeViewMenuActions OPTION[,OPTION...]</screen>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <para>where <computeroutput>OPTION</computeroutput> is one of the
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync following keywords:</para><glosslist>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossentry>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossterm><computeroutput>All</computeroutput></glossterm>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossdef>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <para>Don't show any menu item in this menu.</para>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync </glossdef>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync </glossentry>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossentry>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossterm><computeroutput>Fullscreen</computeroutput></glossterm>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossdef>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <para>Don't show the <emphasis>Switch to Fullscreen</emphasis> menu item in this menu.</para>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync </glossdef>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync </glossentry>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossentry>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossterm><computeroutput>Seamless</computeroutput></glossterm>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossdef>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <para>Don't show the <emphasis>Switch to Seamless Mode</emphasis> menu item in this menu.</para>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync </glossdef>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync </glossentry>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossentry>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossterm><computeroutput>Scale</computeroutput></glossterm>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossdef>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <para>Don't show the <emphasis>Switch to Scaled Mode</emphasis> menu item in this menu.</para>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync </glossdef>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync </glossentry>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossentry>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossterm><computeroutput>GuestAutoresize</computeroutput></glossterm>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossdef>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <para>Don't show the <emphasis>Auto-resize Guest Display</emphasis> menu item in this menu.</para>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync </glossdef>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync </glossentry>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossentry>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossterm><computeroutput>AdjustWindow</computeroutput></glossterm>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossdef>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <para>Don't show the <emphasis>Adjust Window Size</emphasis> menu item in this menu.</para>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync </glossdef>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync </glossentry>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossentry>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossterm><computeroutput>Multiscreen</computeroutput></glossterm>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossdef>
49e3eed275c05d551440669a437129474785f8a7vboxsync <para>Don't show the <emphasis>Multiscreen</emphasis> menu item in this menu (only visible in full screen / seamless mode).</para>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync </glossdef>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync </glossentry>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync </glosslist>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <para>This is a per-VM setting. Any combination of the above is allowed. To restore
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync the default behavior, use</para>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <screen>VBoxManage setextradata "VM name" GUI/RestrictedRuntimeViewMenuActions</screen>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <para>Use the following command to disable certain actions of the <emphasis>View</emphasis>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync menu:</para>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <screen>VBoxManage setextradata "VM name" GUI/RestrictedRuntimeDevicesMenuActions OPTION[,OPTION...]</screen>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <para>where <computeroutput>OPTION</computeroutput> is one of the
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync following keywords to disable actions in the <emphasis>Devices</emphasis> menu:</para><glosslist>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossentry>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossterm><computeroutput>All</computeroutput></glossterm>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossdef>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <para>Don't show any menu item in this menu.</para>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync </glossdef>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync </glossentry>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossentry>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossterm><computeroutput>OpticalDevices</computeroutput></glossterm>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossdef>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <para>Don't show the <emphasis>CD/DVD Devices</emphasis> menu item in this menu.</para>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync </glossdef>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync </glossentry>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossentry>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossterm><computeroutput>FloppyDevices</computeroutput></glossterm>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossdef>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <para>Don't show the <emphasis>FLoppy Devices</emphasis> menu item in this menu.</para>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync </glossdef>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync </glossentry>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossentry>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossterm><computeroutput>USBDevices</computeroutput></glossterm>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossdef>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <para>Don't show the <emphasis>USB Devices</emphasis> menu item in this menu.</para>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync </glossdef>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync </glossentry>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossentry>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossterm><computeroutput>SharedClipboard</computeroutput></glossterm>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossdef>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <para>Don't show the <emphasis>Shared Clipboard</emphasis> menu item in this menu.</para>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync </glossdef>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync </glossentry>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossentry>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossterm><computeroutput>DragAndDrop</computeroutput></glossterm>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossdef>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <para>Don't show the <emphasis>Drag'n'Drop</emphasis> menu item in this menu.</para>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync </glossdef>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync </glossentry>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossentry>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossterm><computeroutput>NetworkSettings</computeroutput></glossterm>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossdef>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <para>Don't show the <emphasis>Network Settings...</emphasis> menu item in this menu.</para>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync </glossdef>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync </glossentry>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossentry>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossterm><computeroutput>SharedFoldersSettings</computeroutput></glossterm>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossdef>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <para>Don't show the <emphasis>Shared Folders Settings...</emphasis> menu item in this menu.</para>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync </glossdef>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync </glossentry>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossentry>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossterm><computeroutput>VRDEServer</computeroutput></glossterm>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossdef>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <para>Don't show the <emphasis>Remove Display</emphasis> menu item in this menu.</para>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync </glossdef>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync </glossentry>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossentry>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossterm><computeroutput>InstallGuestTools</computeroutput></glossterm>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossdef>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <para>Don't show the <emphasis>Insert Guest Additions CD imnage...</emphasis> menu item in this menu.</para>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync </glossdef>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync </glossentry>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync </glosslist>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <para>This is a per-VM setting. Any combination of the above is allowed. To restore
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync the default behavior, use</para>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <screen>VBoxManage setextradata "VM name" GUI/RestrictedRuntimeDevicesMenuActions</screen>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <para>Use the following command to disable certain actions of the <emphasis>View</emphasis>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync menu:</para>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <screen>VBoxManage setextradata "VM name" GUI/RestrictedRuntimeDebuggerMenuActions OPTION[,OPTION...]</screen>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <para>where <computeroutput>OPTION</computeroutput> is one of the
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync following keywords to disable actions in the <emphasis>Debug</emphasis> menu (normally completely disabled):</para><glosslist>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossentry>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossterm><computeroutput>All</computeroutput></glossterm>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossdef>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <para>Don't show any menu item in this menu.</para>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync </glossdef>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync </glossentry>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossentry>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossterm><computeroutput>Statistics</computeroutput></glossterm>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossdef>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <para>Don't show the <emphasis>Statistics...</emphasis> menu item in this menu.</para>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync </glossdef>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync </glossentry>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossentry>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossterm><computeroutput>CommandLine</computeroutput></glossterm>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossdef>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <para>Don't show the <emphasis>Command Line...</emphasis> menu item in this menu.</para>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync </glossdef>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync </glossentry>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossentry>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossterm><computeroutput>Logging</computeroutput></glossterm>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossdef>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <para>Don't show the <emphasis>Logging...</emphasis> menu item in this menu.</para>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync </glossdef>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync </glossentry>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossentry>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossterm><computeroutput>LogDialog</computeroutput></glossterm>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossdef>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <para>Don't show the <emphasis>Show Log...</emphasis> menu item in this menu.</para>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync </glossdef>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync </glossentry>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync </glosslist>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <para>This is a per-VM setting. Any combination of the above is allowed. To restore
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync the default behavior, use</para>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <screen>VBoxManage setextradata "VM name" GUI/RestrictedRuntimeDebuggerMenuActions</screen>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <para>Use the following command to disable certain actions of the <emphasis>View</emphasis>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync menu:</para>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <screen>VBoxManage setextradata "VM name" GUI/RestrictedRuntimeHelpMenuActions OPTION[,OPTION...]</screen>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <para>where <computeroutput>OPTION</computeroutput> is one of the
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync following keywords to disable actions in the <emphasis>Help</emphasis> menu (normally completely disabled):</para><glosslist>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossentry>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossterm><computeroutput>All</computeroutput></glossterm>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossdef>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <para>Don't show any menu item in this menu.</para>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync </glossdef>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync </glossentry>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossentry>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossterm><computeroutput>Contents</computeroutput></glossterm>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossdef>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <para>Don't show the <emphasis>Contents...</emphasis> menu item in this menu.</para>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync </glossdef>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync </glossentry>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossentry>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossterm><computeroutput>WebSite</computeroutput></glossterm>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossdef>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <para>Don't show the <emphasis>VirtualBox Web Site...</emphasis> menu item in this menu.</para>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync </glossdef>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync </glossentry>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossentry>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossterm><computeroutput>ResetWarnings</computeroutput></glossterm>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossdef>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <para>Don't show the <emphasis>Reset All Warnings</emphasis> menu item in this menu.</para>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync </glossdef>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync </glossentry>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossentry>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossterm><computeroutput>NetworkAccessManager</computeroutput></glossterm>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossdef>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <para>Don't show the <emphasis>Network Operations Manager</emphasis> menu item in this menu.</para>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync </glossdef>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync </glossentry>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossentry>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossterm><computeroutput>About</computeroutput></glossterm>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossdef>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <para>Don't show the <emphasis>About</emphasis> menu item in this menu (only on non Mac OS X hosts).</para>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync </glossdef>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync </glossentry>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossentry>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossterm><computeroutput>Contents</computeroutput></glossterm>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossdef>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <para>Don't show the <emphasis>Contents...</emphasis> menu item in this menu.</para>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync </glossdef>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync </glossentry>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossentry>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossterm><computeroutput>Contents</computeroutput></glossterm>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <glossdef>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <para>Don't show the <emphasis>Contents...</emphasis> menu item in this menu.</para>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync </glossdef>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync </glossentry>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync </glosslist>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <para>This is a per-VM setting. Any combination of the above is allowed. To restore
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync the default behavior, use</para>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync <screen>VBoxManage setextradata "VM name" GUI/RestrictedRuntimeHelpMenuActions</screen>
8efb3f70eb0014a8a579b8670d4926f999c7c762vboxsync
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync </sect2>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <sect2>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <title>Configure VM window status bar entries</title>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <para>You can disable (i.e. black-list) certain status bar items:</para>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <screen>VBoxManage setextradata "VM name" GUI/RestrictedStatusBarIndicators OPTION[,OPTION...]</screen>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <para>where <computeroutput>OPTION</computeroutput> is one of the
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync following keywords:</para><glosslist>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <glossentry>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <glossterm><computeroutput>HardDisks</computeroutput></glossterm>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <glossdef>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <para>Don't show the hard disk icon in the VM window status bar. By default
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync the hard disk icon is only shown if the VM configuration contains one or
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync more hard disks.</para>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync </glossdef>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync </glossentry>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <glossentry>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <glossterm><computeroutput>OpticalDisks</computeroutput></glossterm>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <glossdef>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <para>Don't show the CD icon in the VM window status bar. By default the
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync CD icon is only shown if the VM configuration contains one or more CD
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync drives.</para>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync </glossdef>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync </glossentry>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <glossentry>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <glossterm><computeroutput>FloppyDisks</computeroutput></glossterm>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <glossdef>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <para>Don't show the floppy icon in the VM window status bar. By default the
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync floppy icon is only shown if the VM configuration contains one more
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync more floppy drives.</para>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync </glossdef>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync </glossentry>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <glossentry>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <glossterm><computeroutput>Network</computeroutput></glossterm>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <glossdef>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <para>Don't show the network icon in the VM window status bar. By default
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync the network icon is only shown if the VM configuration contains one or more
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync active network adapters.</para>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync </glossdef>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync </glossentry>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <glossentry>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <glossterm><computeroutput>USB</computeroutput></glossterm>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <glossdef>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <para>Don't show the USB icon in the status bar. </para>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync </glossdef>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync </glossentry>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <glossentry>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <glossterm><computeroutput>SharedFolders</computeroutput></glossterm>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <glossdef>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <para>Don't show the shared folders icon in the status bar.</para>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync </glossdef>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync </glossentry>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <glossentry>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <glossterm><computeroutput>VideoCapture</computeroutput></glossterm>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <glossdef>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <para>Don't show the video capture icon in the status bar.</para>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync </glossdef>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync </glossentry>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <glossentry>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <glossterm><computeroutput>Features</computeroutput></glossterm>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <glossdef>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <para>Don't show the CPU features icon in the status bar.</para>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync </glossdef>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync </glossentry>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <glossentry>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <glossterm><computeroutput>Mouse</computeroutput></glossterm>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <glossdef>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <para>Don't show the mouse icon in the status bar.</para>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync </glossdef>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync </glossentry>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <glossentry>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <glossterm><computeroutput>Keyboard</computeroutput></glossterm>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <glossdef>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <para>Don't show the keyboard icon in the status bar.</para>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync </glossdef>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync </glossentry>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync </glosslist>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <para>This is a per-VM setting. Any combination of the above is allowed. If all options
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync are specified, no icons are displayed in the status bar of the VM window. To restore
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync the default behavior, use</para>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync <screen>VBoxManage setextradata "VM name" GUI/RestrictedStatusBarIndicators</screen>
2c60b25287ab069cf459a80b6c279203e2a9a367vboxsync
04f6ecb6bf4fb32f1dd2616076c70cec0282e236vboxsync </sect2>
04f6ecb6bf4fb32f1dd2616076c70cec0282e236vboxsync
04f6ecb6bf4fb32f1dd2616076c70cec0282e236vboxsync <sect2>
04f6ecb6bf4fb32f1dd2616076c70cec0282e236vboxsync <title>Configure VM window visual modes</title>
04f6ecb6bf4fb32f1dd2616076c70cec0282e236vboxsync
04f6ecb6bf4fb32f1dd2616076c70cec0282e236vboxsync <para>You can disable (i.e. black-list) certain VM visual modes:</para>
04f6ecb6bf4fb32f1dd2616076c70cec0282e236vboxsync <screen>VBoxManage setextradata "VM name" GUI/RestrictedVisualStates OPTION[,OPTION...]</screen>
04f6ecb6bf4fb32f1dd2616076c70cec0282e236vboxsync
04f6ecb6bf4fb32f1dd2616076c70cec0282e236vboxsync <para>where <computeroutput>OPTION</computeroutput> is one of the
04f6ecb6bf4fb32f1dd2616076c70cec0282e236vboxsync following keywords:</para><glosslist>
04f6ecb6bf4fb32f1dd2616076c70cec0282e236vboxsync <glossentry>
04f6ecb6bf4fb32f1dd2616076c70cec0282e236vboxsync <glossterm><computeroutput>Fullscreen</computeroutput></glossterm>
04f6ecb6bf4fb32f1dd2616076c70cec0282e236vboxsync <glossdef>
49e3eed275c05d551440669a437129474785f8a7vboxsync <para>Don't allow to switch the VM into full screen mode.</para>
04f6ecb6bf4fb32f1dd2616076c70cec0282e236vboxsync </glossdef>
04f6ecb6bf4fb32f1dd2616076c70cec0282e236vboxsync </glossentry>
04f6ecb6bf4fb32f1dd2616076c70cec0282e236vboxsync
04f6ecb6bf4fb32f1dd2616076c70cec0282e236vboxsync <glossentry>
04f6ecb6bf4fb32f1dd2616076c70cec0282e236vboxsync <glossterm><computeroutput>Seamless</computeroutput></glossterm>
04f6ecb6bf4fb32f1dd2616076c70cec0282e236vboxsync <glossdef>
04f6ecb6bf4fb32f1dd2616076c70cec0282e236vboxsync <para>Don't allow to switch the VM into seamless mode.</para>
04f6ecb6bf4fb32f1dd2616076c70cec0282e236vboxsync </glossdef>
04f6ecb6bf4fb32f1dd2616076c70cec0282e236vboxsync </glossentry>
04f6ecb6bf4fb32f1dd2616076c70cec0282e236vboxsync
04f6ecb6bf4fb32f1dd2616076c70cec0282e236vboxsync <glossentry>
04f6ecb6bf4fb32f1dd2616076c70cec0282e236vboxsync <glossterm><computeroutput>Scale</computeroutput></glossterm>
04f6ecb6bf4fb32f1dd2616076c70cec0282e236vboxsync <glossdef>
04f6ecb6bf4fb32f1dd2616076c70cec0282e236vboxsync <para>Don't allow to switch the VM into scale mode.</para>
04f6ecb6bf4fb32f1dd2616076c70cec0282e236vboxsync </glossdef>
04f6ecb6bf4fb32f1dd2616076c70cec0282e236vboxsync </glossentry>
dbc14e4e4421a90b09b14a253be920edb9faf584vboxsync
04f6ecb6bf4fb32f1dd2616076c70cec0282e236vboxsync </glosslist>
04f6ecb6bf4fb32f1dd2616076c70cec0282e236vboxsync
04f6ecb6bf4fb32f1dd2616076c70cec0282e236vboxsync <para>This is a per-VM setting. Any combination of the above is allowed. To restore
04f6ecb6bf4fb32f1dd2616076c70cec0282e236vboxsync the default behavior, use</para>
04f6ecb6bf4fb32f1dd2616076c70cec0282e236vboxsync
04f6ecb6bf4fb32f1dd2616076c70cec0282e236vboxsync <screen>VBoxManage setextradata "VM name" GUI/RestrictedVisualStates</screen>
04f6ecb6bf4fb32f1dd2616076c70cec0282e236vboxsync
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync </sect2>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <sect2>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <title>Host Key customization</title>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <para>To disable all host key combinations, open the preferences and
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync change the host key to <emphasis>None</emphasis>. This might be useful
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync when using VirtualBox in a kiosk mode.</para>
34e20f45494bfef87a3a03451616f013ecec80fbvboxsync
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <para>To redefine or disable certain host key actions, use the following command:</para>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <screen>VBoxManage setextradata global GUI/Input/MachineShortcuts "FullscreenMode=F,...."</screen>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <para>The following list shows the possible host key actions together with their default
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync host key shortcut. Setting an action to <emphasis>None</emphasis> will disable
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync that host key action.</para>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <table>
34e20f45494bfef87a3a03451616f013ecec80fbvboxsync <title>Host Key customization</title>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <tgroup cols="3">
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <thead>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <row>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <entry><emphasis role="bold">Action</emphasis></entry>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <entry><emphasis role="bold">Default Key</emphasis></entry>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <entry><emphasis role="bold">Action</emphasis></entry>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync </row>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync </thead>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <tbody>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <row>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <entry><computeroutput>TakeSnapshot</computeroutput></entry>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <entry>T</entry>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <entry>take a snapshot</entry>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync </row>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <row>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <entry><computeroutput>TakeScreenshot</computeroutput></entry>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <entry>E</entry>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <entry>take a screenshot</entry>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync </row>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <row>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <entry><computeroutput>MouseIntegration</computeroutput></entry>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <entry>I</entry>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <entry>toggle mouse integration</entry>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync </row>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <row>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <entry><computeroutput>TypeCAD</computeroutput></entry>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <entry>Del</entry>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <entry>inject Ctrl+Alt+Del</entry>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync </row>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <row>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <entry><computeroutput>TypeCABS</computeroutput></entry>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <entry>Backspace</entry>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <entry>inject Ctrl+Alt+Backspace</entry>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync </row>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <row>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <entry><computeroutput>Pause</computeroutput></entry>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <entry>P</entry>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <entry>Pause the VM</entry>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync </row>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <row>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <entry><computeroutput>Reset</computeroutput></entry>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <entry>R</entry>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <entry>(hard) reset the guest</entry>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync </row>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <row>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <entry><computeroutput>SaveState</computeroutput></entry>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <entry></entry>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <entry>save the VM state and terminate the VM</entry>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync </row>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <row>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <entry><computeroutput>Shutdown</computeroutput></entry>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <entry>H</entry>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <entry>press the (virtual) ACPI power button</entry>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync </row>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <row>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <entry><computeroutput>PowerOff</computeroutput></entry>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <entry></entry>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <entry>power the VM off (without saving the state!)</entry>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync </row>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <row>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <entry><computeroutput>Close</computeroutput></entry>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <entry>Q</entry>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <entry>show the VM close dialog</entry>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync </row>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <row>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <entry><computeroutput>FullscreenMode</computeroutput></entry>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <entry>F</entry>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <entry>switch the VM into full screen</entry>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync </row>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <row>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <entry><computeroutput>SeamlessMode</computeroutput></entry>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <entry>L</entry>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <entry>switch the VM into seamless mode</entry>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync </row>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <row>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <entry><computeroutput>ScaleMode</computeroutput></entry>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <entry>C</entry>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <entry>switch the VM into scale mode</entry>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync </row>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <row>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <entry><computeroutput>GuestAutoResize</computeroutput></entry>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <entry>G</entry>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <entry>automatically resize the guest window</entry>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync </row>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <row>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <entry><computeroutput>WindowAdjust</computeroutput></entry>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <entry>A</entry>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <entry>immediately resize the guest window</entry>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync </row>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <row>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <entry><computeroutput>PopupMenu</computeroutput></entry>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <entry>Home</entry>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <entry>show popup menu in full screen / seaml. mode</entry>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync </row>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <row>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <entry><computeroutput>SettingsDialog</computeroutput></entry>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <entry>S</entry>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <entry>open the VM settings dialog</entry>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync </row>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <row>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <entry><computeroutput>InformationDialog</computeroutput></entry>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <entry>N</entry>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <entry>show the VM information window</entry>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync </row>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <row>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <entry><computeroutput>NetworkAdaptersDialog</computeroutput></entry>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <entry></entry>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <entry>show the VM network adapters dialog</entry>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync </row>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <row>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <entry><computeroutput>SharedFoldersDialog</computeroutput></entry>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <entry></entry>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <entry>show the VM shared folders dialog</entry>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync </row>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <row>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <entry><computeroutput>InstallGuestAdditions</computeroutput></entry>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <entry>D</entry>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <entry>mount the ISO containing the Guest Additions</entry>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync </row>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync </tbody>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync </tgroup>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync </table>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <para>To disable the full screen mode as well as the seamless mode, use the following command:
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <screen>VBoxManage setextradata global GUI/Input/MachineShortcuts "FullscreenMode=None,SeamlessMode=None"</screen>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync </para>
34e20f45494bfef87a3a03451616f013ecec80fbvboxsync
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync </sect2>
34e20f45494bfef87a3a03451616f013ecec80fbvboxsync
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <sect2>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <title>Action when terminating the VM</title>
34e20f45494bfef87a3a03451616f013ecec80fbvboxsync
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <para>You can disallow (i.e. black-list) certain actions when terminating a VM.
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync To disallow specific actions, type:</para>
34e20f45494bfef87a3a03451616f013ecec80fbvboxsync
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <para><screen>VBoxManage setextradata "VM name" GUI/RestrictedCloseActions OPTION[,OPTION...]</screen></para>
34e20f45494bfef87a3a03451616f013ecec80fbvboxsync
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <para>where <computeroutput>OPTION</computeroutput> is one of the
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync following keywords:</para><glosslist>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <glossentry>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <glossterm><computeroutput>SaveState</computeroutput></glossterm>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <glossdef>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <para>Don't allow the user to save the VM state when terminating
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync the VM.</para>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync </glossdef>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync </glossentry>
e507be4cc184cb177cb03b427b2f25e754d8cc16vboxsync
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <glossentry>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <glossterm><computeroutput>Shutdown</computeroutput></glossterm>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <glossdef>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <para>Don't allow the user to shutdown the VM by sending the ACPI
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync power-off event to the guest.</para>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync </glossdef>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync </glossentry>
e507be4cc184cb177cb03b427b2f25e754d8cc16vboxsync
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <glossentry>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <glossterm><computeroutput>PowerOff</computeroutput></glossterm>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <glossdef>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <para>Don't allow the user to power off the VM.</para>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync </glossdef>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync </glossentry>
e507be4cc184cb177cb03b427b2f25e754d8cc16vboxsync
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <glossentry>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <glossterm><computeroutput>PowerOffRestoringSnapshot</computeroutput></glossterm>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <glossdef>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <para>Don't allow the user to return to the last snapshot when
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync powering off the VM.</para>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync </glossdef>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync </glossentry>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync </glosslist>
e507be4cc184cb177cb03b427b2f25e754d8cc16vboxsync
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <para>This is a per-VM setting. Any combination of the above is allowed. If all
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync options are specified, the VM cannot be shut down at all.</para>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync </sect2>
e507be4cc184cb177cb03b427b2f25e754d8cc16vboxsync
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <sect2>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <title>Action for handling a Guru Meditation</title>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <para>A VM runs into a Guru Meditation if there is a problem which
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync cannot be fixed by other means than terminating the process. The
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync default is to show a message window which instructs the user to
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync open a bug report.</para>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <para>This behavior can be configured:</para>
dbc14e4e4421a90b09b14a253be920edb9faf584vboxsync
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <para><screen>VBoxManage setextradata "VM name" GUI/GuruMeditationHandler MODE</screen></para>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <para>where <computeroutput>MODE</computeroutput> is one of the
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync following keywords:</para><glosslist>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <glossentry>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <glossterm><computeroutput>Default</computeroutput></glossterm>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <glossdef>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <para>A message window is shown. After the user confirmed, the
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync VM is terminated.</para>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync </glossdef>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync </glossentry>
e507be4cc184cb177cb03b427b2f25e754d8cc16vboxsync
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <glossentry>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <glossterm><computeroutput>PowerOff</computeroutput></glossterm>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <glossdef>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <para>The VM is immediately powered-off without showing any message
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync window. The VM logfile will show information about what happend.</para>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync </glossdef>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync </glossentry>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <glossentry>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <glossterm><computeroutput>Ignore</computeroutput></glossterm>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <glossdef>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <para>The VM is left in stuck mode. Execution is stopped but no
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync message window is shown. The VM has to be powered off manually.</para>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync </glossdef>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync </glossentry>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync </glosslist>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <para>This is a per-VM setting.</para>
34e20f45494bfef87a3a03451616f013ecec80fbvboxsync </sect2>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <sect2>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <title>Configuring automatic mouse capturing</title>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <para>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync By default, the mouse is captured if the user clicks on the guest window
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync and the guest expects relative mouse coordiantes at this time. This
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync happens if the pointing device is configured as PS/2 mouse and the guest did
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync not (yet) start the VirtualBox Guest Additions (for instance, the guest is
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync booting or no Guest Additions installed at all) or if the pointing device
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync is configured as USB tablet but the guest has no USB driver loaded yet.
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync Once the Guest Additions become active or the USB guest driver is started,
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync the mouse capture is automatically released.
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync </para>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <para>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync The default behavior is sometimes not desired. Therefore it can be configured:
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync </para>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <para><screen>VBoxManage setextradata "VM name" GUI/MouseCapturePolicy MODE</screen></para>
dbc14e4e4421a90b09b14a253be920edb9faf584vboxsync
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <para>where <computeroutput>MODE</computeroutput> is one of the
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync following keywords:</para><glosslist>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <glossentry>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <glossterm><computeroutput>Default</computeroutput></glossterm>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <glossdef>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <para>The default behavior as described above.</para>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync </glossdef>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync </glossentry>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <glossentry>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <glossterm><computeroutput>HostComboOnly</computeroutput></glossterm>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <glossdef>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <para>The mouse is only captured if the Host Key is toggled.</para>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync </glossdef>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync </glossentry>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <glossentry>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <glossterm><computeroutput>Disabled</computeroutput></glossterm>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <glossdef>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <para>The mouse is never captured, also not by toggling the Host Key</para>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync </glossdef>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync </glossentry>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync </glosslist>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync <para>This is a per-VM setting.</para>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync </sect2>
0935991672dd1e2dd36e73dabe8d4fb9653fce0avboxsync
645447b600b0222ffdd0bb5f30ef6ec0c1494cc5vboxsync <sect2 id="mouse-capture">
645447b600b0222ffdd0bb5f30ef6ec0c1494cc5vboxsync <title>Configuring automatic mouse capturing</title>
645447b600b0222ffdd0bb5f30ef6ec0c1494cc5vboxsync
645447b600b0222ffdd0bb5f30ef6ec0c1494cc5vboxsync <para>
645447b600b0222ffdd0bb5f30ef6ec0c1494cc5vboxsync By default, the mouse is captured if the user clicks on the guest window
645447b600b0222ffdd0bb5f30ef6ec0c1494cc5vboxsync and the guest expects relative mouse coordiantes at this time. This
645447b600b0222ffdd0bb5f30ef6ec0c1494cc5vboxsync happens if the pointing device is configured as PS/2 mouse and the guest did
645447b600b0222ffdd0bb5f30ef6ec0c1494cc5vboxsync not (yet) start the VirtualBox Guest Additions (for instance, the guest is
645447b600b0222ffdd0bb5f30ef6ec0c1494cc5vboxsync booting or no Guest Additions installed at all) or if the pointing device
645447b600b0222ffdd0bb5f30ef6ec0c1494cc5vboxsync is configured as USB tablet but the guest has no USB driver loaded yet.
645447b600b0222ffdd0bb5f30ef6ec0c1494cc5vboxsync Once the Guest Additions become active or the USB guest driver is started,
645447b600b0222ffdd0bb5f30ef6ec0c1494cc5vboxsync the mouse capture is automatically released.
645447b600b0222ffdd0bb5f30ef6ec0c1494cc5vboxsync </para>
645447b600b0222ffdd0bb5f30ef6ec0c1494cc5vboxsync <para>
645447b600b0222ffdd0bb5f30ef6ec0c1494cc5vboxsync The default behavior is sometimes not desired. Therefore it can be configured:
645447b600b0222ffdd0bb5f30ef6ec0c1494cc5vboxsync </para>
645447b600b0222ffdd0bb5f30ef6ec0c1494cc5vboxsync <para><screen>VBoxManage setextradata "VM name" GUI/MouseCapturePolicy MODE</screen></para>
645447b600b0222ffdd0bb5f30ef6ec0c1494cc5vboxsync
645447b600b0222ffdd0bb5f30ef6ec0c1494cc5vboxsync <para>where <computeroutput>MODE</computeroutput> is one of the
645447b600b0222ffdd0bb5f30ef6ec0c1494cc5vboxsync following keywords:</para><glosslist>
645447b600b0222ffdd0bb5f30ef6ec0c1494cc5vboxsync <glossentry>
645447b600b0222ffdd0bb5f30ef6ec0c1494cc5vboxsync <glossterm><computeroutput>Default</computeroutput></glossterm>
645447b600b0222ffdd0bb5f30ef6ec0c1494cc5vboxsync <glossdef>
645447b600b0222ffdd0bb5f30ef6ec0c1494cc5vboxsync <para>The default behavior as described above.</para>
645447b600b0222ffdd0bb5f30ef6ec0c1494cc5vboxsync </glossdef>
645447b600b0222ffdd0bb5f30ef6ec0c1494cc5vboxsync </glossentry>
645447b600b0222ffdd0bb5f30ef6ec0c1494cc5vboxsync <glossentry>
645447b600b0222ffdd0bb5f30ef6ec0c1494cc5vboxsync <glossterm><computeroutput>HostComboOnly</computeroutput></glossterm>
645447b600b0222ffdd0bb5f30ef6ec0c1494cc5vboxsync <glossdef>
645447b600b0222ffdd0bb5f30ef6ec0c1494cc5vboxsync <para>The mouse is only captured if the Host Key is toggled.</para>
645447b600b0222ffdd0bb5f30ef6ec0c1494cc5vboxsync </glossdef>
645447b600b0222ffdd0bb5f30ef6ec0c1494cc5vboxsync </glossentry>
645447b600b0222ffdd0bb5f30ef6ec0c1494cc5vboxsync <glossentry>
645447b600b0222ffdd0bb5f30ef6ec0c1494cc5vboxsync <glossterm><computeroutput>Disabled</computeroutput></glossterm>
645447b600b0222ffdd0bb5f30ef6ec0c1494cc5vboxsync <glossdef>
645447b600b0222ffdd0bb5f30ef6ec0c1494cc5vboxsync <para>The mouse is never captured, also not by toggling the Host Key</para>
645447b600b0222ffdd0bb5f30ef6ec0c1494cc5vboxsync </glossdef>
645447b600b0222ffdd0bb5f30ef6ec0c1494cc5vboxsync </glossentry>
645447b600b0222ffdd0bb5f30ef6ec0c1494cc5vboxsync </glosslist>
645447b600b0222ffdd0bb5f30ef6ec0c1494cc5vboxsync
645447b600b0222ffdd0bb5f30ef6ec0c1494cc5vboxsync <para>This is a per-VM setting.</para>
645447b600b0222ffdd0bb5f30ef6ec0c1494cc5vboxsync
645447b600b0222ffdd0bb5f30ef6ec0c1494cc5vboxsync </sect2>
645447b600b0222ffdd0bb5f30ef6ec0c1494cc5vboxsync
645447b600b0222ffdd0bb5f30ef6ec0c1494cc5vboxsync <sect2 id="legacy-fullscreen-mode">
645447b600b0222ffdd0bb5f30ef6ec0c1494cc5vboxsync <title>Requesting legacy full-screen mode</title>
645447b600b0222ffdd0bb5f30ef6ec0c1494cc5vboxsync
645447b600b0222ffdd0bb5f30ef6ec0c1494cc5vboxsync <para>
645447b600b0222ffdd0bb5f30ef6ec0c1494cc5vboxsync As of version 4.3.16, VirtualBox uses special window manager facilities to switch
645447b600b0222ffdd0bb5f30ef6ec0c1494cc5vboxsync a multi-screen machine to full-screen on a multi-monitor host system. However,
645447b600b0222ffdd0bb5f30ef6ec0c1494cc5vboxsync not all window managers provide these facilities correctly, so VirtualBox can be
645447b600b0222ffdd0bb5f30ef6ec0c1494cc5vboxsync told to use the old method of switching to full-screen mode instead using the command:
645447b600b0222ffdd0bb5f30ef6ec0c1494cc5vboxsync </para>
645447b600b0222ffdd0bb5f30ef6ec0c1494cc5vboxsync <para><screen>VBoxManage setextradata global GUI/Fullscreen/LegacyMode true</screen></para>
645447b600b0222ffdd0bb5f30ef6ec0c1494cc5vboxsync
645447b600b0222ffdd0bb5f30ef6ec0c1494cc5vboxsync <para>
645447b600b0222ffdd0bb5f30ef6ec0c1494cc5vboxsync You can go back to the new method using the command:
645447b600b0222ffdd0bb5f30ef6ec0c1494cc5vboxsync </para>
645447b600b0222ffdd0bb5f30ef6ec0c1494cc5vboxsync <para><screen>VBoxManage setextradata global GUI/Fullscreen/LegacyMode</screen></para>
645447b600b0222ffdd0bb5f30ef6ec0c1494cc5vboxsync
645447b600b0222ffdd0bb5f30ef6ec0c1494cc5vboxsync <para>This is a global setting.</para>
645447b600b0222ffdd0bb5f30ef6ec0c1494cc5vboxsync
645447b600b0222ffdd0bb5f30ef6ec0c1494cc5vboxsync </sect2>
645447b600b0222ffdd0bb5f30ef6ec0c1494cc5vboxsync
febf3f1de573e25fb134b8453a22b0732b4c52e2vboxsync </sect1>
9f867ca76156f061619e4cffb76451a40c8ad2a3vboxsync
9f867ca76156f061619e4cffb76451a40c8ad2a3vboxsync <sect1 id="vboxwebsrv-daemon">
5a4c0239fb40e75ff03c2842bfc549705ea55335vboxsync <title>Starting the VirtualBox web service automatically</title>
5a4c0239fb40e75ff03c2842bfc549705ea55335vboxsync
5a4c0239fb40e75ff03c2842bfc549705ea55335vboxsync <para>The VirtualBox web service
5a4c0239fb40e75ff03c2842bfc549705ea55335vboxsync (<computeroutput>vboxwebsrv</computeroutput>) is used for controlling
5a4c0239fb40e75ff03c2842bfc549705ea55335vboxsync VirtualBox remotely. It is documented in detail in the VirtualBox Software
5a4c0239fb40e75ff03c2842bfc549705ea55335vboxsync Development Kit (SDK); please see <xref linkend="VirtualBoxAPI" />. As the
5a4c0239fb40e75ff03c2842bfc549705ea55335vboxsync client base using this interface is growing, we added start scripts for
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync the various operation systems we support. The following sections describe
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync how to use them. The VirtualBox web service is never started automatically
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync as a result of a standard installation.</para>
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync <sect2 id="vboxwebsrv-linux">
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync <title>Linux: starting the webservice via <computeroutput>init</computeroutput></title>
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync <para>On Linux, the web service can be automatically started during
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync host boot by adding appropriate parameters to the file
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync <computeroutput>/etc/default/virtualbox</computeroutput>.
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync There is one mandatory parameter, <computeroutput>VBOXWEB_USER</computeroutput>,
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync which must be set to the user which will later start the VMs. The
8a0e16a59a2c5ffeeac323e1842e65a4ddf3c5c1vboxsync parameters in the table below all start with <computeroutput>VBOXWEB_</computeroutput>
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync (<computeroutput>VBOXWEB_HOST</computeroutput>,
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync <computeroutput>VBOXWEB_PORT</computeroutput> etc.):
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync <table>
6c87e6c0339810607dc8ac00c14c61819831bf40vboxsync <title>Web service configuration parameters</title>
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync <tgroup cols="3">
6c87e6c0339810607dc8ac00c14c61819831bf40vboxsync <thead>
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync <row>
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync <entry><emphasis role="bold">Parameter</emphasis></entry>
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync <entry><emphasis role="bold">Description</emphasis></entry>
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync <entry><emphasis role="bold">Default</emphasis></entry>
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync </row>
6c87e6c0339810607dc8ac00c14c61819831bf40vboxsync </thead>
6c87e6c0339810607dc8ac00c14c61819831bf40vboxsync <tbody>
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync <row>
7cd58c15468048a6bd897f5ca3f07a5396fd2aa7vboxsync <entry><computeroutput>USER</computeroutput></entry>
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync <entry>The user as which the web service runs</entry>
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync <entry></entry>
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync </row>
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync <row>
7cd58c15468048a6bd897f5ca3f07a5396fd2aa7vboxsync <entry><computeroutput>HOST</computeroutput></entry>
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync <entry>The host to bind the web service to</entry>
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync <entry>localhost</entry>
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync </row>
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync <row>
7cd58c15468048a6bd897f5ca3f07a5396fd2aa7vboxsync <entry><computeroutput>PORT</computeroutput></entry>
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync <entry>The port to bind the web service to</entry>
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync <entry>18083</entry>
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync </row>
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync <row>
7cd58c15468048a6bd897f5ca3f07a5396fd2aa7vboxsync <entry><computeroutput>SSL_KEYFILE</computeroutput></entry>
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync <entry>Server key and certificate file, PEM format</entry>
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync <entry></entry>
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync </row>
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync <row>
7cd58c15468048a6bd897f5ca3f07a5396fd2aa7vboxsync <entry><computeroutput>SSL_PASSWORDFILE</computeroutput></entry>
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync <entry>File name for password to server key</entry>
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync <entry></entry>
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync </row>
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync <row>
7cd58c15468048a6bd897f5ca3f07a5396fd2aa7vboxsync <entry><computeroutput>SSL_CACERT</computeroutput></entry>
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync <entry>CA certificate file, PEM format</entry>
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync <entry></entry>
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync </row>
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync <row>
7cd58c15468048a6bd897f5ca3f07a5396fd2aa7vboxsync <entry><computeroutput>SSL_CAPATH</computeroutput></entry>
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync <entry>CA certificate path</entry>
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync <entry></entry>
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync </row>
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync <row>
7cd58c15468048a6bd897f5ca3f07a5396fd2aa7vboxsync <entry><computeroutput>SSL_DHFILE</computeroutput></entry>
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync <entry>DH file name or DH key length in bits</entry>
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync <entry></entry>
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync </row>
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync <row>
7cd58c15468048a6bd897f5ca3f07a5396fd2aa7vboxsync <entry><computeroutput>SSL_RANDFILE</computeroutput></entry>
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync <entry>File containing seed for random number generator</entry>
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync <entry></entry>
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync </row>
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync <row>
7cd58c15468048a6bd897f5ca3f07a5396fd2aa7vboxsync <entry><computeroutput>TIMEOUT</computeroutput></entry>
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync <entry>Session timeout in seconds; 0 disables timeouts</entry>
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync <entry>300</entry>
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync </row>
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync <row>
7cd58c15468048a6bd897f5ca3f07a5396fd2aa7vboxsync <entry><computeroutput>CHECK_INTERVAL</computeroutput></entry>
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync <entry>Frequency of timeout checks in seconds</entry>
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync <entry>5</entry>
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync </row>
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync <row>
7cd58c15468048a6bd897f5ca3f07a5396fd2aa7vboxsync <entry><computeroutput>THREADS</computeroutput></entry>
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync <entry>Maximum number of worker threads to run in parallel</entry>
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync <entry>100</entry>
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync </row>
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync <row>
7cd58c15468048a6bd897f5ca3f07a5396fd2aa7vboxsync <entry><computeroutput>KEEPALIVE</computeroutput></entry>
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync <entry>Maximum number of requests before a socket will be closed</entry>
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync <entry>100</entry>
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync </row>
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync <row>
7cd58c15468048a6bd897f5ca3f07a5396fd2aa7vboxsync <entry><computeroutput>ROTATE</computeroutput></entry>
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync <entry>Number of log files; 0 disables log rotation</entry>
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync <entry>10</entry>
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync </row>
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync <row>
7cd58c15468048a6bd897f5ca3f07a5396fd2aa7vboxsync <entry><computeroutput>LOGSIZE</computeroutput></entry>
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync <entry>Maximum size of a log file in bytes to trigger rotation</entry>
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync <entry>1MB</entry>
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync </row>
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync <row>
7cd58c15468048a6bd897f5ca3f07a5396fd2aa7vboxsync <entry><computeroutput>LOGINTERVAL</computeroutput></entry>
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync <entry>Maximum time interval in seconds to trigger log rotation</entry>
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync <entry>1 day</entry>
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync </row>
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync </tbody>
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync </tgroup>
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync </table>
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync </para>
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync <para>Setting the parameter <computeroutput>SSL_KEYFILE</computeroutput>
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync enables the SSL/TLS support. Using encryption is strongly encouraged, as
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync otherwise everything (including passwords) is transferred in clear
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync text.</para>
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync </sect2>
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync <sect2 id="vboxwebsrv-solaris">
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync <title>Solaris: starting the web service via SMF</title>
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync <para>On Solaris hosts, the VirtualBox web service daemon is
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync integrated into the SMF framework. You can change the parameters, but
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync don't have to if the defaults below already match your needs:<screen>svccfg -s svc:/application/virtualbox/webservice:default setprop config/host=localhost
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsyncsvccfg -s svc:/application/virtualbox/webservice:default setprop config/port=18083
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsyncsvccfg -s svc:/application/virtualbox/webservice:default setprop config/user=root</screen></para>
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync <para>The table in the previous section showing the parameter names and
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync defaults also applies to Solaris. The parameter names must be changed
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync to lowercase and a prefix of <computeroutput>config/</computeroutput>
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync has to be added, e.g. <computeroutput>config/user</computeroutput> or
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync <computeroutput>config/ssl_keyfile</computeroutput>. If you made any
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync change, don't forget to run the following command to put the changes into
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync effect immediately:<screen>svcadm refresh svc:/application/virtualbox/webservice:default</screen></para>
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync <para>If you forget the above command then the previous settings will
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync be used when enabling the service. Check the current property settings
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync with:<screen>svcprop -p config svc:/application/virtualbox/webservice:default</screen></para>
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync <para>When everything is configured correctly you can start the
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync VirtualBox web service with the following command:<screen>svcadm enable svc:/application/virtualbox/webservice:default</screen></para>
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync <para>For more information about SMF, please refer to the Solaris
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync documentation.</para>
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync </sect2>
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync <sect2 id="vboxwebsrv-osx">
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync <title>Mac OS X: starting the webservice via launchd</title>
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync <para>On Mac OS X, launchd is used to start the VirtualBox webservice. An
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync example configuration file can be found in
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync <computeroutput>$HOME/Library/LaunchAgents/org.virtualbox.vboxwebsrv.plist</computeroutput>.
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync It can be enabled by changing the
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync <computeroutput>Disabled</computeroutput> key from
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync <computeroutput>true</computeroutput> to
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync <computeroutput>false</computeroutput>. To manually start the
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync service use the following command: <screen>launchctl load ~/Library/LaunchAgents/org.virtualbox.vboxwebsrv.plist</screen>
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync For additional information on how launchd services could be
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync configured see <literal><ulink
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync 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>
48f33dfd8f615d457106bf76ae2d09b8b9167c1avboxsync </sect2>
9f867ca76156f061619e4cffb76451a40c8ad2a3vboxsync </sect1>
2087cc1f185f94ea367e4bba400e039159e7ec3cvboxsync
d8b24a89ae3359610c2a7811858c7e39e15dee13vboxsync <sect1 id="vboxwatchdog">
d8b24a89ae3359610c2a7811858c7e39e15dee13vboxsync <title>VirtualBox Watchdog</title>
d8b24a89ae3359610c2a7811858c7e39e15dee13vboxsync <para>Starting with VirtualBox 4.2 the memory ballooning service formerly
d8b24a89ae3359610c2a7811858c7e39e15dee13vboxsync known as <computeroutput>VBoxBalloonCtrl</computeroutput> was renamed to
2b55a3168b490c568b411befb5fb7d2e28813ee8vboxsync VBoxWatchdog, which now incorporates several host services that are meant
d8b24a89ae3359610c2a7811858c7e39e15dee13vboxsync to be run in a server environment.</para>
2b55a3168b490c568b411befb5fb7d2e28813ee8vboxsync
d8b24a89ae3359610c2a7811858c7e39e15dee13vboxsync <para>These services are: <itemizedlist>
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync <listitem>
2b55a3168b490c568b411befb5fb7d2e28813ee8vboxsync <para>Memory ballooning control, which automatically takes care of
d8b24a89ae3359610c2a7811858c7e39e15dee13vboxsync a VM's configured memory balloon (see <xref linkend="guestadd-balloon" />
2b55a3168b490c568b411befb5fb7d2e28813ee8vboxsync for an introduction to memory ballooning). This especially is useful
2b55a3168b490c568b411befb5fb7d2e28813ee8vboxsync for server environments where VMs may dynamically require more or
d8b24a89ae3359610c2a7811858c7e39e15dee13vboxsync less memory during runtime.</para>
d8b24a89ae3359610c2a7811858c7e39e15dee13vboxsync
d8b24a89ae3359610c2a7811858c7e39e15dee13vboxsync <para>The service periodically checks a VM's current memory balloon
d8b24a89ae3359610c2a7811858c7e39e15dee13vboxsync and its free guest RAM and automatically adjusts the current memory
d8b24a89ae3359610c2a7811858c7e39e15dee13vboxsync balloon by inflating or deflating it accordingly. This handling only
d8b24a89ae3359610c2a7811858c7e39e15dee13vboxsync applies to running VMs having recent Guest Additions installed.</para>
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync </listitem>
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync <listitem>
d8b24a89ae3359610c2a7811858c7e39e15dee13vboxsync <para>Host isolation detection, which provides a way to detect whether
d8b24a89ae3359610c2a7811858c7e39e15dee13vboxsync the host cannot reach the specific VirtualBox server instance anymore
2b55a3168b490c568b411befb5fb7d2e28813ee8vboxsync and take appropriate actions, such as shutting down, saving the
d8b24a89ae3359610c2a7811858c7e39e15dee13vboxsync current state or even powering down certain VMs.</para>
bec052941a2aeb2a3d3bb695b2b37652b64df758vboxsync </listitem>
d8b24a89ae3359610c2a7811858c7e39e15dee13vboxsync </itemizedlist></para>
2b55a3168b490c568b411befb5fb7d2e28813ee8vboxsync
d8b24a89ae3359610c2a7811858c7e39e15dee13vboxsync <para>
d8b24a89ae3359610c2a7811858c7e39e15dee13vboxsync All configuration values can be either specified via command line or global
d8b24a89ae3359610c2a7811858c7e39e15dee13vboxsync extradata, whereas command line values always have a higher priority when set.
d8b24a89ae3359610c2a7811858c7e39e15dee13vboxsync Some of the configuration values also be be specified on a per-VM basis. So
2b55a3168b490c568b411befb5fb7d2e28813ee8vboxsync the overall lookup order is: command line, per-VM basis extradata (if available),
d8b24a89ae3359610c2a7811858c7e39e15dee13vboxsync global extradata.
d8b24a89ae3359610c2a7811858c7e39e15dee13vboxsync </para>
2b55a3168b490c568b411befb5fb7d2e28813ee8vboxsync
d8b24a89ae3359610c2a7811858c7e39e15dee13vboxsync <sect2 id="vboxwatchdog-ballonctrl">
d8b24a89ae3359610c2a7811858c7e39e15dee13vboxsync <title>Memory ballooning control</title>
d8b24a89ae3359610c2a7811858c7e39e15dee13vboxsync <para>The memory ballooning control inflates and deflates the memory balloon
d8b24a89ae3359610c2a7811858c7e39e15dee13vboxsync of VMs based on the VMs free memory and the desired maximum balloon size.</para>
2b55a3168b490c568b411befb5fb7d2e28813ee8vboxsync
d8b24a89ae3359610c2a7811858c7e39e15dee13vboxsync <para>To set up the memory ballooning control the maximum ballooning size a
2b55a3168b490c568b411befb5fb7d2e28813ee8vboxsync VM can reach needs to be set. This can be specified via command line with
2b55a3168b490c568b411befb5fb7d2e28813ee8vboxsync <screen>--balloon-max &lt;Size in MB&gt;</screen>, on a per-VM basis extradata value with
d8b24a89ae3359610c2a7811858c7e39e15dee13vboxsync <screen>VBoxManage setextradata &lt;VM-Name&gt; VBoxInternal2/Watchdog/BalloonCtrl/BalloonSizeMax &lt;Size in MB&gt;</screen>
d8b24a89ae3359610c2a7811858c7e39e15dee13vboxsync or using a global extradata value with
d8b24a89ae3359610c2a7811858c7e39e15dee13vboxsync <screen>VBoxManage setextradata global VBoxInternal2/Watchdog/BalloonCtrl/BalloonSizeMax &lt;Size in MB&gt;</screen>
d8b24a89ae3359610c2a7811858c7e39e15dee13vboxsync <note><para>If no maximum ballooning size is specified by at least one of
d8b24a89ae3359610c2a7811858c7e39e15dee13vboxsync the parameters above, no ballooning will be performed at all.</para></note>
d8b24a89ae3359610c2a7811858c7e39e15dee13vboxsync </para>
2b55a3168b490c568b411befb5fb7d2e28813ee8vboxsync
2b55a3168b490c568b411befb5fb7d2e28813ee8vboxsync <para>Setting the ballooning increment in MB can be either done via
d8b24a89ae3359610c2a7811858c7e39e15dee13vboxsync command line with
2b55a3168b490c568b411befb5fb7d2e28813ee8vboxsync <screen>--balloon-inc &lt;Size in MB&gt;</screen> or using a global
d8b24a89ae3359610c2a7811858c7e39e15dee13vboxsync extradata value with
d8b24a89ae3359610c2a7811858c7e39e15dee13vboxsync <screen>VBoxManage setextradata global VBoxInternal2/Watchdog/BalloonCtrl/BalloonIncrementMB &lt;Size in MB&gt;</screen>
d8b24a89ae3359610c2a7811858c7e39e15dee13vboxsync Default ballooning increment is 256 MB if not specified.</para>
2b55a3168b490c568b411befb5fb7d2e28813ee8vboxsync
d8b24a89ae3359610c2a7811858c7e39e15dee13vboxsync <para>Same goes with the ballooning decrement: Via command line with
2b55a3168b490c568b411befb5fb7d2e28813ee8vboxsync <screen>--balloon-dec &lt;Size in MB&gt;</screen> or using a global
d8b24a89ae3359610c2a7811858c7e39e15dee13vboxsync extradata value with
d8b24a89ae3359610c2a7811858c7e39e15dee13vboxsync <screen>VBoxManage setextradata global VBoxInternal2/Watchdog/BalloonCtrl/BalloonDecrementMB &lt;Size in MB&gt;</screen>
d8b24a89ae3359610c2a7811858c7e39e15dee13vboxsync Default ballooning decrement is 128 MB if not specified.</para>
2b55a3168b490c568b411befb5fb7d2e28813ee8vboxsync
d8b24a89ae3359610c2a7811858c7e39e15dee13vboxsync <para>To define the lower limit in MB a balloon can be the command line with
2b55a3168b490c568b411befb5fb7d2e28813ee8vboxsync <screen>--balloon-lower-limit &lt;Size in MB&gt;</screen> can be used or using a global
d8b24a89ae3359610c2a7811858c7e39e15dee13vboxsync extradata value with
d8b24a89ae3359610c2a7811858c7e39e15dee13vboxsync <screen>VBoxManage setextradata global VBoxInternal2/Watchdog/BalloonCtrl/BalloonLowerLimitMB &lt;Size in MB&gt;</screen>
d8b24a89ae3359610c2a7811858c7e39e15dee13vboxsync is available. Default lower limit is 128 if not specified.</para>
d8b24a89ae3359610c2a7811858c7e39e15dee13vboxsync </sect2>
2b55a3168b490c568b411befb5fb7d2e28813ee8vboxsync
d8b24a89ae3359610c2a7811858c7e39e15dee13vboxsync <sect2 id="vboxwatchdog-hostisln">
d8b24a89ae3359610c2a7811858c7e39e15dee13vboxsync <title>Host isolation detection</title>
d8b24a89ae3359610c2a7811858c7e39e15dee13vboxsync <para>To detect whether a host is being isolated, that is, the host cannot
d8b24a89ae3359610c2a7811858c7e39e15dee13vboxsync reach the VirtualBox server instance anymore, the host needs to set an
d8b24a89ae3359610c2a7811858c7e39e15dee13vboxsync alternating value to a global extradata value within a time period. If
d8b24a89ae3359610c2a7811858c7e39e15dee13vboxsync this value is not set within that time period a timeout occurred and the
2b55a3168b490c568b411befb5fb7d2e28813ee8vboxsync so-called host isolation response will be performed to the VMs handled.
d8b24a89ae3359610c2a7811858c7e39e15dee13vboxsync Which VMs are handled can be controlled by defining VM groups and assigning
d8b24a89ae3359610c2a7811858c7e39e15dee13vboxsync VMs to those groups. By default no groups are set, meaning that all VMs
2b55a3168b490c568b411befb5fb7d2e28813ee8vboxsync on the server will be handled when no host response is received within
d8b24a89ae3359610c2a7811858c7e39e15dee13vboxsync 30 seconds.</para>
2b55a3168b490c568b411befb5fb7d2e28813ee8vboxsync
d8b24a89ae3359610c2a7811858c7e39e15dee13vboxsync <para>To set the groups handled by the host isolation detection via
d8b24a89ae3359610c2a7811858c7e39e15dee13vboxsync command line:
2b55a3168b490c568b411befb5fb7d2e28813ee8vboxsync <screen>--apimon-groups=&lt;string[,stringN]&gt;</screen> or using a global
d8b24a89ae3359610c2a7811858c7e39e15dee13vboxsync extradata value with
d8b24a89ae3359610c2a7811858c7e39e15dee13vboxsync <screen>VBoxManage setextradata global VBoxInternal2/Watchdog/APIMonitor/Groups &lt;string[,stringN]&gt;</screen>
d8b24a89ae3359610c2a7811858c7e39e15dee13vboxsync </para>
2b55a3168b490c568b411befb5fb7d2e28813ee8vboxsync
d8b24a89ae3359610c2a7811858c7e39e15dee13vboxsync <para>To set the host isolation timeout via command line:
2b55a3168b490c568b411befb5fb7d2e28813ee8vboxsync <screen>--apimon-isln-timeout=&lt;ms&gt;</screen> or using a global
d8b24a89ae3359610c2a7811858c7e39e15dee13vboxsync extradata value with
d8b24a89ae3359610c2a7811858c7e39e15dee13vboxsync <screen>VBoxManage setextradata global VBoxInternal2/Watchdog/APIMonitor/IsolationTimeoutMS &lt;ms&gt;</screen>
d8b24a89ae3359610c2a7811858c7e39e15dee13vboxsync </para>
2b55a3168b490c568b411befb5fb7d2e28813ee8vboxsync
d8b24a89ae3359610c2a7811858c7e39e15dee13vboxsync <para>To set the actual host isolation response via command line:
2b55a3168b490c568b411befb5fb7d2e28813ee8vboxsync <screen>--apimon-isln-response=&lt;cmd&gt;</screen> or using a global
d8b24a89ae3359610c2a7811858c7e39e15dee13vboxsync extradata value with
d8b24a89ae3359610c2a7811858c7e39e15dee13vboxsync <screen>VBoxManage setextradata global VBoxInternal2/Watchdog/APIMonitor/IsolationResponse &lt;cmd&gt;</screen>
d8b24a89ae3359610c2a7811858c7e39e15dee13vboxsync The following response commands are available:
d8b24a89ae3359610c2a7811858c7e39e15dee13vboxsync <itemizedlist>
d8b24a89ae3359610c2a7811858c7e39e15dee13vboxsync <listitem>
d8b24a89ae3359610c2a7811858c7e39e15dee13vboxsync <para><computeroutput>none</computeroutput>, which does nothing.</para>
d8b24a89ae3359610c2a7811858c7e39e15dee13vboxsync </listitem>
d8b24a89ae3359610c2a7811858c7e39e15dee13vboxsync <listitem>
d8b24a89ae3359610c2a7811858c7e39e15dee13vboxsync <para><computeroutput>pause</computeroutput>, which pauses the
d8b24a89ae3359610c2a7811858c7e39e15dee13vboxsync execution of a VM.</para>
d8b24a89ae3359610c2a7811858c7e39e15dee13vboxsync </listitem>
d8b24a89ae3359610c2a7811858c7e39e15dee13vboxsync <listitem>
d8b24a89ae3359610c2a7811858c7e39e15dee13vboxsync <para><computeroutput>poweroff</computeroutput>, which shuts down
d8b24a89ae3359610c2a7811858c7e39e15dee13vboxsync the VM by pressing the virtual power button. The VM will not have
d8b24a89ae3359610c2a7811858c7e39e15dee13vboxsync the chance of saving any data or veto the shutdown process.</para>
d8b24a89ae3359610c2a7811858c7e39e15dee13vboxsync </listitem>
d8b24a89ae3359610c2a7811858c7e39e15dee13vboxsync <listitem>
d8b24a89ae3359610c2a7811858c7e39e15dee13vboxsync <para><computeroutput>save</computeroutput>, which saves the current
d8b24a89ae3359610c2a7811858c7e39e15dee13vboxsync machine state and powers off the VM afterwards. If saving the machine
d8b24a89ae3359610c2a7811858c7e39e15dee13vboxsync state fails the VM will be paused.</para>
d8b24a89ae3359610c2a7811858c7e39e15dee13vboxsync </listitem>
d8b24a89ae3359610c2a7811858c7e39e15dee13vboxsync <listitem>
d8b24a89ae3359610c2a7811858c7e39e15dee13vboxsync <para><computeroutput>shutdown</computeroutput>, which shuts down
d8b24a89ae3359610c2a7811858c7e39e15dee13vboxsync the VM in a gentle way by sending an <computeroutput>ACPI</computeroutput>
d8b24a89ae3359610c2a7811858c7e39e15dee13vboxsync shutdown event to the VM's operating system. The OS then has the
d8b24a89ae3359610c2a7811858c7e39e15dee13vboxsync chance of doing a clean shutdown.</para>
d8b24a89ae3359610c2a7811858c7e39e15dee13vboxsync </listitem>
d8b24a89ae3359610c2a7811858c7e39e15dee13vboxsync </itemizedlist>
d8b24a89ae3359610c2a7811858c7e39e15dee13vboxsync </para>
d8b24a89ae3359610c2a7811858c7e39e15dee13vboxsync </sect2>
2b55a3168b490c568b411befb5fb7d2e28813ee8vboxsync
d8b24a89ae3359610c2a7811858c7e39e15dee13vboxsync <sect2 id="vboxwatchdog-moreinfo">
d8b24a89ae3359610c2a7811858c7e39e15dee13vboxsync <title>More information</title>
2b55a3168b490c568b411befb5fb7d2e28813ee8vboxsync <para>For more advanced options and parameters like verbose logging check
2b55a3168b490c568b411befb5fb7d2e28813ee8vboxsync the built-in command line help accessible with
d8b24a89ae3359610c2a7811858c7e39e15dee13vboxsync <computeroutput>--help</computeroutput>.</para>
2b55a3168b490c568b411befb5fb7d2e28813ee8vboxsync </sect2>
2b55a3168b490c568b411befb5fb7d2e28813ee8vboxsync
8a0e16a59a2c5ffeeac323e1842e65a4ddf3c5c1vboxsync <sect2 id="vboxwatchdog-linux">
8a0e16a59a2c5ffeeac323e1842e65a4ddf3c5c1vboxsync <title>Linux: starting the watchdog service via <computeroutput>init</computeroutput></title>
8a0e16a59a2c5ffeeac323e1842e65a4ddf3c5c1vboxsync
8a0e16a59a2c5ffeeac323e1842e65a4ddf3c5c1vboxsync <para>On Linux, the watchdog service can be automatically started during
8a0e16a59a2c5ffeeac323e1842e65a4ddf3c5c1vboxsync host boot by adding appropriate parameters to the file
8a0e16a59a2c5ffeeac323e1842e65a4ddf3c5c1vboxsync <computeroutput>/etc/default/virtualbox</computeroutput>.
8a0e16a59a2c5ffeeac323e1842e65a4ddf3c5c1vboxsync There is one mandatory parameter, <computeroutput>VBOXWATCHDOG_USER</computeroutput>,
8a0e16a59a2c5ffeeac323e1842e65a4ddf3c5c1vboxsync which must be set to the user which will later start the VMs. For backward
8a0e16a59a2c5ffeeac323e1842e65a4ddf3c5c1vboxsync compatibility you can also specify <computeroutput>VBOXBALLOONCTRL_USER</computeroutput>The
8a0e16a59a2c5ffeeac323e1842e65a4ddf3c5c1vboxsync parameters in the table below all start with <computeroutput>VBOXWATCHDOG_</computeroutput>
8a0e16a59a2c5ffeeac323e1842e65a4ddf3c5c1vboxsync (<computeroutput>VBOXWATCHDOG_BALLOON_INTERVAL</computeroutput>,
8a0e16a59a2c5ffeeac323e1842e65a4ddf3c5c1vboxsync <computeroutput>VBOXWATCHDOG_LOGSIZE</computeroutput> etc., and for
8a0e16a59a2c5ffeeac323e1842e65a4ddf3c5c1vboxsync previously existing parameters the
8a0e16a59a2c5ffeeac323e1842e65a4ddf3c5c1vboxsync <computeroutput>VBOXBALLOONCTRL_INTERVAL</computeroutput> etc. parameters
8a0e16a59a2c5ffeeac323e1842e65a4ddf3c5c1vboxsync can still be used):
8a0e16a59a2c5ffeeac323e1842e65a4ddf3c5c1vboxsync <table>
6c87e6c0339810607dc8ac00c14c61819831bf40vboxsync <title>VirtualBox watchdog configuration parameters</title>
8a0e16a59a2c5ffeeac323e1842e65a4ddf3c5c1vboxsync <tgroup cols="3">
cc2d9e7c2355d99aa3626f4f41caf69e37486ed0vboxsync <thead>
8a0e16a59a2c5ffeeac323e1842e65a4ddf3c5c1vboxsync <row>
8a0e16a59a2c5ffeeac323e1842e65a4ddf3c5c1vboxsync <entry><emphasis role="bold">Parameter</emphasis></entry>
8a0e16a59a2c5ffeeac323e1842e65a4ddf3c5c1vboxsync <entry><emphasis role="bold">Description</emphasis></entry>
8a0e16a59a2c5ffeeac323e1842e65a4ddf3c5c1vboxsync <entry><emphasis role="bold">Default</emphasis></entry>
8a0e16a59a2c5ffeeac323e1842e65a4ddf3c5c1vboxsync </row>
cc2d9e7c2355d99aa3626f4f41caf69e37486ed0vboxsync </thead>
cc2d9e7c2355d99aa3626f4f41caf69e37486ed0vboxsync <tbody>
8a0e16a59a2c5ffeeac323e1842e65a4ddf3c5c1vboxsync <row>
7cd58c15468048a6bd897f5ca3f07a5396fd2aa7vboxsync <entry><computeroutput>USER</computeroutput></entry>
8a0e16a59a2c5ffeeac323e1842e65a4ddf3c5c1vboxsync <entry>The user as which the watchdog service runs</entry>
8a0e16a59a2c5ffeeac323e1842e65a4ddf3c5c1vboxsync <entry></entry>
8a0e16a59a2c5ffeeac323e1842e65a4ddf3c5c1vboxsync </row>
8a0e16a59a2c5ffeeac323e1842e65a4ddf3c5c1vboxsync <row>
7cd58c15468048a6bd897f5ca3f07a5396fd2aa7vboxsync <entry><computeroutput>ROTATE</computeroutput></entry>
8a0e16a59a2c5ffeeac323e1842e65a4ddf3c5c1vboxsync <entry>Number of log files; 0 disables log rotation</entry>
8a0e16a59a2c5ffeeac323e1842e65a4ddf3c5c1vboxsync <entry>10</entry>
8a0e16a59a2c5ffeeac323e1842e65a4ddf3c5c1vboxsync </row>
8a0e16a59a2c5ffeeac323e1842e65a4ddf3c5c1vboxsync <row>
7cd58c15468048a6bd897f5ca3f07a5396fd2aa7vboxsync <entry><computeroutput>LOGSIZE</computeroutput></entry>
8a0e16a59a2c5ffeeac323e1842e65a4ddf3c5c1vboxsync <entry>Maximum size of a log file in bytes to trigger rotation</entry>
8a0e16a59a2c5ffeeac323e1842e65a4ddf3c5c1vboxsync <entry>1MB</entry>
8a0e16a59a2c5ffeeac323e1842e65a4ddf3c5c1vboxsync </row>
8a0e16a59a2c5ffeeac323e1842e65a4ddf3c5c1vboxsync <row>
7cd58c15468048a6bd897f5ca3f07a5396fd2aa7vboxsync <entry><computeroutput>LOGINTERVAL</computeroutput></entry>
8a0e16a59a2c5ffeeac323e1842e65a4ddf3c5c1vboxsync <entry>Maximum time interval in seconds to trigger log rotation</entry>
8a0e16a59a2c5ffeeac323e1842e65a4ddf3c5c1vboxsync <entry>1 day</entry>
8a0e16a59a2c5ffeeac323e1842e65a4ddf3c5c1vboxsync </row>
8a0e16a59a2c5ffeeac323e1842e65a4ddf3c5c1vboxsync <row>
7cd58c15468048a6bd897f5ca3f07a5396fd2aa7vboxsync <entry><computeroutput>BALLOON_INTERVAL</computeroutput></entry>
8a0e16a59a2c5ffeeac323e1842e65a4ddf3c5c1vboxsync <entry>Interval for checking the balloon size (msec)</entry>
8a0e16a59a2c5ffeeac323e1842e65a4ddf3c5c1vboxsync <entry>30000</entry>
8a0e16a59a2c5ffeeac323e1842e65a4ddf3c5c1vboxsync </row>
8a0e16a59a2c5ffeeac323e1842e65a4ddf3c5c1vboxsync <row>
7cd58c15468048a6bd897f5ca3f07a5396fd2aa7vboxsync <entry><computeroutput>BALLOON_INCREMENT</computeroutput></entry>
8a0e16a59a2c5ffeeac323e1842e65a4ddf3c5c1vboxsync <entry>Balloon size increment (MByte)</entry>
8a0e16a59a2c5ffeeac323e1842e65a4ddf3c5c1vboxsync <entry>256</entry>
8a0e16a59a2c5ffeeac323e1842e65a4ddf3c5c1vboxsync </row>
8a0e16a59a2c5ffeeac323e1842e65a4ddf3c5c1vboxsync <row>
7cd58c15468048a6bd897f5ca3f07a5396fd2aa7vboxsync <entry><computeroutput>BALLOON_DECREMENT</computeroutput></entry>
8a0e16a59a2c5ffeeac323e1842e65a4ddf3c5c1vboxsync <entry>Balloon size decrement (MByte)</entry>
8a0e16a59a2c5ffeeac323e1842e65a4ddf3c5c1vboxsync <entry>128</entry>
8a0e16a59a2c5ffeeac323e1842e65a4ddf3c5c1vboxsync </row>
8a0e16a59a2c5ffeeac323e1842e65a4ddf3c5c1vboxsync <row>
7cd58c15468048a6bd897f5ca3f07a5396fd2aa7vboxsync <entry><computeroutput>BALLOON_LOWERLIMIT</computeroutput></entry>
8a0e16a59a2c5ffeeac323e1842e65a4ddf3c5c1vboxsync <entry>Balloon size lower limit (MByte)</entry>
8a0e16a59a2c5ffeeac323e1842e65a4ddf3c5c1vboxsync <entry>64</entry>
8a0e16a59a2c5ffeeac323e1842e65a4ddf3c5c1vboxsync </row>
8a0e16a59a2c5ffeeac323e1842e65a4ddf3c5c1vboxsync <row>
7cd58c15468048a6bd897f5ca3f07a5396fd2aa7vboxsync <entry><computeroutput>BALLOON_SAFETYMARGIN</computeroutput></entry>
8a0e16a59a2c5ffeeac323e1842e65a4ddf3c5c1vboxsync <entry>Free memory required for decreasing the balloon size (MByte)</entry>
8a0e16a59a2c5ffeeac323e1842e65a4ddf3c5c1vboxsync <entry>1024</entry>
8a0e16a59a2c5ffeeac323e1842e65a4ddf3c5c1vboxsync </row>
8a0e16a59a2c5ffeeac323e1842e65a4ddf3c5c1vboxsync </tbody>
8a0e16a59a2c5ffeeac323e1842e65a4ddf3c5c1vboxsync </tgroup>
8a0e16a59a2c5ffeeac323e1842e65a4ddf3c5c1vboxsync </table>
8a0e16a59a2c5ffeeac323e1842e65a4ddf3c5c1vboxsync </para>
8a0e16a59a2c5ffeeac323e1842e65a4ddf3c5c1vboxsync </sect2>
8a0e16a59a2c5ffeeac323e1842e65a4ddf3c5c1vboxsync
8a0e16a59a2c5ffeeac323e1842e65a4ddf3c5c1vboxsync <sect2 id="vboxwatchdog-solaris">
8a0e16a59a2c5ffeeac323e1842e65a4ddf3c5c1vboxsync <title>Solaris: starting the watchdog service via SMF</title>
8a0e16a59a2c5ffeeac323e1842e65a4ddf3c5c1vboxsync
8a0e16a59a2c5ffeeac323e1842e65a4ddf3c5c1vboxsync <para>On Solaris hosts, the VirtualBox watchdog service daemon is
8a0e16a59a2c5ffeeac323e1842e65a4ddf3c5c1vboxsync integrated into the SMF framework. You can change the parameters, but
8a0e16a59a2c5ffeeac323e1842e65a4ddf3c5c1vboxsync don't have to if the defaults already match your needs:<screen>svccfg -s svc:/application/virtualbox/balloonctrl:default setprop config/balloon_interval=10000
8a0e16a59a2c5ffeeac323e1842e65a4ddf3c5c1vboxsyncsvccfg -s svc:/application/virtualbox/balloonctrl:default setprop config/balloon_safetymargin=134217728</screen></para>
8a0e16a59a2c5ffeeac323e1842e65a4ddf3c5c1vboxsync
8a0e16a59a2c5ffeeac323e1842e65a4ddf3c5c1vboxsync <para>The table in the previous section showing the parameter names and
8a0e16a59a2c5ffeeac323e1842e65a4ddf3c5c1vboxsync defaults also applies to Solaris. The parameter names must be changed
8a0e16a59a2c5ffeeac323e1842e65a4ddf3c5c1vboxsync to lowercase and a prefix of <computeroutput>config/</computeroutput>
8a0e16a59a2c5ffeeac323e1842e65a4ddf3c5c1vboxsync has to be added, e.g. <computeroutput>config/user</computeroutput> or
8a0e16a59a2c5ffeeac323e1842e65a4ddf3c5c1vboxsync <computeroutput>config/balloon_safetymargin</computeroutput>. If you made any
8a0e16a59a2c5ffeeac323e1842e65a4ddf3c5c1vboxsync change, don't forget to run the following command to put the changes into
8a0e16a59a2c5ffeeac323e1842e65a4ddf3c5c1vboxsync effect immediately:<screen>svcadm refresh svc:/application/virtualbox/balloonctrl:default</screen></para>
8a0e16a59a2c5ffeeac323e1842e65a4ddf3c5c1vboxsync
8a0e16a59a2c5ffeeac323e1842e65a4ddf3c5c1vboxsync <para>If you forget the above command then the previous settings will
8a0e16a59a2c5ffeeac323e1842e65a4ddf3c5c1vboxsync be used when enabling the service. Check the current property settings
8a0e16a59a2c5ffeeac323e1842e65a4ddf3c5c1vboxsync with:<screen>svcprop -p config svc:/application/virtualbox/balloonctrl:default</screen></para>
8a0e16a59a2c5ffeeac323e1842e65a4ddf3c5c1vboxsync
8a0e16a59a2c5ffeeac323e1842e65a4ddf3c5c1vboxsync <para>When everything is configured correctly you can start the
8a0e16a59a2c5ffeeac323e1842e65a4ddf3c5c1vboxsync VirtualBox watchdog service with the following command:<screen>svcadm enable svc:/application/virtualbox/balloonctrl:default</screen></para>
8a0e16a59a2c5ffeeac323e1842e65a4ddf3c5c1vboxsync
8a0e16a59a2c5ffeeac323e1842e65a4ddf3c5c1vboxsync <para>For more information about SMF, please refer to the Solaris
8a0e16a59a2c5ffeeac323e1842e65a4ddf3c5c1vboxsync documentation.</para>
8a0e16a59a2c5ffeeac323e1842e65a4ddf3c5c1vboxsync </sect2>
8a0e16a59a2c5ffeeac323e1842e65a4ddf3c5c1vboxsync
2087cc1f185f94ea367e4bba400e039159e7ec3cvboxsync </sect1>
a31538d939ee498bdcd18f8b967163d53dcefe0dvboxsync
a31538d939ee498bdcd18f8b967163d53dcefe0dvboxsync <sect1 id="otherextpacks">
a31538d939ee498bdcd18f8b967163d53dcefe0dvboxsync <title>Other extension packs</title>
a31538d939ee498bdcd18f8b967163d53dcefe0dvboxsync
a31538d939ee498bdcd18f8b967163d53dcefe0dvboxsync <para>Starting with VirtualBox 4.2.0 there is another extension pack,
a31538d939ee498bdcd18f8b967163d53dcefe0dvboxsync <code>VNC</code>, which is open source and replaces the previous
a31538d939ee498bdcd18f8b967163d53dcefe0dvboxsync integration of the VNC remote access protocol. This is experimental code,
a31538d939ee498bdcd18f8b967163d53dcefe0dvboxsync and will be initially available in the VirtualBox source code package only.
a31538d939ee498bdcd18f8b967163d53dcefe0dvboxsync It is to a large portion code contributed by users, and is not supported
a31538d939ee498bdcd18f8b967163d53dcefe0dvboxsync in any way by Oracle.</para>
a31538d939ee498bdcd18f8b967163d53dcefe0dvboxsync
e5744f6df1c6a56f461e975f261f3ccb3c0ef886vboxsync <para>The keyboard handling is severely limited, and only the US keyboard
e5744f6df1c6a56f461e975f261f3ccb3c0ef886vboxsync layout works. Other keyboard layouts will have at least some keys which
e5744f6df1c6a56f461e975f261f3ccb3c0ef886vboxsync produce the wrong results (often quite surprising effects), and for layouts
e5744f6df1c6a56f461e975f261f3ccb3c0ef886vboxsync which have significant differences to the US keyboard layout it is most
e5744f6df1c6a56f461e975f261f3ccb3c0ef886vboxsync likely unusable.</para>
e5744f6df1c6a56f461e975f261f3ccb3c0ef886vboxsync
a31538d939ee498bdcd18f8b967163d53dcefe0dvboxsync <para>It is possible to install both the Oracle VM VirtualBox Extension
a31538d939ee498bdcd18f8b967163d53dcefe0dvboxsync Pack and VNC, but only one VRDE module can be active at any time. The
7d7568ff57603038ac087fe88ab9d3fc157c98devboxsync following command switches to the VNC VRDE module in
7d7568ff57603038ac087fe88ab9d3fc157c98devboxsync VNC:<screen>VBoxManage setproperty vrdeextpack VNC</screen></para>
a31538d939ee498bdcd18f8b967163d53dcefe0dvboxsync
a31538d939ee498bdcd18f8b967163d53dcefe0dvboxsync <para>Configuring the remote access works very similarly to VRDP (see
a31538d939ee498bdcd18f8b967163d53dcefe0dvboxsync <xref linkend="vrde" />), with some limitations: VNC does not
a31538d939ee498bdcd18f8b967163d53dcefe0dvboxsync support specifying several port numbers, and the authentication is done
a31538d939ee498bdcd18f8b967163d53dcefe0dvboxsync differently. VNC can only deal with password authentication, and there
a31538d939ee498bdcd18f8b967163d53dcefe0dvboxsync is no option to use password hashes. This leaves no other choice than
a31538d939ee498bdcd18f8b967163d53dcefe0dvboxsync having a clear-text password in the VM configuration, which can be set with
25a7ceab67b83045d3329572124454609b26fc81vboxsync the following command:<screen>VBoxManage modifyvm "VM name" --vrdeproperty VNCPassword=secret</screen></para>
a31538d939ee498bdcd18f8b967163d53dcefe0dvboxsync
a31538d939ee498bdcd18f8b967163d53dcefe0dvboxsync <para>The user is responsible for keeping this password secret, and it
a31538d939ee498bdcd18f8b967163d53dcefe0dvboxsync should be removed when a VM configuration is passed to another person,
a31538d939ee498bdcd18f8b967163d53dcefe0dvboxsync for whatever purpose. Some VNC servers claim to have "encrypted" passwords
a31538d939ee498bdcd18f8b967163d53dcefe0dvboxsync in the configuration. This is not true encryption, it is only concealing
a31538d939ee498bdcd18f8b967163d53dcefe0dvboxsync the passwords, which is exactly as secure as clear-text passwords.</para>
7d7568ff57603038ac087fe88ab9d3fc157c98devboxsync
7d7568ff57603038ac087fe88ab9d3fc157c98devboxsync <para>The following command switches back to VRDP (if
7d7568ff57603038ac087fe88ab9d3fc157c98devboxsync installed):<screen>VBoxManage setproperty vrdeextpack "Oracle VM VirtualBox Extension Pack"</screen></para>
a31538d939ee498bdcd18f8b967163d53dcefe0dvboxsync </sect1>
2b55a3168b490c568b411befb5fb7d2e28813ee8vboxsync
2b55a3168b490c568b411befb5fb7d2e28813ee8vboxsync <sect1 id="autostart">
2b55a3168b490c568b411befb5fb7d2e28813ee8vboxsync <title>Starting virtual machines during system boot</title>
2b55a3168b490c568b411befb5fb7d2e28813ee8vboxsync
2b55a3168b490c568b411befb5fb7d2e28813ee8vboxsync <para>Starting with VirtualBox 4.2.0 it is possible to start VMs automatically during
0712f5299b395a8fcb2ec95a2b0bc16b8f0d9d58vboxsync system boot on Linux, Solaris and Mac OS X for all users. </para>
2b55a3168b490c568b411befb5fb7d2e28813ee8vboxsync
2b55a3168b490c568b411befb5fb7d2e28813ee8vboxsync <sect2 id="autostart-linux">
2b55a3168b490c568b411befb5fb7d2e28813ee8vboxsync <title>Linux: starting the autostart service via <computeroutput>init</computeroutput></title>
2b55a3168b490c568b411befb5fb7d2e28813ee8vboxsync
2b55a3168b490c568b411befb5fb7d2e28813ee8vboxsync <para>On Linux, the autostart service is activated by setting two variables in
2b55a3168b490c568b411befb5fb7d2e28813ee8vboxsync <computeroutput>/etc/default/virtualbox</computeroutput>.
2b55a3168b490c568b411befb5fb7d2e28813ee8vboxsync The first one is <computeroutput>VBOXAUTOSTART_DB</computeroutput> which
2b55a3168b490c568b411befb5fb7d2e28813ee8vboxsync contains an absolute path to the autostart database directory.
2b55a3168b490c568b411befb5fb7d2e28813ee8vboxsync The directory should have write access for every user who should be able to
2b55a3168b490c568b411befb5fb7d2e28813ee8vboxsync start virtual machines automatically. Furthermore the directory should have the
2b55a3168b490c568b411befb5fb7d2e28813ee8vboxsync sticky bit set.
2b55a3168b490c568b411befb5fb7d2e28813ee8vboxsync The second variable is <computeroutput>VBOXAUTOSTART_CONFIG</computeroutput>
2b55a3168b490c568b411befb5fb7d2e28813ee8vboxsync which points the service to the autostart configuration file which is used
2b55a3168b490c568b411befb5fb7d2e28813ee8vboxsync during boot to determine whether to allow individual users to start a VM
2b55a3168b490c568b411befb5fb7d2e28813ee8vboxsync automatically and configure startup delays.
a5082574e0ae7ff5d13ba4d68cc4900a1d376900vboxsync The configuration file can be placed in <computeroutput>/etc/vbox</computeroutput>
2b55a3168b490c568b411befb5fb7d2e28813ee8vboxsync and contains several options. One is <computeroutput>default_policy</computeroutput>
2b55a3168b490c568b411befb5fb7d2e28813ee8vboxsync which controls whether the autostart service allows or denies to start a VM
2b55a3168b490c568b411befb5fb7d2e28813ee8vboxsync for users which are not in the exception list.
2b55a3168b490c568b411befb5fb7d2e28813ee8vboxsync The exception list starts with <computeroutput>exception_list</computeroutput>
91b3ad12b6cac90efc3b65eeffba7241cdb15edavboxsync and contains a comma separated list with usernames. Furthermore a separate
2b55a3168b490c568b411befb5fb7d2e28813ee8vboxsync startup delay can be configured for every user to avoid overloading the host.
2b55a3168b490c568b411befb5fb7d2e28813ee8vboxsync A sample configuration is given below:</para>
2b55a3168b490c568b411befb5fb7d2e28813ee8vboxsync
2b55a3168b490c568b411befb5fb7d2e28813ee8vboxsync <para><screen>
2b55a3168b490c568b411befb5fb7d2e28813ee8vboxsync# Default policy is to deny starting a VM, the other option is "allow".
2b55a3168b490c568b411befb5fb7d2e28813ee8vboxsyncdefault_policy = deny
2b55a3168b490c568b411befb5fb7d2e28813ee8vboxsync
eec14e5e13bba628df2c85e643cbab5528f07b7fvboxsync# Bob is allowed to start virtual machines but starting them
eec14e5e13bba628df2c85e643cbab5528f07b7fvboxsync# will be delayed for 10 seconds
eec14e5e13bba628df2c85e643cbab5528f07b7fvboxsyncbob = {
eec14e5e13bba628df2c85e643cbab5528f07b7fvboxsync allow = true
eec14e5e13bba628df2c85e643cbab5528f07b7fvboxsync startup_delay = 10
eec14e5e13bba628df2c85e643cbab5528f07b7fvboxsync}
eec14e5e13bba628df2c85e643cbab5528f07b7fvboxsync
eec14e5e13bba628df2c85e643cbab5528f07b7fvboxsync# Alice is not allowed to start virtual machines, useful to exclude certain users
eec14e5e13bba628df2c85e643cbab5528f07b7fvboxsync# if the default policy is set to allow.
eec14e5e13bba628df2c85e643cbab5528f07b7fvboxsyncalice = {
eec14e5e13bba628df2c85e643cbab5528f07b7fvboxsync allow = false
eec14e5e13bba628df2c85e643cbab5528f07b7fvboxsync}
2b55a3168b490c568b411befb5fb7d2e28813ee8vboxsync </screen></para>
2b55a3168b490c568b411befb5fb7d2e28813ee8vboxsync
2b55a3168b490c568b411befb5fb7d2e28813ee8vboxsync <para>Every user who wants to enable autostart for individual machines
2b55a3168b490c568b411befb5fb7d2e28813ee8vboxsync has to set the path to the autostart database directory with
2b55a3168b490c568b411befb5fb7d2e28813ee8vboxsync <screen>VBoxManage setproperty autostartdbpath &lt;Autostart directory&gt;</screen>
2b55a3168b490c568b411befb5fb7d2e28813ee8vboxsync </para>
2b55a3168b490c568b411befb5fb7d2e28813ee8vboxsync </sect2>
2b55a3168b490c568b411befb5fb7d2e28813ee8vboxsync
f95bbcb7d049de34d389c3ed502a4b9fe478ea3cvboxsync <sect2 id="autostart-solaris">
f95bbcb7d049de34d389c3ed502a4b9fe478ea3cvboxsync <title>Solaris: starting the autostart service via SMF</title>
f95bbcb7d049de34d389c3ed502a4b9fe478ea3cvboxsync
f95bbcb7d049de34d389c3ed502a4b9fe478ea3cvboxsync <para>On Solaris hosts, the VirtualBox autostart daemon is
f95bbcb7d049de34d389c3ed502a4b9fe478ea3cvboxsync integrated into the SMF framework. To enable it you have to point the service
f95bbcb7d049de34d389c3ed502a4b9fe478ea3cvboxsync to an existing configuration file which has the same format as on Linux (see <xref linkend="autostart-linux" />):
f95bbcb7d049de34d389c3ed502a4b9fe478ea3cvboxsync <screen>svccfg -s svc:/application/virtualbox/autostart:default setprop config/config=/etc/vbox/autostart.cfg</screen>
f95bbcb7d049de34d389c3ed502a4b9fe478ea3cvboxsync </para>
f95bbcb7d049de34d389c3ed502a4b9fe478ea3cvboxsync
f95bbcb7d049de34d389c3ed502a4b9fe478ea3cvboxsync <para>When everything is configured correctly you can start the
f95bbcb7d049de34d389c3ed502a4b9fe478ea3cvboxsync VirtualBox autostart service with the following command:<screen>svcadm enable svc:/application/virtualbox/autostart:default</screen></para>
f95bbcb7d049de34d389c3ed502a4b9fe478ea3cvboxsync
f95bbcb7d049de34d389c3ed502a4b9fe478ea3cvboxsync <para>For more information about SMF, please refer to the Solaris
f95bbcb7d049de34d389c3ed502a4b9fe478ea3cvboxsync documentation.</para>
f95bbcb7d049de34d389c3ed502a4b9fe478ea3cvboxsync </sect2>
f95bbcb7d049de34d389c3ed502a4b9fe478ea3cvboxsync
2b55a3168b490c568b411befb5fb7d2e28813ee8vboxsync <sect2 id="autostart-osx">
2b55a3168b490c568b411befb5fb7d2e28813ee8vboxsync <title>Mac OS X: starting the autostart service via launchd</title>
2b55a3168b490c568b411befb5fb7d2e28813ee8vboxsync
2b55a3168b490c568b411befb5fb7d2e28813ee8vboxsync <para>On Mac OS X, launchd is used to start the VirtualBox autostart service. An
2b55a3168b490c568b411befb5fb7d2e28813ee8vboxsync example configuration file can be found in
2b55a3168b490c568b411befb5fb7d2e28813ee8vboxsync <computeroutput>/Applications/VirtualBox.app/Contents/MacOS/org.virtualbox.vboxautostart.plist</computeroutput>.
2b55a3168b490c568b411befb5fb7d2e28813ee8vboxsync To enable the service copy the file to <computeroutput>/Library/LaunchDaemons</computeroutput> and change the
2b55a3168b490c568b411befb5fb7d2e28813ee8vboxsync <computeroutput>Disabled</computeroutput> key from
2b55a3168b490c568b411befb5fb7d2e28813ee8vboxsync <computeroutput>true</computeroutput> to
2b55a3168b490c568b411befb5fb7d2e28813ee8vboxsync <computeroutput>false</computeroutput>. Furthermore replace the second parameter
2b55a3168b490c568b411befb5fb7d2e28813ee8vboxsync to an existing configuration file which has the same format as on Linux (see <xref linkend="autostart-linux" />).
2b55a3168b490c568b411befb5fb7d2e28813ee8vboxsync To manually start the service use the following command:
2b55a3168b490c568b411befb5fb7d2e28813ee8vboxsync <screen>launchctl load /Library/LaunchDaemons/org.virtualbox.vboxautostart.plist</screen>
2b55a3168b490c568b411befb5fb7d2e28813ee8vboxsync For additional information on how launchd services could be
2b55a3168b490c568b411befb5fb7d2e28813ee8vboxsync configured see <literal><ulink
2b55a3168b490c568b411befb5fb7d2e28813ee8vboxsync 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>
2b55a3168b490c568b411befb5fb7d2e28813ee8vboxsync </sect2>
2b55a3168b490c568b411befb5fb7d2e28813ee8vboxsync </sect1>
132885e014b2117bb631d7f7e09f4ad454290d44vboxsync
132885e014b2117bb631d7f7e09f4ad454290d44vboxsync <sect1 id="vboxexpertstoragemgmt">
132885e014b2117bb631d7f7e09f4ad454290d44vboxsync <title>VirtualBox expert storage management</title>
132885e014b2117bb631d7f7e09f4ad454290d44vboxsync
132885e014b2117bb631d7f7e09f4ad454290d44vboxsync <para>In case the snapshot model of VirtualBox is not sufficient
132885e014b2117bb631d7f7e09f4ad454290d44vboxsync it is possible to enable a special mode which makes it possible to
132885e014b2117bb631d7f7e09f4ad454290d44vboxsync reconfigure storage attachments while the VM is paused.
132885e014b2117bb631d7f7e09f4ad454290d44vboxsync The user has to make sure that the disk data stays consistent to the guest
132885e014b2117bb631d7f7e09f4ad454290d44vboxsync because unlike with hotplugging the guest is not informed about detached
132885e014b2117bb631d7f7e09f4ad454290d44vboxsync or newly attached media.</para>
132885e014b2117bb631d7f7e09f4ad454290d44vboxsync
132885e014b2117bb631d7f7e09f4ad454290d44vboxsync <para>The expert storage management mode can be enabled per VM executing:</para>
132885e014b2117bb631d7f7e09f4ad454290d44vboxsync
f34e466484d9727a000bac50c2e198c0173168d4vboxsync <screen>VBoxManage setextradata "VM name" "VBoxInternal2/SilentReconfigureWhilePaused" 1</screen>
132885e014b2117bb631d7f7e09f4ad454290d44vboxsync
132885e014b2117bb631d7f7e09f4ad454290d44vboxsync <para>Storage attachments can be reconfigured while the VM is paused afterwards using:</para>
132885e014b2117bb631d7f7e09f4ad454290d44vboxsync <screen>VBoxManage storageattach ...</screen>
132885e014b2117bb631d7f7e09f4ad454290d44vboxsync </sect1>
38e134c57e4174d882b56ac7b10e76ae5f6c412bvboxsync
38e134c57e4174d882b56ac7b10e76ae5f6c412bvboxsync <sect1 id="hostpowertweaks">
38e134c57e4174d882b56ac7b10e76ae5f6c412bvboxsync <title>Handling of host power management events</title>
38e134c57e4174d882b56ac7b10e76ae5f6c412bvboxsync
38e134c57e4174d882b56ac7b10e76ae5f6c412bvboxsync <para>Some host power management events are handled by VirtualBox. The
38e134c57e4174d882b56ac7b10e76ae5f6c412bvboxsync actual behavior depends on the platform:</para>
38e134c57e4174d882b56ac7b10e76ae5f6c412bvboxsync
38e134c57e4174d882b56ac7b10e76ae5f6c412bvboxsync <para>
38e134c57e4174d882b56ac7b10e76ae5f6c412bvboxsync <glosslist>
38e134c57e4174d882b56ac7b10e76ae5f6c412bvboxsync <glossentry>
38e134c57e4174d882b56ac7b10e76ae5f6c412bvboxsync <glossterm>Host Suspends</glossterm>
38e134c57e4174d882b56ac7b10e76ae5f6c412bvboxsync <glossdef>
38e134c57e4174d882b56ac7b10e76ae5f6c412bvboxsync <para>
38e134c57e4174d882b56ac7b10e76ae5f6c412bvboxsync This event is generated when the host is about to suspend, that is,
38e134c57e4174d882b56ac7b10e76ae5f6c412bvboxsync the host saves the state to some non-volatile storage and powers off.
38e134c57e4174d882b56ac7b10e76ae5f6c412bvboxsync </para>
38e134c57e4174d882b56ac7b10e76ae5f6c412bvboxsync <para>
38e134c57e4174d882b56ac7b10e76ae5f6c412bvboxsync This event is currently only handled on Windows hosts and Mac OS X hosts.
38e134c57e4174d882b56ac7b10e76ae5f6c412bvboxsync When this event is generated, VirtualBox will pause all running VMs.
38e134c57e4174d882b56ac7b10e76ae5f6c412bvboxsync </para>
38e134c57e4174d882b56ac7b10e76ae5f6c412bvboxsync </glossdef>
38e134c57e4174d882b56ac7b10e76ae5f6c412bvboxsync </glossentry>
38e134c57e4174d882b56ac7b10e76ae5f6c412bvboxsync <glossentry>
38e134c57e4174d882b56ac7b10e76ae5f6c412bvboxsync <glossterm>Host Resumes</glossterm>
38e134c57e4174d882b56ac7b10e76ae5f6c412bvboxsync <glossdef>
38e134c57e4174d882b56ac7b10e76ae5f6c412bvboxsync <para>
38e134c57e4174d882b56ac7b10e76ae5f6c412bvboxsync This event is generated when the host woke up from the suspended
38e134c57e4174d882b56ac7b10e76ae5f6c412bvboxsync state.
38e134c57e4174d882b56ac7b10e76ae5f6c412bvboxsync </para>
38e134c57e4174d882b56ac7b10e76ae5f6c412bvboxsync <para>
38e134c57e4174d882b56ac7b10e76ae5f6c412bvboxsync This event is currently only handled on Windows hosts and Mac OS X hosts.
38e134c57e4174d882b56ac7b10e76ae5f6c412bvboxsync When this event is generated, VirtualBox will resume all VMs which
38e134c57e4174d882b56ac7b10e76ae5f6c412bvboxsync are where paused before.
38e134c57e4174d882b56ac7b10e76ae5f6c412bvboxsync </para>
38e134c57e4174d882b56ac7b10e76ae5f6c412bvboxsync </glossdef>
38e134c57e4174d882b56ac7b10e76ae5f6c412bvboxsync </glossentry>
38e134c57e4174d882b56ac7b10e76ae5f6c412bvboxsync <glossentry>
38e134c57e4174d882b56ac7b10e76ae5f6c412bvboxsync <glossterm>Battery Low</glossterm>
38e134c57e4174d882b56ac7b10e76ae5f6c412bvboxsync <glossdef>
38e134c57e4174d882b56ac7b10e76ae5f6c412bvboxsync <para>
38e134c57e4174d882b56ac7b10e76ae5f6c412bvboxsync The battery level reached a critical level (usually less than 5
38e134c57e4174d882b56ac7b10e76ae5f6c412bvboxsync percent charged).
38e134c57e4174d882b56ac7b10e76ae5f6c412bvboxsync </para>
38e134c57e4174d882b56ac7b10e76ae5f6c412bvboxsync <para>
38e134c57e4174d882b56ac7b10e76ae5f6c412bvboxsync This event is currently only handled on Windows hosts and Mac OS X hosts.
38e134c57e4174d882b56ac7b10e76ae5f6c412bvboxsync When this event is generated, VirtualBox will save the state and
38e134c57e4174d882b56ac7b10e76ae5f6c412bvboxsync terminate all VMs in preperation of a potential host powerdown.
38e134c57e4174d882b56ac7b10e76ae5f6c412bvboxsync </para>
38e134c57e4174d882b56ac7b10e76ae5f6c412bvboxsync <para>The behavior can be configured. By executing the following command,
38e134c57e4174d882b56ac7b10e76ae5f6c412bvboxsync no VM is saved:</para>
38e134c57e4174d882b56ac7b10e76ae5f6c412bvboxsync <screen>VBoxManage setextradata global "VBoxInternal2/SavestateOnBatteryLow" 0</screen>
38e134c57e4174d882b56ac7b10e76ae5f6c412bvboxsync <para>This is a global setting as well as a per-VM setting. The per-VM
38e134c57e4174d882b56ac7b10e76ae5f6c412bvboxsync value has higher precedence than the global value. The following command
38e134c57e4174d882b56ac7b10e76ae5f6c412bvboxsync will save the state of all VMs but will not save the state of VM "foo":</para>
38e134c57e4174d882b56ac7b10e76ae5f6c412bvboxsync <screen>VBoxManage setextradata global "VBoxInternal2/SavestateOnBatteryLow" 1
38e134c57e4174d882b56ac7b10e76ae5f6c412bvboxsyncVBoxManage setextradata "foo" "VBoxInternal2/SavestateOnBatteryLow" 0</screen>
38e134c57e4174d882b56ac7b10e76ae5f6c412bvboxsync <para>The first line is actually not required as by default the savestate
38e134c57e4174d882b56ac7b10e76ae5f6c412bvboxsync action is performed.</para>
38e134c57e4174d882b56ac7b10e76ae5f6c412bvboxsync </glossdef>
38e134c57e4174d882b56ac7b10e76ae5f6c412bvboxsync </glossentry>
38e134c57e4174d882b56ac7b10e76ae5f6c412bvboxsync </glosslist>
38e134c57e4174d882b56ac7b10e76ae5f6c412bvboxsync </para>
38e134c57e4174d882b56ac7b10e76ae5f6c412bvboxsync
38e134c57e4174d882b56ac7b10e76ae5f6c412bvboxsync </sect1>
9ef65a89f35c127b959283ea0e2421a6f957de10vboxsync
645447b600b0222ffdd0bb5f30ef6ec0c1494cc5vboxsync <sect1 id="sse412passthrough">
645447b600b0222ffdd0bb5f30ef6ec0c1494cc5vboxsync <title>Experimental support for passing through SSE4.1 / SSE4.2 instructions</title>
645447b600b0222ffdd0bb5f30ef6ec0c1494cc5vboxsync <para>
645447b600b0222ffdd0bb5f30ef6ec0c1494cc5vboxsync To provide SSE 4.1 / SSE 4.2 support to guests, the host CPU has to
645447b600b0222ffdd0bb5f30ef6ec0c1494cc5vboxsync implement these instruction sets. Starting with VirtualBox 4.3.8 it is
645447b600b0222ffdd0bb5f30ef6ec0c1494cc5vboxsync possible to enable these instructions for certain guests using the
645447b600b0222ffdd0bb5f30ef6ec0c1494cc5vboxsync following commands:</para><screen>VBoxManage setextradata "VM name" VBoxInternal/CPUM/SSE4.1 1
645447b600b0222ffdd0bb5f30ef6ec0c1494cc5vboxsyncVBoxManage setextradata "VM name" VBoxInternal/CPUM/SSE4.2 1</screen>
645447b600b0222ffdd0bb5f30ef6ec0c1494cc5vboxsync <para>
645447b600b0222ffdd0bb5f30ef6ec0c1494cc5vboxsync These are a per-VM settings and they are turned off by default.
645447b600b0222ffdd0bb5f30ef6ec0c1494cc5vboxsync </para>
645447b600b0222ffdd0bb5f30ef6ec0c1494cc5vboxsync </sect1>
645447b600b0222ffdd0bb5f30ef6ec0c1494cc5vboxsync
645447b600b0222ffdd0bb5f30ef6ec0c1494cc5vboxsync <sect1 id="hidledssync">
645447b600b0222ffdd0bb5f30ef6ec0c1494cc5vboxsync <title>Support for keyboard indicators synchronization</title>
645447b600b0222ffdd0bb5f30ef6ec0c1494cc5vboxsync
645447b600b0222ffdd0bb5f30ef6ec0c1494cc5vboxsync <para>
645447b600b0222ffdd0bb5f30ef6ec0c1494cc5vboxsync This feature makes the host keyboard lights match those of the virtual machine's virtual
645447b600b0222ffdd0bb5f30ef6ec0c1494cc5vboxsync keyboard when the machine window is selected. It is currently implemented for Mac OS X and
645447b600b0222ffdd0bb5f30ef6ec0c1494cc5vboxsync Windows hosts and available as of releases 4.2.24 and 4.3.8. The feature can be enabled using
645447b600b0222ffdd0bb5f30ef6ec0c1494cc5vboxsync the following command:
645447b600b0222ffdd0bb5f30ef6ec0c1494cc5vboxsync </para>
645447b600b0222ffdd0bb5f30ef6ec0c1494cc5vboxsync
645447b600b0222ffdd0bb5f30ef6ec0c1494cc5vboxsync <screen>VBoxManage setextradata "VM name" GUI/HidLedsSync "1"</screen>
645447b600b0222ffdd0bb5f30ef6ec0c1494cc5vboxsync
645447b600b0222ffdd0bb5f30ef6ec0c1494cc5vboxsync <para>
645447b600b0222ffdd0bb5f30ef6ec0c1494cc5vboxsync In order to disable it, use the same command but change "1" to "0", or use the VBoxManage
645447b600b0222ffdd0bb5f30ef6ec0c1494cc5vboxsync command to remove the extra data. This is a per-VM setting and it is disabled by default.
645447b600b0222ffdd0bb5f30ef6ec0c1494cc5vboxsync </para>
645447b600b0222ffdd0bb5f30ef6ec0c1494cc5vboxsync
645447b600b0222ffdd0bb5f30ef6ec0c1494cc5vboxsync </sect1>
38e134c57e4174d882b56ac7b10e76ae5f6c412bvboxsync
9ef65a89f35c127b959283ea0e2421a6f957de10vboxsync <sect1 id="usbtrafficcapturing">
9ef65a89f35c127b959283ea0e2421a6f957de10vboxsync <title>Capturing USB traffic for selected devices</title>
9ef65a89f35c127b959283ea0e2421a6f957de10vboxsync
9ef65a89f35c127b959283ea0e2421a6f957de10vboxsync <para>
9ef65a89f35c127b959283ea0e2421a6f957de10vboxsync Starting with VirtualBox 5.0 it is possible to capture USB traffic for
9ef65a89f35c127b959283ea0e2421a6f957de10vboxsync single USB devices or on the root hub level which captures the traffic of
9ef65a89f35c127b959283ea0e2421a6f957de10vboxsync all USB devices attached to the root hub. VirtualBox stores the traffic
9ef65a89f35c127b959283ea0e2421a6f957de10vboxsync in a format which is compatible with Wireshark. To capture the traffic
9ef65a89f35c127b959283ea0e2421a6f957de10vboxsync of a specific USB device it must be attached to the VM with VBoxManage
9ef65a89f35c127b959283ea0e2421a6f957de10vboxsync using the following command:
9ef65a89f35c127b959283ea0e2421a6f957de10vboxsync </para>
9ef65a89f35c127b959283ea0e2421a6f957de10vboxsync
9ef65a89f35c127b959283ea0e2421a6f957de10vboxsync <screen>VBoxManage controlvm "VM name" usbattach "device uuid|address" --capturefile "filename"</screen>
9ef65a89f35c127b959283ea0e2421a6f957de10vboxsync
9ef65a89f35c127b959283ea0e2421a6f957de10vboxsync <para>
9ef65a89f35c127b959283ea0e2421a6f957de10vboxsync In order to enable capturing on the root hub use the following command
9ef65a89f35c127b959283ea0e2421a6f957de10vboxsync while the VM is not running:
9ef65a89f35c127b959283ea0e2421a6f957de10vboxsync </para>
9ef65a89f35c127b959283ea0e2421a6f957de10vboxsync
9ef65a89f35c127b959283ea0e2421a6f957de10vboxsync <screen>VBoxManage setextradata "VM name" VBoxInternal/Devices/usb-ehci/LUN#0/Config/CaptureFilename "filename"</screen>
9ef65a89f35c127b959283ea0e2421a6f957de10vboxsync
9ef65a89f35c127b959283ea0e2421a6f957de10vboxsync The command above enables capturing on the root hub attached to the EHCI controller.
9ef65a89f35c127b959283ea0e2421a6f957de10vboxsync To enable it for the OHCI or XHCI controller replace <computeroutput>usb-ehci</computeroutput>
9ef65a89f35c127b959283ea0e2421a6f957de10vboxsync with <computeroutput>usb-ohci</computeroutput> or <computeroutput>usb-xhci</computeroutput> respectively.
9ef65a89f35c127b959283ea0e2421a6f957de10vboxsync
9ef65a89f35c127b959283ea0e2421a6f957de10vboxsync </sect1>
9ef65a89f35c127b959283ea0e2421a6f957de10vboxsync
75d67a5757951aa64bf3887a70db379e1feb84aavboxsync</chapter>