File: vboxheadless.dita

package info (click to toggle)
virtualbox 7.1.12-dfsg-2
  • links: PTS, VCS
  • area: contrib
  • in suites: sid
  • size: 565,672 kB
  • sloc: ansic: 2,330,854; cpp: 2,193,228; asm: 230,777; python: 223,895; xml: 86,771; sh: 25,541; makefile: 8,158; perl: 5,697; java: 5,337; cs: 4,872; pascal: 1,782; javascript: 1,692; objc: 1,131; lex: 931; php: 906; sed: 899; yacc: 707
file content (63 lines) | stat: -rw-r--r-- 4,538 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd">
<topic xml:lang="en-us" id="vboxheadless">
  <title>VBoxHeadless, the Remote Desktop Server</title>
  
  <body>
    <p>While any VM started from <ph conkeyref="vbox-conkeyref-phrases/vbox-mgr"/> is capable of running virtual
      machines remotely, it is not convenient to have to run the full GUI if you never want to have VMs displayed
      locally in the first place. In particular, if you are running server hardware whose only purpose is to host VMs,
      and all your VMs are supposed to run remotely over VRDP, then it is pointless to have a graphical user interface
      on the server at all. This is especially true for Linux or Oracle Solaris hosts, as the <ph
        conkeyref="vbox-conkeyref-phrases/vbox-mgr"/> comes with dependencies on the Qt and SDL libraries. This is
      inconvenient if you would rather not have the X Window system on your server at all. </p>
    <p><ph conkeyref="vbox-conkeyref-phrases/product-name"/> therefore comes with a front end called
        <userinput>VBoxHeadless</userinput>, which produces no visible output on the host at all, but still can
      optionally deliver VRDP data. This front end has no dependencies on the X Window system on Linux and Oracle
      Solaris hosts. </p>
    <note>
      <p>In legacy releases of <ph conkeyref="vbox-conkeyref-phrases/product-name"/>, the headless server was called
          <userinput>VBoxVRDP</userinput>. For backward compatibility, the <ph
          conkeyref="vbox-conkeyref-phrases/product-name"/> installation still includes an executable with that name. </p>
    </note>
    <p>To start a virtual machine with <userinput>VBoxHeadless</userinput>, you have the following options: </p>
    <ul>
      <li>
        <p>Use the <userinput>VBoxManage</userinput> command, as follows: </p>
        <pre xml:space="preserve">$ VBoxManage startvm <varname>VM-name</varname> --type headless</pre>
        <p>The <codeph>--type</codeph> option causes <ph conkeyref="vbox-conkeyref-phrases/product-name"/> to use
            <userinput>VBoxHeadless</userinput> as the front end to the internal virtualization engine, instead of the
          Qt front end. </p>
      </li>
      <li>
        <p>Use the <userinput>VBoxHeadless</userinput> command, as follows: </p>
        <pre xml:space="preserve">VBoxHeadless --startvm <varname>uuid</varname>|<varname>vmname</varname>
                        </pre>
        <p>This way of starting the VM helps troubleshooting problems reported by <userinput>VBoxManage
            startvm</userinput>, because you can sometimes see more detailed error messages, especially for early
          failures before the VM execution is started. In normal situations <userinput>VBoxManage startvm</userinput> is
          preferred, since it runs the VM directly as a background process which has to be done explicitly when directly
          starting with <userinput>VBoxHeadless</userinput>. </p>
      </li>
      <li>
        <p>Start <userinput>VBoxHeadless</userinput> from <ph conkeyref="vbox-conkeyref-phrases/vbox-mgr"/>, by pressing
          the Shift key when starting a virtual machine or by selecting <b outputclass="bold">Headless Start</b> from
          the <b outputclass="bold">Machine</b> menu. </p>
      </li>
    </ul>
    <p>When you use the <userinput>VBoxHeadless</userinput> command to start a VM, the VRDP server will be enabled
      according to the VM configuration. You can override the VM's setting using <codeph>--vrde</codeph> command line
      parameter. To enable the VRDP server, start the VM as follows: </p>
    <pre xml:space="preserve">VBoxHeadless --startvm <varname>uuid</varname>|<varname>vmname</varname> --vrde on</pre>
    <p>To disable the VRDP server: </p>
    <pre xml:space="preserve">VBoxHeadless --startvm <varname>uuid</varname>|<varname>vmname</varname> --vrde off</pre>
    <p>To have the VRDP server enabled depending on the VM configuration, as for other front ends: </p>
    <pre xml:space="preserve">VBoxHeadless --startvm <varname>uuid</varname>|<varname>vmname</varname> --vrde config</pre>
    <p>This command is the same as the following: </p>
    <pre xml:space="preserve">VBoxHeadless --startvm <varname>uuid</varname>|<varname>vmname</varname>
                  </pre>
    <p>If you start the VM with <userinput>VBoxManage startvm</userinput> then the configuration settings of the VM are
      always used. </p>
  </body>
  
</topic>