VirtualBox guestcontrol: issues controlling guest
Posted: 8. Sep 2011, 12:34
Could anyone please help me with my Question at http://stackoverflow.com/questions/7067 ... rminal-app
The docs don't appear to be up to date, in that following them directly returned errors. I've tried a few variations with no luck, the closest I seem to get is the below;
- I want to use VBoxManage guestcontrol to control Windows XP in a VirtualBox VM, eventually to open a URL in IE.
- I'm using VirtualBox 4.1.0 rc73009.
- The host machine is Mac OS X 10.6.8
- The VM is running Windows XP
- The VM is called "IE8"
- I'm working against the docs at http://www.virtualbox.org/manual/ch08.h ... estcontrol
- I've started using VBoxManage startvm IE8 --type headless
- For now I just want to capture output from C:\WINDOWS\system32\cmd.exe on the VM and display it in /Applications/Utilities/Terminal.app on the host.
As the password is empty, I've applied this to XP on the VM (from http://www.virtualbox.org/manual/ch14.html)Code: Select all
$ VBoxManage guestcontrol "IE8" execute --image "c:\\WINDOWS\\system32\\cmd.exe" --username Guest --wait-stdout --verbose -- "/c dir C:\\" Waiting for guest to start process ... VBoxManage: error: Process could not be started: VERR_UNRESOLVED_ERROR.`
Also, to use accounts without or with an empty password, the guest's group policy must be changed. To do so, open the group policy editor on the command line by typing gpedit.msc, open the key Computer Configuration\Windows Settings\Security Settings\Local Policies\Security Options and change the value of Accounts: Limit local account use of blank passwords to console logon only to Disabled.