I have a Ubuntu guest installed on virtualbox of a Ubuntu host. When I try to run a command from the host on the guest, I get a permission error:
max@Ubuntu1:~$ VBoxManage guestcontrol Ubuntu2 run ls
VBoxManage: error: The specified user was not able to logon on guest
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 938 of file VBoxManageGuestCtrl.cpp