VirtualBox

Opened 12 years ago

Closed 8 years ago

#9927 closed defect (obsolete)

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

Reported by: Igor Minar Owned by:
Component: guest control Version: VirtualBox 4.1.6
Keywords: Cc:
Guest type: Windows Host type: Mac OS X

Description (last modified by aeichner)

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 (3)

comment:3 by aeichner, 8 years ago

Description: modified (diff)
Resolution: obsolete
Status: newclosed

Please reopen if still relevant with a recent VirtualBox release.

Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use