1 | <?xml version='1.0' encoding='UTF-8'?>
|
---|
2 | <!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd">
|
---|
3 | <topic xml:lang="en-us" id="vboxheadless">
|
---|
4 | <title>VBoxHeadless, the Remote Desktop Server</title>
|
---|
5 |
|
---|
6 | <body>
|
---|
7 | <p>
|
---|
8 | While any VM started from VirtualBox Manager is capable of running
|
---|
9 | virtual machines remotely, it is not convenient to have to run
|
---|
10 | the full GUI if you never want to have VMs displayed locally in
|
---|
11 | the first place. In particular, if you are running server
|
---|
12 | hardware whose only purpose is to host VMs, and all your VMs are
|
---|
13 | supposed to run remotely over VRDP, then it is pointless to have
|
---|
14 | a graphical user interface on the server at all. This is
|
---|
15 | especially true for Linux or Oracle Solaris hosts, as the
|
---|
16 | VirtualBox Manager comes with dependencies on the Qt and SDL libraries.
|
---|
17 | This is inconvenient if you would rather not have the X Window
|
---|
18 | system on your server at all.
|
---|
19 | </p>
|
---|
20 | <p>
|
---|
21 | Oracle VM VirtualBox therefore comes with a front-end called
|
---|
22 | <userinput>VBoxHeadless</userinput>, which produces no visible
|
---|
23 | output on the host at all, but still can optionally deliver VRDP
|
---|
24 | data. This front-end has no dependencies on the X Window system
|
---|
25 | on Linux and Oracle Solaris hosts.
|
---|
26 | </p>
|
---|
27 | <note>
|
---|
28 | <p>
|
---|
29 | In legacy releases of Oracle VM VirtualBox, the headless server was
|
---|
30 | called <userinput>VBoxVRDP</userinput>. For backwards
|
---|
31 | compatibility, the Oracle VM VirtualBox installation still includes
|
---|
32 | an executable with that name.
|
---|
33 | </p>
|
---|
34 | </note>
|
---|
35 | <p>
|
---|
36 | To start a virtual machine with <userinput>VBoxHeadless</userinput>,
|
---|
37 | you have the following options:
|
---|
38 | </p>
|
---|
39 | <ul>
|
---|
40 | <li>
|
---|
41 | <p>
|
---|
42 | Use the <userinput>VBoxManage</userinput> command, as follows:
|
---|
43 | </p>
|
---|
44 | <pre xml:space="preserve">$ VBoxManage startvm <varname>VM-name</varname> --type headless</pre>
|
---|
45 | <p>
|
---|
46 | The <codeph>--type</codeph> option causes Oracle VM VirtualBox to
|
---|
47 | use <userinput>VBoxHeadless</userinput> as the front-end to the
|
---|
48 | internal virtualization engine, instead of the Qt front-end.
|
---|
49 | </p>
|
---|
50 | </li>
|
---|
51 | <li>
|
---|
52 | <p>
|
---|
53 | Use the <userinput>VBoxHeadless</userinput> command, as follows:
|
---|
54 | </p>
|
---|
55 | <pre xml:space="preserve">VBoxHeadless --startvm <varname>uuid</varname>|<varname>vmname</varname>
|
---|
56 | </pre>
|
---|
57 | <p>
|
---|
58 | This way of starting the VM helps troubleshooting problems
|
---|
59 | reported by <userinput>VBoxManage startvm</userinput>, because
|
---|
60 | you can sometimes see more detailed error messages,
|
---|
61 | especially for early failures before the VM execution is
|
---|
62 | started. In normal situations <userinput>VBoxManage
|
---|
63 | startvm</userinput> is preferred, since it runs the VM
|
---|
64 | directly as a background process which has to be done
|
---|
65 | explicitly when directly starting with
|
---|
66 | <userinput>VBoxHeadless</userinput>. <!--The full documentation of
|
---|
67 | the command is in <xref href="man_vboxheadless.dita#man_vboxheadless"/>.-->
|
---|
68 | </p>
|
---|
69 | </li>
|
---|
70 | <li>
|
---|
71 | <p>
|
---|
72 | Start <userinput>VBoxHeadless</userinput> from VirtualBox Manager, by
|
---|
73 | pressing the Shift key when starting a virtual machine or by
|
---|
74 | selecting <b outputclass="bold">Headless Start</b>
|
---|
75 | from the <b outputclass="bold">Machine</b> menu.
|
---|
76 | </p>
|
---|
77 | </li>
|
---|
78 | </ul>
|
---|
79 | <p>
|
---|
80 | When you use the <userinput>VBoxHeadless</userinput> command to
|
---|
81 | start a VM, the VRDP server will be enabled according to the VM
|
---|
82 | configuration. You can override the VM's setting using
|
---|
83 | <codeph>--vrde</codeph> command line parameter. To enable the
|
---|
84 | VRDP server, start the VM as follows:
|
---|
85 | </p>
|
---|
86 | <pre xml:space="preserve">VBoxHeadless --startvm <varname>uuid</varname>|<varname>vmname</varname> --vrde on</pre>
|
---|
87 | <p>
|
---|
88 | To disable the VRDP server:
|
---|
89 | </p>
|
---|
90 | <pre xml:space="preserve">VBoxHeadless --startvm <varname>uuid</varname>|<varname>vmname</varname> --vrde off</pre>
|
---|
91 | <p>
|
---|
92 | To have the VRDP server enabled depending on the VM
|
---|
93 | configuration, as for other front-ends:
|
---|
94 | </p>
|
---|
95 | <pre xml:space="preserve">VBoxHeadless --startvm <varname>uuid</varname>|<varname>vmname</varname> --vrde config</pre>
|
---|
96 | <p>
|
---|
97 | This command is the same as the following:
|
---|
98 | </p>
|
---|
99 | <pre xml:space="preserve">VBoxHeadless --startvm <varname>uuid</varname>|<varname>vmname</varname>
|
---|
100 | </pre>
|
---|
101 | <p>
|
---|
102 | If you start the VM with <userinput>VBoxManage startvm</userinput>
|
---|
103 | then the configuration settings of the VM are always used.
|
---|
104 | </p>
|
---|
105 | </body>
|
---|
106 |
|
---|
107 | </topic>
|
---|