我用 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有任何建议吗?