﻿id	summary	reporter	owner	description	type	status	component	version	resolution	keywords	cc	guest	host
20902	VBoxManage.exe: error: Waiting for guest process failed: The specified user was not able to logon on guest	darkguy2008	pentagonik	"Hi, first time submitting a bug here, sorry if I'm doing it wrong beforehand.

Anyways, I've found a way to run some commands in the guest system by using VBoxManage.exe and so far it works well, but then it stops working after some time.

I'm using the instructions I made here: https://darkguy2008.github.io/VBoxWSL2/virtualbox-automatic-port-forward/ most notably, the problem seems to be in this line:

$netstatOutput = & $VBOXMANAGE guestcontrol $VMNAME run --username $USER --password $PASS ""/usr/bin/sudo"" -- ""/usr/bin/netstat"" ""-ant""

I've tried both with a normal user, or a root user, and the problem persists.

Host is Windows 11 22000.613
Guest is Ubuntu 21.10 (Minimized), installed Guest Additions, and that's it.

The full error is:

VBoxManage.exe: error: Waiting for guest process failed: The specified user was not able to logon on guest
VBoxManage.exe: error: Details: code VBOX_E_IPRT_ERROR (0x80bb0005), component GuestSessionWrap, interface IGuestSession, callee IUnknown
VBoxManage.exe: error: Context: ""WaitForArray(ComSafeArrayAsInParam(aSessionWaitFlags), 30 * 1000, &enmWaitResult)"" at line 893 of file VBoxManageGuestCtrl.cpp

Restarting the vboxadd & vboxadd-service services in the guest fixes the problem if I do that frequently, but then it's not an option because that makes shared folders stop working.

It doesn't make much sense that it works correctly for some iterations and then it stops working at all after some time. So I'm filing it as a bug."	defect	closed	guest additions	VirtualBox 6.1.32	fixed	VBoxManage VBoxManage.exe Waiting for guest process failed The specified user was not able to logon on guest		Linux	Windows
