VirtualBox

source: vbox/trunk/doc/manual/en_US/dita/topics/autostart-windows.dita

Last change on this file was 105335, checked in by vboxsync, 7 months ago

FE/Qt: bugref:10705. Merging r6149 from doc team's repo.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 4.0 KB
Line 
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="autostart-windows">
4 <title>Windows: Starting the Autostart Service</title>
5
6 <body>
7 <p>On Windows, autostart functionality consist of two components. The first component is a configuration file where
8 the administrator can both set a delayed start for the VMs and temporarily disable autostarting for a particular
9 user. The configuration file should be located in a folder accessible by all required users but it should have
10 permissions allowing only reading by everyone but administrators. The configuration file contains several options.
11 The <codeph>default_policy</codeph> controls whether the autostart service allows or denies starting of a VM for
12 users that are not in the exception list. The exception list starts with <codeph>exception_list</codeph> and
13 contains a comma separated list with usernames. Furthermore, a separate startup delay can be configured for every
14 user to avoid overloading the host. A sample configuration is given below: </p>
15 <pre xml:space="preserve"> # Default policy is to deny starting a VM, the other option is "allow".
16 default_policy = deny
17
18 # Bob is allowed to start virtual machines but starting them
19 # will be delayed for 10 seconds
20 bob = {
21 allow = true
22 startup_delay = 10
23 }
24
25 # Alice is not allowed to start virtual machines, useful to exclude certain users
26 # if the default policy is set to allow.
27 alice = {
28 allow = false
29 }
30</pre>
31 <p>The user name can be specified using the following forms: "user", "domain\user", ".\user" and "user@domain". An
32 administrator must add the <codeph>VBOXAUTOSTART_CONFIG</codeph> environment variable into system variables
33 containing the path to the configuration file described above. The environment variable tells the autostart
34 services which configuration file is used. </p>
35 <p>The second component of autostart functionality is a Windows service. Every instance of this works on behalf of a
36 particular user using their credentials. </p>
37 <p>To enable autostarting for a particular user, a member of the administrators group must run the following
38 command: </p>
39 <pre xml:space="preserve">VBoxAutostartSvc install --user=<varname>user</varname> [--password-file=<varname>password_file</varname>]</pre>
40 <p>The password file should contain the password followed by a line break. The rest of the file is ignored. The user
41 will be asked for a password if the password file is not specified. </p>
42 <p>To disable autostarting for particular user, a member of the administrators group must run the following command: </p>
43 <pre xml:space="preserve">VBoxAutostartSvc delete --user=<varname>user</varname>
44 </pre>
45 <p>If a user has changed their password then a member of the administrators group must either reinstall the service
46 or change the service credentials using Windows Service Manager. Due to Windows security policies, the autostart
47 service cannot be installed for users with empty passwords. </p>
48 <p>Finally, the user should define which VMs should be started at boot. The user should run the following command
49 for every VM they want to start at boot: </p>
50 <pre xml:space="preserve">VBoxManage modifyvm <varname>VM name or UUID</varname> --autostart-enabled on</pre>
51 <p>The user can remove a particular VM from the VMs starting at boot by running the following command: </p>
52 <pre xml:space="preserve">VBoxManage modifyvm <varname>VM name or UUID</varname> --autostart-enabled off</pre>
53 <note>
54 <p>On Windows hosts, starting VMs by using the autostart service might cause some issues, as the virtual machines
55 are starting within the same session as VBoxSVC. For more information see <xref
56 href="vboxsvc-session-0.dita#vboxsvc-session-0"/>. </p>
57 </note>
58 </body>
59
60</topic>
Note: See TracBrowser for help on using the repository browser.

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