Version 13 (modified by jguerra, 10 years ago) (diff) |
---|
Articulos de referencia
http://www.vionblog.com/virtualbox-4-3-autostart-debian-wheezy/
Como root:
- Editar el archivo virtualbox
nano /etc/default/virtualbox
agregar estas lineas en el archivo creado:
VBOXAUTOSTART_DB=/etc/vbox VBOXAUTOSTART_CONFIG=/etc/vbox/autostart.conf
- Cambiar los permisos a la carpeta vbox
chgrp vboxusers /etc/vbox chmod 1775 /etc/vbox
Create the /etc/vbox/autostart.conf and add this users that you want autostart to be enabled, my users for running the virtual machines is vbox
vi /etc/vbox/autostart.conf
# Default policy is to deny starting a VM, the other option is "allow". default_policy = deny
# user vbox is allowed to start virtual machines but starting them # will be delayed for 10 seconds vbox = {
allow = true startup_delay = 10
}
Now login as vbox and enable autostart on the machines you want to start automatically, i will do it for two machines called VirtualMachine1 and VirtualMachine2
VBoxManage setproperty autostartdbpath /etc/vbox VBoxManage modifyvm VirtualMachine1 --autostart-enabled on VBoxManage modifyvm VirtualMachine2 --autostart-enabled on
Now, as root run this command, or reboot your server:
/etc/init.d/vboxautostart-service start