VBoxManage.exe: error: Waiting for guest process failed: The specified user was not able to logon on guest
|Reported by:||darkguy2008||Owned by:||pentagonik|
|Component:||guest additions||Version:||VirtualBox 6.1.32|
|Keywords:||VBoxManage VBoxManage.exe Waiting for guest process failed The specified user was not able to logon on guest||Cc:|
|Guest type:||Linux||Host type:||Windows|
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.