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.
VBoxManage guestcontrol stdout and stderr help needed
-
littlebuck144
- Posts: 2
- Joined: 14. Jul 2015, 18:19
-
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
Moved to "Windows Hosts".
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
Manage your VirtualBox infrastructure the free way!
Re: VBoxManage guestcontrol stdout and stderr help needed
Having the same problem with an Xubuntu guest.
Windows 7 host running virtualbox 5.0.2
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-
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
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!
Manage your VirtualBox infrastructure the free way!