VirtualBox

Changeset 55867 in vbox for trunk


Ignore:
Timestamp:
May 14, 2015 9:09:26 PM (10 years ago)
Author:
vboxsync
Message:

VBoxHeadless: do not enable the VRDP server automatically, use the VM setting instead. User manual update.

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/doc/manual/en_US/user_Frontends.xml

    r51568 r55867  
    3737    linkend="settings-display" />) or with
    3838    <computeroutput>VBoxManage</computeroutput>:<screen>VBoxManage modifyvm "VM name" --vrde on</screen></para>
    39 
    40     <para>If you use <computeroutput>VBoxHeadless</computeroutput> (described
    41     further below), VRDP support will be automatically enabled since
    42     VBoxHeadless has no other means of output.</para>
    4339
    4440    <para>By default, the VRDP server uses TCP port
     
    166162      <para>VirtualBox therefore comes with yet another front-end called
    167163      <computeroutput>VBoxHeadless</computeroutput>, which produces no visible
    168       output on the host at all, but instead only delivers VRDP data. This
     164      output on the host at all, but still can deliver VRDP data. This
    169165      front-end has no dependencies on the X Window system on Linux and
    170166      Solaris hosts.<footnote>
     
    207203          <computeroutput>VBoxHeadless</computeroutput> from the VirtualBox
    208204          Manager GUI, by holding the Shift key when starting a virtual
    209           machine.
     205          machine or selecting <computeroutput>Headless Start</computeroutput>
     206          from the <computeroutput>Machine</computeroutput> menu.
    210207          </para>
    211208        </listitem>
    212209      </itemizedlist>
    213210
    214       <para>Note that when you use
    215       <computeroutput>VBoxHeadless</computeroutput> to start a VM, since the
    216       headless server has no other means of output, the VRDP server will
    217       <emphasis>always</emphasis> be enabled, regardless of whether you had
    218       enabled the VRDP server in the VM's settings. If this is undesirable
    219       (for example because you want to access the VM via
    220       <computeroutput>ssh</computeroutput> only), start the VM like
    221       this:<screen>VBoxHeadless --startvm &lt;uuid|name&gt; --vrde off</screen>To
    222       have the VRDP server enabled depending on the VM configuration, as the
    223       other front-ends would, use this:<screen>VBoxHeadless --startvm &lt;uuid|name&gt; --vrde config</screen></para>
     211      <para>Since VirtualBox version 5.0, when you use
     212      <computeroutput>VBoxHeadless</computeroutput> to start a VM,
     213      the VRDP server will be enabled according to the VM configuration.
     214      You can override the VM's setting using <computeroutput>--vrde</computeroutput>
     215      command line parameter. To enable the VRDP server start the VM like
     216      this:<screen>VBoxHeadless --startvm &lt;uuid|name&gt; --vrde on</screen>
     217      and to disable it:<screen>VBoxHeadless --startvm &lt;uuid|name&gt; --vrde off</screen>
     218      To have the VRDP server enabled depending on the VM configuration, as the
     219      other front-ends would, you can still use:
     220      <screen>VBoxHeadless --startvm &lt;uuid|name&gt; --vrde config</screen>
     221      but this is the same as <screen>VBoxHeadless --startvm &lt;uuid|name&gt;</screen></para>
    224222
    225223      <para>If you start the VM with <computeroutput>VBoxManage startvm ...</computeroutput>
     
    311309            machine, so the machine can boot from it:<screen>VBoxManage storageattach "Windows XP" --storagectl "IDE Controller"
    312310      --port 0 --device 1 --type dvddrive --medium /full/path/to/iso.iso</screen></para>
     311          </listitem>
     312
     313          <listitem>
     314            <para>Enable VirtualBox remote desktop extension (the VRDP server):
     315            <screen>VBoxManage modifyvm "Windows XP" --vrde on</screen></para>
    313316          </listitem>
    314317
  • trunk/doc/manual/en_US/user_Introduction.xml

    r55142 r55867  
    18201820          <para>Finally, <computeroutput>VBoxHeadless</computeroutput> is yet
    18211821          another front-end that produces no visible output on the host at
    1822           all, but merely acts as a RDP server if the VirtualBox Remote
    1823           Desktop Extension (VRDE) is installed. As opposed to the other
     1822          all, but can act as a RDP server if the VirtualBox Remote
     1823          Desktop Extension (VRDE) is installed and enabled for the VM.
     1824          As opposed to the other
    18241825          graphical interfaces, the headless front-end requires no graphics
    18251826          support. This is useful, for example, if you want to host your
  • trunk/doc/manual/en_US/user_VBoxManage.xml

    r55843 r55867  
    11771177      modifyvm</computeroutput>:<itemizedlist>
    11781178          <listitem>
    1179             <para><computeroutput>--vrde on|off</computeroutput>: With the
    1180             VirtualBox graphical user interface, this enables or disables the
    1181             VirtualBox remote desktop extension (VRDE) server. Note that if
    1182             you are using <computeroutput>VBoxHeadless</computeroutput> (see
    1183             <xref linkend="vboxheadless" />), VRDE is enabled by
    1184             default.</para>
     1179            <para><computeroutput>--vrde on|off</computeroutput>:
     1180            This enables or disables the VirtualBox remote desktop extension
     1181            (VRDE) server.</para>
    11851182          </listitem>
    11861183
  • trunk/src/VBox/Frontends/VBoxHeadless/VBoxHeadless.cpp

    r55800 r55867  
    445445    RTPrintf("Usage:\n"
    446446             "   -s, -startvm, --startvm <name|uuid>   Start given VM (required argument)\n"
    447              "   -v, -vrde, --vrde on|off|config       Enable (default) or disable the VRDE\n"
    448              "                                           server or don't change the setting\n"
     447             "   -v, -vrde, --vrde on|off|config       Enable or disable the VRDE server\n"
     448             "                                           or don't change the setting (default)\n"
    449449             "   -e, -vrdeproperty, --vrdeproperty <name=[value]> Set a VRDE property:\n"
    450450             "                                     \"TCP/Ports\" - comma-separated list of\n"
     
    10161016        }
    10171017
    1018         /* default is to enable the remote desktop server (backward compatibility) */
    1019         BOOL fVRDEEnable = true;
     1018        /* Default is to use the VM setting for the VRDE server. */
     1019        enum VRDEOption
     1020        {
     1021            VRDEOption_Config,
     1022            VRDEOption_Off,
     1023            VRDEOption_On
     1024        };
     1025        VRDEOption enmVRDEOption = VRDEOption_Config;
    10201026        BOOL fVRDEEnabled;
    10211027        ComPtr <IVRDEServer> vrdeServer;
     
    10251031        if (vrdeEnabled != NULL)
    10261032        {
    1027             /* -vrdeServer on|off|config */
     1033            /* -vrde on|off|config */
    10281034            if (!strcmp(vrdeEnabled, "off") || !strcmp(vrdeEnabled, "disable"))
    1029                 fVRDEEnable = false;
    1030             else if (!strcmp(vrdeEnabled, "config"))
    1031             {
    1032                 if (!fVRDEEnabled)
    1033                     fVRDEEnable = false;
    1034             }
    1035             else if (strcmp(vrdeEnabled, "on") && strcmp(vrdeEnabled, "enable"))
    1036             {
    1037                 RTPrintf("-vrdeServer requires an argument (on|off|config)\n");
    1038                 break;
    1039             }
    1040         }
    1041 
    1042         if (fVRDEEnable)
    1043         {
    1044             Log(("VBoxHeadless: Enabling VRDE server...\n"));
     1035                enmVRDEOption = VRDEOption_Off;
     1036            else if (!strcmp(vrdeEnabled, "on") || !strcmp(vrdeEnabled, "enable"))
     1037                enmVRDEOption = VRDEOption_On;
     1038            else if (strcmp(vrdeEnabled, "config"))
     1039            {
     1040                RTPrintf("-vrde requires an argument (on|off|config)\n");
     1041                break;
     1042            }
     1043        }
     1044
     1045        Log(("VBoxHeadless: enmVRDE %d, fVRDEEnabled %d\n", enmVRDEOption, fVRDEEnabled));
     1046
     1047        if (enmVRDEOption != VRDEOption_Off)
     1048        {
     1049            /* Set other specified options. */
    10451050
    10461051            /* set VRDE port if requested by the user */
     
    10941099            }
    10951100
     1101        }
     1102
     1103        if (enmVRDEOption == VRDEOption_On)
     1104        {
    10961105            /* enable VRDE server (only if currently disabled) */
    10971106            if (!fVRDEEnabled)
     
    11001109            }
    11011110        }
    1102         else
     1111        else if (enmVRDEOption == VRDEOption_Off)
    11031112        {
    11041113            /* disable VRDE server (only if currently enabled */
Note: See TracChangeset for help on using the changeset viewer.

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