VBoxManage guestcontrol stdout and stderr help needed
Posted: 14. Jul 2015, 18:24
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.
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.