0

我使用 VBoxManage:Oracle VM VirtualBox 命令行管理界面版本 5.1.18,

在尝试从主机远程执行 .bat 文件时,我尝试了以下命令:

VBoxManage guestcontrol <i>VMNAME</i> --username <i>USER</i> --domain <i>DOMAIN</i> --password <i>PASSWORD</i> run --exe cmd.exe -- "C:\script\script.bat"

但它似乎不起作用,我收到以下错误:

VBoxManage : VBoxManage.exe: error: The guest execution service is not
ready (yet) At line:1 char:1
+ VBoxManage guestcontrol <i>VMNAME</i> --username <i>USER</i> --domain <i>DOMAIN</i> --pass...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : NotSpecified: (VBoxManage.exe:...not ready (yet):String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError   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
1529 of file  VBoxManageGuestCtrl.cpp

有人对如何在来宾 VM 上远程运行 .bat 有任何建议吗?

4

0 回答 0