VirtualBox

Ticket #9927 (new defect)

Opened 2 years ago

Last modified 21 months ago

guestcontrol exec with --wait-stderr or --wait-stdout hangs the VBoxManage process and prevents further execs

Reported by: IgorMinar Owned by:
Priority: major Component: guest control
Version: VirtualBox 4.1.6 Keywords:
Cc: Guest type: Windows
Host type: Mac OS X

Description

I just upgraded from 4.0.x to 4.1.6 and noticed that my scripts that start internet explorer in the windows VM started hanging (don't if executed from terminal even ctrl-c has no effect, only kill -9 helps). What's even worse is that no new commands can be executed in the vm until the process originally started in the vm dies.

Upon a closer look, I realized that it was --wait-stderr and --wait-stdout flags that caused this issue after removing them the process doesn't hang any more. My original command:

{{

VBoxManage guestcontrol "MYVM" execute --image "cmd.exe" --username MYUSERNAME --password "" --wait-exit --wait-stdout --wait-stderr -- "/c" "C:\Program Files\Internet Explorer\iexplore.exe" " http://somehost/somepath"

}}

after removing the two flags, the process doesn't hang any more and everything works just like in 4.0.x

Change History

Note: See TracTickets for help on using tickets.

www.oracle.com
ContactPrivacy policyTerms of Use