Changeset 42552 in vbox
- Timestamp:
- Aug 2, 2012 5:20:33 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/doc/manual/fr_FR/user_AdvancedTopics.xml
r38233 r42552 1677 1677 accessible with <computeroutput>--help</computeroutput>.</para> 1678 1678 </sect1> 1679 1680 <sect1 id="autostart"> 1681 <title>Starting virtual machines during system boot</title> 1682 1683 <para>Starting with VirtualBox 4.2.0 it is possible to start VMs automatically during 1684 system boot on Linux and Mac OS X for all users. </para> 1685 1686 <sect2 id="autostart-linux"> 1687 <title>Linux: starting the autostart service via <computeroutput>init</computeroutput></title> 1688 1689 <para>On Linux, the autostart service is activated by setting two variables in 1690 <computeroutput>/etc/default/virtualbox</computeroutput>. 1691 The first one is <computeroutput>VBOXAUTOSTART_DB</computeroutput> which 1692 contains an absolute path to the autostart database directory. 1693 The directory should have write access for every user who should be able to 1694 start virtual machines automatically. Furthermore the directory should have the 1695 sticky bit set. 1696 The second variable is <computeroutput>VBOXAUTOSTART_CONFIG</computeroutput> 1697 which points the service to the autostart configuration file which is used 1698 during boot to determine whether to allow individual users to start a VM 1699 automatically and configure startup delays. 1700 The config file can be placed in <computeroutput>/etc/vbox</computeroutput> 1701 and contains several options. One is <computeroutput>default_policy</computeroutput> 1702 which controls whether the autostart service allows or denies to start a VM 1703 for users which are not in the exception list. 1704 The exception list starts with <computeroutput>exception_list</computeroutput> 1705 and contains a comma seperated list with usernames. Furthermore a separate 1706 startup delay can be configured for every user to avoid overloading the host. 1707 A sample configuration is given below:</para> 1708 1709 <para><screen> 1710 # Default policy is to deny starting a VM, the other option is "allow". 1711 default_policy = deny 1712 # Users which are allowed are given below. 1713 # If the default policy is to allow starting a VM is not allowed for the users below. 1714 exception_list = bob, alice, joe 1715 1716 bob = 30 # Bobs machines will be started 30 seconds after the autostart service started 1717 alice = 180 # Alice machines will be started 180 seconds after the autostart service started 1718 joe = 240 # Joes machines will be started 240 seconds after the autostart service started 1719 </screen></para> 1720 1721 <para>Every user who wants to enable autostart for individual machines 1722 has to set the path to the autostart database directory with 1723 <screen>VBoxManage setproperty autostartdbpath <Autostart directory></screen> 1724 </para> 1725 </sect2> 1726 1727 <sect2 id="autostart-solaris"> 1728 <title>Solaris: starting the autostart service via SMF</title> 1729 1730 <para>On Solaris hosts, the VirtualBox autostart daemon is 1731 integrated into the SMF framework. To enable it you have to point the service 1732 to an existing configuration file which has the same format as on Linux (see <xref linkend="autostart-linux" />): 1733 <screen>svccfg -s svc:/application/virtualbox/autostart:default setprop config/config=/etc/vbox/autostart.cfg</screen> 1734 </para> 1735 1736 <para>When everything is configured correctly you can start the 1737 VirtualBox autostart service with the following command:<screen>svcadm enable svc:/application/virtualbox/autostart:default</screen></para> 1738 1739 <para>For more information about SMF, please refer to the Solaris 1740 documentation.</para> 1741 </sect2> 1742 1743 <sect2 id="autostart-osx"> 1744 <title>Mac OS X: starting the autostart service via launchd</title> 1745 1746 <para>On Mac OS X, launchd is used to start the VirtualBox autostart service. An 1747 example configuration file can be found in 1748 <computeroutput>/Applications/VirtualBox.app/Contents/MacOS/org.virtualbox.vboxautostart.plist</computeroutput>. 1749 To enable the service copy the file to <computeroutput>/Library/LaunchDaemons</computeroutput> and change the 1750 <computeroutput>Disabled</computeroutput> key from 1751 <computeroutput>true</computeroutput> to 1752 <computeroutput>false</computeroutput>. Furthermore replace the second parameter 1753 to an existing configuration file which has the same format as on Linux (see <xref linkend="autostart-linux" />). 1754 To manually start the service use the following command: 1755 <screen>launchctl load /Library/LaunchDaemons/org.virtualbox.vboxautostart.plist</screen> 1756 For additional information on how launchd services could be 1757 configured see <literal><ulink 1758 url="http://developer.apple.com/mac/library/documentation/MacOSX/Conceptual/BPSystemStartup/BPSystemStartup.html">http://developer.apple.com/mac/library/documentation/MacOSX/Conceptual/BPSystemStartup/BPSystemStartup.html</ulink></literal>.</para> 1759 </sect2> 1760 </sect1> 1679 1761 </chapter>
Note:
See TracChangeset
for help on using the changeset viewer.