I set up the /etc/default/virtualbox file per the guide. Pointed the DB variable to /etc/vbox, set the permissions on that directory to the group vboxusers with full write access for that group and set the sticky bit on. Set the config file variable to /etc/vboxauto.conf. Even rebooted to make sure it all was picked up. Running vboxmanage as user "admin", who is a member of vboxusers, I get the following output:
Code: Select all
[admin@lserver ~]$ vboxmanage modifyvm WinServer --autostart-enabled on --autostart-delay 30 --autostop-type acpishutdown
VBoxManage: error: The path to the autostart database is not set
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component SessionMachine, interface IMachine, callee nsISupports
VBoxManage: error: Context: "COMSETTER(AutostartEnabled)(ValueUnion.f)" at line 2418 of file VBoxManageModifyVM.cpp
The host is a Fedora 17 box, Virtualbox version 4.2.0 build 80737. Here's the output of cat on the two files:
Code: Select all
[admin@lserver ~]$ cat /etc/default/virtualbox
# virtualbox defaults file
VBOXAUTOSTART_DB=/etc/vbox
VBOXAUTOSTART_CONFIG=/etc/vboxauto.conf
[admin@lserver ~]$ cat /etc/vboxauto.conf
# Default policy is to deny starting a VM, the other option is "allow".
default_policy = deny
admin = {
allow = true
}
Code: Select all
[admin@lserver ~]$ ls -l /etc | grep vbox
drwxrwxr-t 2 root vboxusers 4096 Sep 13 04:14 vbox