﻿id	summary	reporter	owner	description	type	status	component	version	resolution	keywords	cc	guest	host
245	VBoxManage controlvm poweroff does not work when >= VBoxVRDP processes running	thomasb		"I'm not able to poweroff my machines if there are more than two VBoxVRDP processes running. I will shortly summarize two test cases:

=== Working case ===

I have started VBoxSVC in a shell:

{{{cd /opt/VirtualBox}}}
{{{LD_LIBRARY_PATH=. ./VBoxSVC}}}

In another shell I start a virtual box:

{{{VBoxVRDP -startvm machine01}}}

The machine boots up. To poweroff I issue:

{{{VBoxManage controlvm isecom01 poweroff}}}

This works perfectly, the VBoxVRDP process exits. Output of VBoxSVC is:

{{{
*********************************************
InnoTek VirtualBox XPCOM Server Version 1.3.8
(C) 2004-2007 InnoTek Systemberatung GmbH
All rights reserved.

Starting event loop....
[press Ctrl-C to quit]
Informational: VirtualBox object created (rc=00000000).
Informational: VirtualBox object deleted.
}}}

=== not working case ===

Now, again, I start a VBoxSVC process as described above. Also as described above I start VBoxVRDP. But this time, I start >= 2 different virtual boxes the same time.

As described above, I issue a poweroff command to one of the running virtual boxes. This gives no special output, but the VBoxVRDP process keeps on running. When I issue the poweroff a 2nd time, I get:

{{{
irtualBox Command Line Management Interface Version 1.3.8
(C) 2005-2007 InnoTek Systemberatung GmbH
All rights reserved.

[!] FAILED calling virtualBox->OpenExistingSession (session, uuid) at line 3860!
[!] Primary RC  = 0x80070005
[!] Full error info present: true , basic error info present: true
[!] Result Code = 0x80070005
[!] Text        = The machine 'machine02' does not have an open session
[!] Component   = Machine, Interface: IMachine, {fd443ec1-0009-4f5b-9282-d72760a66916}
[!] Callee      = IVirtualBox, {e1d95593-f579-4f47-b489-0b67181014e1}
}}}

So, well, I'm not able to poweroff my machine through VBoxManage. The only thing I can do is to either kill the VBoxVRDP process or press Ctrl-C in the shell.

Another interesting thing is the output of VBoxSVC:

{{{
*********************************************
InnoTek VirtualBox XPCOM Server Version 1.3.8
(C) 2004-2007 InnoTek Systemberatung GmbH
All rights reserved.

Starting event loop....
[press Ctrl-C to quit]
Informational: VirtualBox object created (rc=00000000).
}}}

Shouldn't I get a ""object created"" for every virtual box I start? And shouldn't I get a ""object deleted"" after the poweroff? 

I tried to get rid of this error for a few hours now - but in any case, I wasn't able to proper poweroff my virtual boxes with VBoxManage in case I had >= 2 virtual boxes running..."	defect	closed	other	VirtualBox 1.3.8	invalid			other	other
