VBoxManage guestcontrol stdout and stderr help needed

Discussions related to using VirtualBox on Windows hosts.
Post Reply
littlebuck144
Posts: 2
Joined: 14. Jul 2015, 18:19

VBoxManage guestcontrol stdout and stderr help needed

Post 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.
noteirak
Site Moderator
Posts: 5231
Joined: 13. Jan 2012, 11:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Debian, Win 2k8, Win 7
Contact:

Re: VBoxManage guestcontrol stdout and stderr help needed

Post by noteirak »

Moved to "Windows Hosts".
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
daffy1234
Posts: 18
Joined: 25. Aug 2015, 03:25

Re: VBoxManage guestcontrol stdout and stderr help needed

Post 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
noteirak
Site Moderator
Posts: 5231
Joined: 13. Jan 2012, 11:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Debian, Win 2k8, Win 7
Contact:

Re: VBoxManage guestcontrol stdout and stderr help needed

Post by noteirak »

Could you try this instead :

Code: Select all

vboxmanage guestcontrol "Xubuntu" run --username [redacted] --password [redacted] -- /bin/bash <args>
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
Post Reply