Page 1 of 1

Guest Execution Service

Posted: 7. Jan 2011, 15:58
by tatacarrera
Hi virtual box users!
I have a Ubuntu 10.10 as a host and a Windows XP SP3 as guest and i would like to know hoy can I realize about the guest execution service state. It happens that i'm tryin to run the VM from the linux console and then run some programs on the Windows guest, but if I run a script like this:

Code: Select all

#!/bin/sh
VBoxManage startvm "Windows XP"
VBoxManage guestcontrol exec "Windows XP" "cmd.exe" --username ******** --password ******** --verbose
the stdout response is

Code: Select all

Waiting for the VM to power on...
VM has been successfully started.
Waiting for guest to start process ...
VBoxManage: error: The guest execution service is not ready.
and so, I need a way to know when the guest execution service is ready

Thanks for reading.

Re: Guest Execution Service

Posted: 7. Jan 2011, 17:39
by Perryg
The guest must be running.

Read Chapter 8.29. VBoxManage guestcontrol in your VirtualBox users manual.

Re: Guest Execution Service

Posted: 7. Jan 2011, 19:17
by tatacarrera
in fact the guest is already running, it says that on the output i wrote, but i realize that i could avoid this by creating a snapshot just when the OS is ready for applications to run