VirtualBox

Opened 23 months ago

Last modified 20 months ago

#21230 new defect

VboxManage guestcontrol issue

Reported by: cmccarron Owned by:
Component: guest control Version: VirtualBox-7.0.2
Keywords: Cc:
Guest type: Windows Host type: Windows

Description

Prior to upgrading to VB 7.0, I could use vboxmanage guestcontrol to run a batch script on a windows 10 virtual machine and that script had access to the virtual machines shared folders/drives. I have been using this script for many years and many versions of VirtualBox. Now when the script runs it is reporting the H drive is not found. Everything in the VM_Setup.bat script works except for access to the H drive. The virtual machine has access to the H drive just not the guestcontrol feature.

Share folder section for the virtual machine is below. All of these drives work inside the virtual machine. <SharedFolders> <SharedFolder name="Projects" hostPath="F:\" writable="true" autoMount="false"/> <SharedFolder name="Downloads" hostPath="H:\Library\Downloads" writable="true" autoMount="false"/> <SharedFolder name="Shared" hostPath="H:\" writable="true" autoMount="false"/> <SharedFolder name="ElecWorkFile" hostPath="Z:\" writable="true" autoMount="false"/> </SharedFolders>

vboxmanage guestcontrol %VMN% run --quiet --unquoted-args --username "%VMU%" --password "" --exe "H:\Scripts\VM_Setup.bat" -- H:\Scripts\VM_Setup.bat %VM%

VBoxManage.exe: error: Waiting for guest process (flags 0x1) failed: No such file or directory "H:\Scripts\VM_Setup.bat" on guest VBoxManage.exe: error: Details: code VBOX_E_IPRT_ERROR (0x80bb0005), component GuestProcessWrap, interface IGuestProcess, callee IUnknown VBoxManage.exe: error: Context: "WaitForArray(ComSafeArrayAsInParam(aWaitStartFlags), gctlRunGetRemainingTime(msStart, cMsTimeout), &waitResult)" at line 1373 of file VBoxManageGuestCtrl.cpp Waiting for VM Setup to Complete... Press any key to continue . . .

<------ Test Script (TestQ.bat) Start ----------> @echo off cls setlocal enabledelayedexpansion

SET VM=vm1 SET VMN="WinX Rockwell" SET VDI=WinX_Rockwell SET VMU=alliance SET VBMP=C:\Program Files\Oracle\VirtualBox SET VBM=vboxmanage.exe SET PATH=%PATH%;%VBMP% SET LINES=0

:WAITFORSETUP SET VMDONE=0

For /f "usebackq tokens=*" %%i IN (%VBM% guestcontrol %VMN% run --quiet --unquoted-args --username "%VMU%" --password "" --exe "H:\Scripts\VM_Status.bat" -- H:\Scripts\VM_Status.bat %VM% ) DO ( SET /a LINES+=1 SET RESULTS=%%i echo %%i ) echo %VMDONE% %LINES% IF "%LINES%" EQU "0" GOTO SKIP IF "%LINES%" NEQ "4" GOTO SKIP IF NOT "!RESULTS!." EQU "RESULTS:Complete=!." ( SET VMDONE=1 )

:SKIP If %VMDONE% EQU 0 ( Echo Waiting for VM Setup to Complete... ) ELSE ( Echo VM Setup to Complete ) endlocal

pause <------ Test Script (TestQ.bat) End ---------->

Attachments (8)

SharedDrives1.JPG (62.4 KB ) - added by cmccarron 23 months ago.
Virtual Machine showing H Drive attached
SharedDrives2.JPG (51.2 KB ) - added by cmccarron 23 months ago.
Results of the TestQ.bat script ran from the VM Host
NoPanda0.JPG (34.2 KB ) - added by cmccarron 22 months ago.
Showing Panda is removed from test computer
NoPanda1.JPG (94.4 KB ) - added by cmccarron 22 months ago.
Showing results of script running on the host
NoPanda2.JPG (131.9 KB ) - added by cmccarron 22 months ago.
Showing the virtual machine share folder is working
WinX Rockwell-2022-12-13-10-18-44.log (130.5 KB ) - added by cmccarron 22 months ago.
Log file
WinX Rockwell-Hardening-2022-12-13-10-12-25.7z (22.3 KB ) - added by cmccarron 22 months ago.
Hardening Log File
NoPandaLogFiles.7z (58.1 KB ) - added by cmccarron 22 months ago.
Complete Log Files

Download all attachments as: .zip

Change History (11)

by cmccarron, 23 months ago

Attachment: SharedDrives1.JPG added

Virtual Machine showing H Drive attached

by cmccarron, 23 months ago

Attachment: SharedDrives2.JPG added

Results of the TestQ.bat script ran from the VM Host

comment:1 by cmccarron, 23 months ago

More information on this issue can be found on the post below.

https://forums.virtualbox.org/viewtopic.php?f=2&t=107472

by cmccarron, 22 months ago

Attachment: NoPanda0.JPG added

Showing Panda is removed from test computer

by cmccarron, 22 months ago

Attachment: NoPanda1.JPG added

Showing results of script running on the host

by cmccarron, 22 months ago

Attachment: NoPanda2.JPG added

Showing the virtual machine share folder is working

by cmccarron, 22 months ago

Log file

by cmccarron, 22 months ago

Hardening Log File

comment:2 by cmccarron, 22 months ago

I tested this again on a computer that had Panda removed from it. The only virus software installed is Windows Defender. I get the same result. The GuestControl interface no longer has access to the shared folders in the virtual machine.

by cmccarron, 22 months ago

Attachment: NoPandaLogFiles.7z added

Complete Log Files

comment:3 by cmccarron, 20 months ago

This is still broken in version 7.0.6

VBoxManage.exe: error: Waiting for guest process (flags 0x1) failed: No such file or directory "H:\Scripts\VM_Status.bat" on guest VBoxManage.exe: error: Details: code VBOX_E_IPRT_ERROR (0x80bb0005), component GuestProcessWrap, interface IGuestProcess, callee IUnknown VBoxManage.exe: error: Context: "WaitForArray(ComSafeArrayAsInParam(aWaitStartFlags), gctlRunGetRemainingTime(msStart, cMsTimeout), &waitResult)" at line 1373 of file VBoxManageGuestCtrl.cpp 0 0 Waiting for VM Setup to Complete...

Note: See TracTickets for help on using tickets.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy