Opened 11 years ago
Closed 8 years ago
#13124 closed defect (obsolete)
guestcontrol execute hangs when run many times in a loop
Reported by: | coder140 | Owned by: | |
---|---|---|---|
Component: | guest control | Version: | VirtualBox 4.3.12 |
Keywords: | Cc: | ||
Guest type: | Windows | Host type: | Windows |
Description
Hello,
I wrote a C++ program that calls VBoxManage guestcontrol commands in a loop. The problem is that after around 100 iterations of the loop, the call does not return. In addition, I can see in the guest VM that the VBoxService.exe process consumes 100% CPU. Another thing: If I shutdown the guest VM, its state becomes "Powered Off", however the GUI does not allow me to power it on (the Start button is greyed out). I can workaround the last issue by killing the "VirtualBox" process on the host computer. After that the VM state becomes "Aborted", and I can start it. More details: Host: Windows 7 64 bit Guest VM: Windows XP 32 bit with SP2. Guest VM configuration: 2 CPUs, 1024 MB RAM. VirtualBox 4.3.12 and matching VBoxAdditions on the guest VM. My program, which runs on the host machine, executes the following commands:
VBoxManage guestcontrol MachineName execute --username administrator --password "" --verbose --image cmd.exe -- /c c:\Windows\system32\calc.exe Sleep(100) VBoxManage guestcontrol MachineName execute --username administrator --password "" --verbose --wait-exit --wait-stdout --wait-stderr --image taskkill.exe -- /PID ProcessIdOfCmdExe /T /F VBoxManage guestcontrol MachineName session close --all
I Would be very happy if this issue can be resolved quickly.
Thank you!
Please reopen if still relevant with a recent VirtualBox release.