Page 1 of 1

How to correctly use 'VBoxManage guestcontrol run'?

Posted: 29. Feb 2020, 02:34
by rbarak
It seems I have a fundamental misunderstanding of what the VBoxManage guestcontrol run should do.

For instance, I assumed that the following will execute the ls command inside the guest:

Code: Select all

VBoxManage guestcontrol guest_analysis run -- ls /tmp
but it returns these error lines:
VBoxManage: error: The guest execution service is not ready (yet)
VBoxManage: error: Details: code VBOX_E_IPRT_ERROR (0x80bb0005), component GuestSessionWrap, interface IGuestSession, callee nsISupports
VBoxManage: error: Context: "WaitForArray(ComSafeArrayAsInParam(aSessionWaitFlags), 30 * 1000, &enmWaitResult)" at line 879 of file VBoxManageGuestCtrl.cpp
What is wrong with my usage of VBoxManage guestcontrol run?

Re: How to correctly use 'VBoxManage guestcontrol run'?

Posted: 29. Feb 2020, 15:29
by scottgus1
Googling "VBoxManage guestcontrol site:forums.virtualbox.org", as well as https://www.virtualbox.org/manual/ch08. ... estcontrol, seem to imply that some parts of the required command are missing in yours. See what you can find.

You also need Guest Additions installed and running in the guest.