Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there way to tell if an automated logon to a virtualbox windows guest has completed?

I'm currently using virtualbox machines as part of a test process on windows, but at the moment I have to manually wait for login to complete. Is there a way to script this? Perhaps a command I could use in association with VBoxManage guestcontrol?

share|improve this question
Are you certain you need "automated logon"? I am currently using 'vboxmanage guestcontrol' to execute code on guest as part of my own test process. I am simply manually waiting time for the guestcontrol logon to complete until my automated tests execute. although: this may not work for you if a desktop dession / gui is required for your test suites. – jJack Dec 26 '11 at 18:04
Unfortunately, as you suggested, this is a problem because it does relate to GUI testing – Andrew Walker Dec 26 '11 at 20:02

Note: I haven't tried this myself.

Could you not have a logon script in the guest that does VBoxControl guestproperty set LogonCompleted true and then do VBoxManage guestproperty MyVM wait LogonCompleted on the host to detect when this has run?

share|improve this answer
Thanks, I'll look into this – Andrew Walker Jan 6 '12 at 3:26

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .