Page 1 of 1

VBoxManage guestcontrol stdout and stderr help needed

Posted: 14. Jul 2015, 18:24
by littlebuck144
I just upgraded to the virtual box 5.0.0 r101573 and am getting warnings running a VBoxManage.exe guestcontrol command.

Here is the command I'm trying to run:
VBoxManage.exe guestcontrol "Windows Server 2008 x64" run --exe "C:\WINDOWS\system32\xcopy.exe" --wait-stdout --wait-stderr _-verbose --username "TestUser" --password "123456" -- "\\vboxsvr\host_F\Builds\InstallDisk" "C:\Temp\install" "/q" "/i" "/s" "/r" "/y"

Each time I run this it successfully copies my InstallDisk files to the VM; however, it generates the following warnings:
VBoxManage.exe: warning: Error getting stdout handle: VERR_INVALID_HANDLE
VBoxManage.exe: warning: Error getting stderr handle: VERR_INVALID_HANDLE

If I remove the _-verbose command line parameter it generates the same warnings; however, it then does not successfully copy my InstallDisk files to the VM.

Ideally, I'd like to remove the _-verbose parameter and figure out what I'm doing wrong so I don't get the warnings and the file copy successfully works.

Any help would be greatly appreciated.

Re: VBoxManage guestcontrol stdout and stderr help needed

Posted: 14. Jul 2015, 18:28
by noteirak
Moved to "Windows Hosts".

Re: VBoxManage guestcontrol stdout and stderr help needed

Posted: 25. Aug 2015, 04:13
by daffy1234
Having the same problem with an Xubuntu guest.

Code: Select all

C:\Users\[redacted]>vboxmanage guestcontrol "Xubuntu" run /bin/bash --username [redacted] --password [redacted]
VBoxManage.exe: warning: Error getting stdout handle: VERR_INVALID_HANDLE
VBoxManage.exe: warning: Error getting stderr handle: VERR_INVALID_HANDLE
Windows 7 host running virtualbox 5.0.2

Re: VBoxManage guestcontrol stdout and stderr help needed

Posted: 25. Aug 2015, 18:30
by noteirak
Could you try this instead :

Code: Select all

vboxmanage guestcontrol "Xubuntu" run --username [redacted] --password [redacted] -- /bin/bash <args>