- Timestamp:
- May 14, 2015 9:09:26 PM (10 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/doc/manual/en_US/user_Frontends.xml
r51568 r55867 37 37 linkend="settings-display" />) or with 38 38 <computeroutput>VBoxManage</computeroutput>:<screen>VBoxManage modifyvm "VM name" --vrde on</screen></para> 39 40 <para>If you use <computeroutput>VBoxHeadless</computeroutput> (described41 further below), VRDP support will be automatically enabled since42 VBoxHeadless has no other means of output.</para>43 39 44 40 <para>By default, the VRDP server uses TCP port … … 166 162 <para>VirtualBox therefore comes with yet another front-end called 167 163 <computeroutput>VBoxHeadless</computeroutput>, which produces no visible 168 output on the host at all, but instead only deliversVRDP data. This164 output on the host at all, but still can deliver VRDP data. This 169 165 front-end has no dependencies on the X Window system on Linux and 170 166 Solaris hosts.<footnote> … … 207 203 <computeroutput>VBoxHeadless</computeroutput> from the VirtualBox 208 204 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. 210 207 </para> 211 208 </listitem> 212 209 </itemizedlist> 213 210 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 <uuid|name> --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 <uuid|name> --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 <uuid|name> --vrde on</screen> 217 and to disable it:<screen>VBoxHeadless --startvm <uuid|name> --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 <uuid|name> --vrde config</screen> 221 but this is the same as <screen>VBoxHeadless --startvm <uuid|name></screen></para> 224 222 225 223 <para>If you start the VM with <computeroutput>VBoxManage startvm ...</computeroutput> … … 311 309 machine, so the machine can boot from it:<screen>VBoxManage storageattach "Windows XP" --storagectl "IDE Controller" 312 310 --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> 313 316 </listitem> 314 317 -
trunk/doc/manual/en_US/user_Introduction.xml
r55142 r55867 1820 1820 <para>Finally, <computeroutput>VBoxHeadless</computeroutput> is yet 1821 1821 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 1824 1825 graphical interfaces, the headless front-end requires no graphics 1825 1826 support. This is useful, for example, if you want to host your -
trunk/doc/manual/en_US/user_VBoxManage.xml
r55843 r55867 1177 1177 modifyvm</computeroutput>:<itemizedlist> 1178 1178 <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> 1185 1182 </listitem> 1186 1183 -
trunk/src/VBox/Frontends/VBoxHeadless/VBoxHeadless.cpp
r55800 r55867 445 445 RTPrintf("Usage:\n" 446 446 " -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" 449 449 " -e, -vrdeproperty, --vrdeproperty <name=[value]> Set a VRDE property:\n" 450 450 " \"TCP/Ports\" - comma-separated list of\n" … … 1016 1016 } 1017 1017 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; 1020 1026 BOOL fVRDEEnabled; 1021 1027 ComPtr <IVRDEServer> vrdeServer; … … 1025 1031 if (vrdeEnabled != NULL) 1026 1032 { 1027 /* -vrde Serveron|off|config */1033 /* -vrde on|off|config */ 1028 1034 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. */ 1045 1050 1046 1051 /* set VRDE port if requested by the user */ … … 1094 1099 } 1095 1100 1101 } 1102 1103 if (enmVRDEOption == VRDEOption_On) 1104 { 1096 1105 /* enable VRDE server (only if currently disabled) */ 1097 1106 if (!fVRDEEnabled) … … 1100 1109 } 1101 1110 } 1102 else 1111 else if (enmVRDEOption == VRDEOption_Off) 1103 1112 { 1104 1113 /* disable VRDE server (only if currently enabled */
Note:
See TracChangeset
for help on using the changeset viewer.