How to correctly use 'VBoxManage guestcontrol run'?

Discussions related to using VirtualBox on Linux hosts.
Post Reply
rbarak
Posts: 52
Joined: 25. Sep 2018, 20:43

How to correctly use 'VBoxManage guestcontrol run'?

Post 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?
scottgus1
Site Moderator
Posts: 20945
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

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

Post 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.
Post Reply