forked from pool/virtualbox
35fb819fbd
Now it builds for 42.3 as well - replace switch_to_python3.6.patch with switch_to_python3.4+.patch - remove fixes_for_leap15.patch, upstream has incorporated it - add conflict with i4l-vbox due to shared /etc/vbox - adjust /etc/vbox permissions - add /etc/vbox/autostart.cfg - fix vboxdrv.sh: apply new autostart mechanics to stop_vms() - remove obsolete shutdown section in /etc/default/virtualbox - add VBOXAUTOSTART_{DB,CONFIG} to /etc/default/virtualbox - supply README.autostart OBS-URL: https://build.opensuse.org/request/show/655353 OBS-URL: https://build.opensuse.org/package/show/Virtualization/virtualbox?expand=0&rev=459
37 lines
896 B
Plaintext
37 lines
896 B
Plaintext
Prerequisites
|
|
=============
|
|
|
|
Users, that want to use the VirtualBox autostart feature, have to be
|
|
members of the vboxusers group.
|
|
|
|
E.g.:
|
|
sudo usermod -aG vboxusers USERNAME
|
|
|
|
Preparation
|
|
===========
|
|
|
|
For each autostart user, add a section in /etc/vbox/autostart.cfg:
|
|
|
|
USERNAME = {
|
|
allow = true
|
|
}
|
|
|
|
Users work
|
|
==========
|
|
|
|
The *first* time a user configures autostart, the command:
|
|
VBoxManage setproperty autostartdbpath /etc/vbox
|
|
needs to be run.
|
|
|
|
Note: The autostart options are stored in the /etc/vbox file, and in the
|
|
VM itself. If moving a VM, these options may need to be set again.
|
|
|
|
Prepare a VM to start automatically:
|
|
VBoxManage modifyvm <uuid|vmname> --autostart-enabled <on|off>
|
|
|
|
Choose a shut down mode:
|
|
VBoxManage modifyvm <uuid|vmname> --autostop-type <disabled|savestate|poweroff|acpishutdown>
|
|
|
|
Restart the vboxdrv service to start the VMs in question
|
|
sudo service vboxdrv restart
|