top of page

Virtual Box: Autostart on System Boot (Linux)

Updated: Jul 20, 2023

VBoxManage: error: Adding machine ‘Ubuntu-VM’ to the autostart database failed with VERR_ACCESS_DENIED If you this error message, manually create <userid>.start file under /etc/vbox

echo -e "VBOXAUTOSTART_DB=/etc/vbox\nVBOXAUTOSTART_CONFIG=/etc/vbox/autostartvm.cfg" | sudo tee /etc/default/virtualbox 

OUTPUT:

VBOXAUTOSTART_DB=/etc/vbox

VBOXAUTOSTART_CONFIG=/etc/vbox/autostartvm.cfg

sudo nano /etc/vbox/autostartvm.cfg 
default_policy = deny

citron = {
    allow = true
    startup_delay = 10
}
sudo usermod -aG vboxusers citron 
sudo chgrp vboxusers /etc/vbox 
sudo chmod g+w /etc/vbox 
sudo chmod +t /etc/vbox 
VBoxManage setproperty autostartdbpath /etc/vbox/ 
vboxmanage modifyvm centos_x64 --autostart-enabled on          
vboxmanage list vms
sudo systemctl restart vboxautostart-service

To disable

vboxmanage modifyvm fedora30 --autostart-enabled off

References:

Recent Posts

See All
Virtual Box: USB Setup

In order for usb devices to connect to the vm the following needs to be done (only Linux hosts): sudo apt install --reinstall...

 
 
 

Comments


Contact Me

Tel: 678-642-8051

cspeed@jcsassoc.com

  • Google+ Long Shadow
  • LinkedIn Long Shadow
  • Facebook Social Icon
  • Twitter Long Shadow

© 2005 by Christopher Speed

Your details were sent successfully!

bottom of page