Page 1 of 1

VBox 4.3 Autostart fails to "stop" VM

Posted: 1. Nov 2013, 16:30
by YTC1
Running VB 4.3 on Solaris 11.1

Autostart starts VMs ok, (with bug fixes for staff/vboxuser in script).

However it does not shutdown VMs

Output from CLI

---8< start
bruce@ytc1:/etc/vbox$ /opt/VirtualBox/VBoxAutostart -v --start --config "/etc/vbox/autostart.cfg"
Oracle VM VirtualBox Autostart 4.3.0
(C) 2013 Oracle Corporation
All rights reserved.

VirtualBox Autostart 4.3.0 r89960 solaris.amd64 (Oct 15 2013 12:35:06) release log
00:00:00.001291 main Log opened 2013-11-01T14:28:41.562010000Z
00:00:00.001300 main Build Type: release
00:00:00.001316 main OS Product: SunOS
00:00:00.001321 main OS Release: 5.11
00:00:00.001325 main OS Version: 11.1
00:00:00.001680 main DMI Product Name: System Product Name
00:00:00.001823 main DMI Product Version: System Version
00:00:00.007891 main Host RAM: 9966MB total, 5442MB available
00:00:00.007909 main Executable: /opt/VirtualBox/amd64/VBoxAutostart
00:00:00.007913 main Process ID: 18905
00:00:00.007917 main Package type: SOLARIS_64BITS_GENERIC
00:00:00.008128 main Setting up ...
00:00:00.037455 main Delay starting for 1 seconds ...
00:00:01.055230 main Waiting for VM "b60b887d-4419-4427-a9a4-4fd3c60948d9" to power on...
00:00:01.444529 main VM "b60b887d-4419-4427-a9a4-4fd3c60948d9" has been successfully started.
00:00:01.448868 main Shutting down ...
---8<

Then when I try and stop

---8< Stop
bruce@ytc1:/etc/vbox$ /opt/VirtualBox/VBoxAutostart -v --stop --config "/etc/vbox/autostart.cfg"
Oracle VM VirtualBox Autostart 4.3.0
(C) 2013 Oracle Corporation
All rights reserved.

VirtualBox Autostart 4.3.0 r89960 solaris.amd64 (Oct 15 2013 12:35:06) release log
00:00:00.000505 main Log opened 2013-11-01T14:29:24.916654000Z
00:00:00.000507 main Build Type: release
00:00:00.000514 main OS Product: SunOS
00:00:00.000515 main OS Release: 5.11
00:00:00.000516 main OS Version: 11.1
00:00:00.000640 main DMI Product Name: System Product Name
00:00:00.000677 main DMI Product Version: System Version
00:00:00.003028 main Host RAM: 9966MB total, 4942MB available
00:00:00.003035 main Executable: /opt/VirtualBox/amd64/VBoxAutostart
00:00:00.003036 main Process ID: 18923
00:00:00.003037 main Package type: SOLARIS_64BITS_GENERIC
00:00:00.003126 main Setting up ...
00:00:00.048404 main Shutting down ...
---8<
The VM remains running.

It is as if it does not realise that it can autostop any VMs.

Anyone ??

Re: VBox 4.3 Autostart fails to "stop" VM

Posted: 3. Nov 2013, 10:15
by noteirak
Please attach as zip the related VM log as described here

Re: VBox 4.3 Autostart fails to "stop" VM

Posted: 4. Nov 2013, 11:13
by YTC1
Hi,

Ok, I've added al the logs from around the time of testing. Hopefully one of them will shed some light ?

Re: VBox 4.3 Autostart fails to "stop" VM

Posted: 21. Nov 2013, 17:13
by ess.dee
I've tried to get autostart running to no avail using the old autostart documentation.

Code: Select all

https://www.virtualbox.org/manual/ch09.html#autostart
Evidently, things changed since that doc as the autostart script is looking for /$autostart_db/<username>.start and /$autostart_db/<username>.stop files. There's no doc about what's supposed to be in these files.

I've been unable to get this to work. I wrote my own script to kindly save the VMs during shutdown, but I'd like to have them start at boot too.

Re: VBox 4.3 Autostart fails to "stop" VM

Posted: 21. Nov 2013, 18:51
by brucegb
ess.dee wrote:I've tried to get autostart running to no avail using the old autostart documentation.

Code: Select all


Evidently, things changed since that doc as the autostart script is looking for /$autostart_db/<username>.start and /$autostart_db/<username>.stop files. There's no doc about what's supposed to be in these files.

I've been unable to get this to work. I wrote my own script to kindly save the VMs during shutdown, but I'd like to have them start at boot too.[/quote]

Well I have autostart working OK by amending the script (for Solaris) as listed elsewhere here. (group issue).

Care to share your your shutdown/save script ? I may be able to bodge it in.