How to correctly use 'VBoxManage guestcontrol run'?

Discussions related to using VirtualBox on Linux hosts.

How to correctly use 'VBoxManage guestcontrol run'?

Postby rbarak » 29. Feb 2020, 02:34

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   Expand viewCollapse view
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?
Posts: 51
Joined: 25. Sep 2018, 20:43

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

Postby scottgus1 » 29. Feb 2020, 15:29

Googling "VBoxManage guestcontrol", as well as ... 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.
Human government is like that crazy uncle who hides a quarter in his fist behind his back, then asks you to guess which fist the quarter is in...
No matter which side you choose, Left or Right, both Sides are empty.
Posts: 6950
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Return to VirtualBox on Linux Hosts

Who is online

Users browsing this forum: No registered users and 16 guests