[WorksForMe] Can't get VBoxManage guestcontrol to connect

Discussions related to using VirtualBox on Mac OS X hosts.

[WorksForMe] Can't get VBoxManage guestcontrol to connect

Postby JamesNJ » 19. Jun 2019, 23:14

Hello all, trying to learn VBoxManage here and having some trouble. MacOS 10.14.5 Host, Virtualbox 6.0.8.

I have installed very basic/minimal Ubuntu 18.04 guests, and I think I have guest editions installed correctly:
# cat /proc/modules | fgrep vbox
vboxguest 303104 0 - Live 0xffffffffc034d000

Guest OS seems to run fine, but I can't seem to do anything useful with VBoxManage guestcontrol. I'm trying just to get a simple example working:
VBoxManage guestcontrol "Ubuntu 18.04" run --username 'user' --password 'password' --exe /bin/ls

All I ever get is:
Creating guest session as user 'user'...
Waiting for guest session to start...
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

Guest is booted and running for some time ... maybe 10min or more. I can't tell if VBoxManage can't connect for some reason, or there is a problem with guest editions, etc.

Any suggestions on how to troubleshoot?

Thanks
Last edited by socratis on 20. Jun 2019, 06:13, edited 2 times in total.
Reason: Marked as [WorksForMe].
JamesNJ
 
Posts: 2
Joined: 19. Jun 2019, 22:55

Re: Can't get VBoxManage guestcontrol to connect

Postby socratis » 20. Jun 2019, 00:57

JamesNJ wrote:I think I have guest editions installed correctly
Instead of/in addition to seeing if a VirtualBox process is running, try as well (from within the guest):

    VBoxControl -version
Please tell me the complete output if you reply to this.

JamesNJ wrote:I'm trying just to get a simple example working:
I did:

    VBoxManage guestcontrol "<VM>" run --exe "/bin/ls" --username socratis --password password[/i]
and it worked just fine.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
socratis
Site Moderator
 
Posts: 25272
Joined: 22. Oct 2010, 11:03
Location: Greece
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5

Re: Can't get VBoxManage guestcontrol to connect

Postby JamesNJ » 20. Jun 2019, 01:01

Thank you ... completely my fault here ... guest additions was not running properly. I got it all installed correctly and rebooted guest .... everything works great now.

Thanks for the quick response!
JamesNJ
 
Posts: 2
Joined: 19. Jun 2019, 22:55

Re: Can't get VBoxManage guestcontrol to connect

Postby socratis » 20. Jun 2019, 06:13

Glad you figured it out. Marking as [WorksForMe].
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
socratis
Site Moderator
 
Posts: 25272
Joined: 22. Oct 2010, 11:03
Location: Greece
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5


Return to VirtualBox on Mac OS X Hosts

Who is online

Users browsing this forum: Google [Bot] and 13 guests