Vboxauto restart service - Having a space in path name

Discussions related to using VirtualBox on Linux hosts.
Post Reply
BCTadmin
Posts: 1
Joined: 7. Nov 2017, 14:32

Vboxauto restart service - Having a space in path name

Post by BCTadmin »

Hi

Im really struggling with setting up the vbox auto restart service. The problem i have is that the etc/defauly/virtualbox config file requires the VBOXAUTOSTART_DB= path to have a space in the directory path. i.e /home/VirtualBox VMs

I have tried multiple ways to create the syntax -

VBOXAUTOSTART_DB="/home/VirtualBox VMs"
VBOXAUTOSTART_DB="/home/VirtualBox\ VMs"
etc
and if I run this as an export

export VBOXAUTOSTART_DB="/home/VirtualBox VMs"
cd $VBOXAUTOSTART_DB

it works

However If I then restart the service and run
service vboxautostart-service status

The service can no get access as it cant see that path. It looks at /home/VirtualBox and then /VMs as opposed to the full path.

normally I would "$VBOXAUTOSTART_DB" for it to work ???

Any suggestions as to what Im doing wrong?

thanks

Keith
Viper_Suicide
Posts: 2
Joined: 26. Dec 2018, 01:03

Re: Vboxauto restart service - Having a space in path name

Post by Viper_Suicide »

Hi Keith,

Did you resolve this? I have exactly the same issue.

Feb 05 22:53:54 machine vboxautostart-service.sh[9911]: Starting VirtualBox VMs configured for autostart.
Feb 05 22:53:54 machine vboxautostart-service.sh[9900]: ls: cannot access '/home/username/VirtualBox': No such file or directory
Feb 05 22:53:54 machine vboxautostart-service.sh[9900]: ls: cannot access 'VMs/*.start': No such file or directory
Viper_Suicide
Posts: 2
Joined: 26. Dec 2018, 01:03

Re: Vboxauto restart service - Having a space in path name

Post by Viper_Suicide »

Hi,

In case this helps anyone with the same issue. The config files do not need to live in the Virtualbox\ VMs/ directory, they should live in /etc/vbox

I reconfigured the .start file and the cfg file to live in /etc/vbox and changed the default/virtualbox file and its all working now

sudo vi /etc/default/virtualbox
VBOXAUTOSTART_DB='/etc/vbox'
VBOXAUTOSTART_CONFIG='/etc/vbox/vbox.cfg'
Post Reply