﻿id	summary	reporter	owner	description	type	status	component	version	resolution	keywords	cc	guest	host
14955	Ubuntu 15.10 vboxautostart-service stop does not work	Peter Sburg		"I have install VirtualBox 5.0.12 on a fresh install of Ubuntu 15.10.
I want to use the vboxautostart-service to start and stop a virtual machine automatically at startup and shutdown of the system.

I was able to do the vbox specific setup, so I can call  /usr/lib/virtualbox/vboxautostart-service.sh start/stop from the shell and it works perfectly. I can also use systemctl start vboxautostart-service.service to start the vbox guest. It is even started automatically at system startup after I enabled the service. However if I try to stop the service with
{{{
systemctl stop vboxautostart-service.service
}}}
it does nothing, so the guest is still running afterwards.
systemctl status shows the following:
{{{
root@linux:~# systemctl -l status vboxautostart-service.service
● vboxautostart-service.service
   Loaded: loaded (/usr/lib/virtualbox/vboxautostart-service.sh; enabled; vendor preset: enabled)
   Active: inactive (dead) since Sa 2015-10-31 16:39:10 CET; 4min 57s ago
  Process: 5645 ExecStop=/usr/lib/virtualbox/vboxautostart-service.sh stop (code=exited, status=0/SUCCESS)
  Process: 5586 ExecStart=/usr/lib/virtualbox/vboxautostart-service.sh start (code=exited, status=0/SUCCESS)
   CGroup: /system.slice/vboxautostart-service.service
           ├─ 875 /usr/lib/virtualbox/VBoxXPCOMIPCD
           ├─ 880 /usr/lib/virtualbox/VBoxSVC --auto-shutdown
           └─5602 /usr/lib/virtualbox/VBoxHeadless --comment server --startvm b3376916-8562-442e-a25e-cfe26fa800db --vrde config

Okt 31 16:37:52 linux systemd[1]: Starting vboxautostart-service.service...
Okt 31 16:37:52 linux vboxautostart-service.sh[5586]: Starting VirtualBox VMs configured for autostart
Okt 31 16:37:52 linux systemd[1]: Started vboxautostart-service.service.
Okt 31 16:39:10 linux systemd[1]: Stopping vboxautostart-service.service...
Okt 31 16:39:10 linux systemd[1]: Stopped vboxautostart-service.service.
}}}
"	defect	closed	other	VirtualBox 5.0.12	fixed	vboxautostart-service		Linux	Linux
