VirtualBox

source: vbox/trunk/doc/manual/en_US/dita/topics/autostart-linux.dita@ 105166

Last change on this file since 105166 was 98549, checked in by vboxsync, 2 years ago

Docs: bugref:10302. Uploading .dita user manual files we received from the doc team on 25th Jan.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.3 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-linux">
4 <title>Linux: Starting the Autostart Service With init</title>
5
6 <body>
7 <p>
8 On Linux, the autostart service is activated by setting two
9 variables in <filepath>/etc/default/virtualbox</filepath>. The
10 first one is <codeph>VBOXAUTOSTART_DB</codeph> which contains
11 an absolute path to the autostart database directory. The
12 directory should have write access for every user who should be
13 able to start virtual machines automatically. Furthermore the
14 directory should have the sticky bit set. The second variable is
15 <codeph>VBOXAUTOSTART_CONFIG</codeph> which points the service
16 to the autostart configuration file which is used during boot to
17 determine whether to allow individual users to start a VM
18 automatically and configure startup delays. The configuration
19 file can be placed in <filepath>/etc/vbox</filepath> and
20 contains several options. One is
21 <codeph>default_policy</codeph> which controls whether the
22 autostart service allows or denies to start a VM for users which
23 are not in the exception list. The exception list starts with
24 <codeph>exception_list</codeph> and contains a comma separated
25 list with usernames. Furthermore a separate startup delay can be
26 configured for every user to avoid overloading the host. A
27 sample configuration is given below:
28 </p>
29 <pre xml:space="preserve"># Default policy is to deny starting a VM, the other option is "allow".
30default_policy = deny
31
32# Bob is allowed to start virtual machines but starting them
33# will be delayed for 10 seconds
34bob = {
35 allow = true
36 startup_delay = 10
37}
38
39# Alice is not allowed to start virtual machines, useful to exclude certain users
40# if the default policy is set to allow.
41alice = {
42 allow = false
43}
44</pre>
45 <p>
46 Any user who wants to enable autostart for individual machines
47 must set the path to the autostart database directory with the
48 following command:
49 </p>
50 <pre xml:space="preserve">VBoxManage setproperty autostartdbpath <varname>autostart-directory</varname>
51 </pre>
52 </body>
53
54</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