vboxautostart-service not working.2016/08/06

Discussions related to using VirtualBox on Linux hosts.
Post Reply
Saeba
Posts: 12
Joined: 6. Aug 2016, 11:58

vboxautostart-service not working.2016/08/06

Post by Saeba »

I installed ubuntu server 16.04 LTS version and also install virtualbox to run Windows images. Manual start and stop are all working with those windows vm image, but not with boot auto start.

I follow post in this forum to setup "restart vm at boot up time" but finally. I keep got those following message? Can anyone help with this? I think lots of people met this problems.


root@tmmu:/etc/vbox# /etc/init.d/vboxautostart-service start
/etc/init.d/vboxautostart-service: 2: /etc/vbox/autostart.cfg: default_policy: not found
/etc/init.d/vboxautostart-service: 5: /etc/vbox/autostart.cfg: vbox: not found
/etc/init.d/vboxautostart-service: 6: /etc/vbox/autostart.cfg: allow: not found
/etc/init.d/vboxautostart-service: 7: /etc/vbox/autostart.cfg: Syntax error: "}" unexpected

everyone has this questions post this for a long time without any help. Can anyone who in Virtualbox ORG create an official problem fix solution on this ?

-saeba
Saeba
Posts: 12
Joined: 6. Aug 2016, 11:58

Re: vboxautostart-service not working.2016/08/06

Post by Saeba »

I saw lots of people met this problem, but one got answered here.

h t t p s : / / f o r u m s . v i r t u a l b o x . o r g / v i e w t o p i c . p h p ? f = 7 & t = 5 1 7 9 9
Saeba
Posts: 12
Joined: 6. Aug 2016, 11:58

Re: vboxautostart-service not working.2016/08/06

Post by Saeba »

What is autostart.cfg config file syntax? if the following file cannot be recognized by virtualbox service, then what should it be ??
Virtualbox manual did not describe any syntax for this .... truly strange.

VBOXAUTOSTART_DB=/etc/vbox
VBOXAUTOSTART_CONFIG=/etc/vbox/autostart.cfg

# Default policy is to deny starting a VM, the other option is "allow".
default_policy = deny;

# Create an entry for each user allowed to run autostart
vbox = {
allow = true;
};

error when used.
/etc/init.d/vboxautostart-service: 2: /etc/vbox/autostart.cfg: default_policy: not found
/etc/init.d/vboxautostart-service: 5: /etc/vbox/autostart.cfg: vbox: not found
/etc/init.d/vboxautostart-service: 6: /etc/vbox/autostart.cfg: allow: not found
/etc/init.d/vboxautostart-service: 7: /etc/vbox/autostart.cfg: Syntax error: "}" unexpected
Post Reply