﻿id	summary	reporter	owner	description	type	status	component	version	resolution	keywords	cc	guest	host
20574	VBoxManage 'start --type headless' cannot be correctly closed by 'controlvm acpipowerbutton'	Q2K3		"After using: 
{{{
VBoxManage startvm CentOS7-1 CentOS7-2 CentOS7-3 --type headless
}}}
CentOS7-1, 2, 3 are individual vms created by meself and started correctly.

After using:
{{{
VBoxManage controlvm CentOS7-3 acpipowerbutton
}}}
The vm named CentOS7-3 should have been closed correctly.

But after using:
{{{
VBoxManage startvm CentOS7-3 --type headless
}}}
It fails and outputs as below:
{{{
Waiting for VM ""CentOS7-1"" to power on...
VBoxManage.exe: error: The VM session was closed before any attempt to power it on
VBoxManage.exe: error: Details: code E_FAIL (0x80004005), component SessionMachine, interface ISession
}}}

you can find more detail infos in the topic I posted https://forums.virtualbox.org/viewtopic.php?f=3&t=103980

What's more, through log file named VBoxHardening.log.I find log file which is closed incorrectly lack two lines outputs comparing to log file which is closed correctly:
{{{
3fd0.3fd4: supR3HardNtChildWaitFor[2]: Quitting: ExitCode=0x0 (rcNtWait=0x0, rcNt1=0x0, rcNt2=0x103, rcNt3=0x103, 604653 ms, the end);
3f98.3f9c: supR3HardNtChildWaitFor[1]: Quitting: ExitCode=0x0 (rcNtWait=0x0, rcNt1=0x0, rcNt2=0x103, rcNt3=0x103, 605077 ms, the end);
}}}

Hope this additional msg can help pro devs to solve this problems.
Thx for devs attention and contributions!"	defect	new	VM control	VirtualBox 6.1.26		VBoxManage		Linux	Windows
