VirtualBox

Opened 5 years ago

Last modified 4 years ago

#18496 new defect

'vboxmanage guestcontrol run' stops working after several hours with Linux guests (on MacOS host)

Reported by: AlbertDude Owned by:
Component: guest control Version: VirtualBox 6.0.4
Keywords: Cc:
Guest type: Linux Host type: Mac OS X

Description

I have a host test script that invokes functionality on Windows and Linux guest VMs using 'vboxmanage guestcontrol run' commands. After working fine for 3 or 4 hours, the script stops working as the Linux guest VM stops accepting these run commands

At this point, manually issuing a run command shows:

$ vboxmanage guestcontrol Ubuntu-14.04.5-amd64 run /bin/ls --username xyz --password xyz --verbose

Creating guest session as user 'xyz'...
Waiting for guest session to start...
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 879 of file VBoxManageGuestCtrl.cpp
Closing guest session ...

Rebooting the Linux guest VM restores proper functionality.

This is with MacOS 10.13.6 host.

This problem has been repro'ed using VirtualBox 6.0.4 as well as older versions 5.1.38 and 5.0.40

Linux versions tried as the guest VM are: Ubuntu 18.04.1, Ubuntu 14.04.5, and Solus 3.9999

  • all exhibit this problem

The test script works fine with Windows7 guest VM, no such failures have been observed with the script running continuously for over 40 hours.

Attachments (3)

Ubuntu-14.04.5-amd64-2019-03-14-15-02-50.log (115.6 KB ) - added by AlbertDude 5 years ago.
VBox log file after test script stops working
vbox_test.py (1.2 KB ) - added by AlbertDude 5 years ago.
python3 test script
VBox_test3.log (88.0 KB ) - added by AlbertDude 5 years ago.
VBox log file from running VBox_test.py script

Download all attachments as: .zip

Change History (9)

by AlbertDude, 5 years ago

VBox log file after test script stops working

by AlbertDude, 5 years ago

Attachment: vbox_test.py added

python3 test script

by AlbertDude, 5 years ago

Attachment: VBox_test3.log added

VBox log file from running VBox_test.py script

comment:1 by AlbertDude, 5 years ago

I've attached a simplified python3 test script that reproduces the problem. It seems to fail consistently on loop iteration [1014]. The corresponding VBox log file has been attached as well. This is the screen output produced by the script:

...
[001012] [00:53:30] Normal return:
[001013] [00:53:33] Normal return:
Got error code: rc = 1 trying to issue cmd: ['vboxmanage', 'guestcontrol', 'Ubuntu-14.04.5-amd64', 'run', '/bin/ls', '--username', 'albert', '--password', 'albert', '--', '-l', '/home']
POUT:-------------------------

PERR:-------------------------
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 879 of file VBoxManageGuestCtrl.cpp

comment:2 by RolandHeijman, 4 years ago

Had same VBOX_E_IPRT_ERROR error using VirtualBox 6.0.4r128413 running on Win10, see https://www.virtualbox.org/ticket/19088

Last edited 4 years ago by RolandHeijman (previous) (diff)

comment:3 by Frank Batschulat (Oracle), 4 years ago

does this problem reproduce with Virtualbox 6.0.14 please ?

in reply to:  3 comment:4 by RolandHeijman, 4 years ago

Replying to fbatschu:

does this problem reproduce with Virtualbox 6.0.14 please ?

Going to check that. Thanks for your feedback.

comment:5 by RolandHeijman, 4 years ago

Another occurrence, again copy file to vbox:

Copying from host to guest ...{{04:33:18.618 DEBUG File '<full file path on host>' -> '<full file path on vbox>' ->' }}
{{04:33:18.618 DEBUG Closing guest session ... }}
{{04:33:18.618 DEBUG 0... }}
{{04:33:18.619 DEBUG Progress state: VBOX_E_IPRT_ERROR }}
{{04:33:18.619 DEBUG VBoxManage.exe: error: Writing 57140 bytes to file on guest failed: VERR_FILE_LOCK_VIOLATION. }}
04:33:18.619 DEBUG Process exited with return code: 1

in reply to:  5 comment:6 by RolandHeijman, 4 years ago

Replying to RolandHeijman: this error can be caused by a process on the vbox locking the file.

Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use