VirtualBox

Opened 6 years ago

Last modified 6 years ago

#18163 new defect

Guest property LoggedInUsers does not work with 'wait' in VBoxManage

Reported by: thoni56 Owned by:
Component: other Version: VirtualBox 5.2.22
Keywords: guestproperty Cc:
Guest type: Linux Host type: Windows

Description

To wait for a machine to be ready for logins I used

vboxmanage guestproperty wait <machine> /VirtualBox/GuestProperty/OS/LoggedInUsers

At some point (before 5.2.22) that stopped working. You can still 'get' that property, and it is listed with 'enumerate' for a running <machine>.

Change History (1)

comment:1 by Socratis, 6 years ago

I tried it with 5.2.22 and I can't reproduce the problem with the "wait" option. Host: OSX 10.11.6.

In the mean time, I noticed that the value you talk about ("/VirtualBox/GuestProperty/OS/LoggedInUsers") doesn't exist. Instead I see the value "/VirtualBox/GuestInfo/OS/LoggedInUsers".

Here's for example what I get with the following script, where I print the date time before and after the wait. I run it in the terminal, and then switch to the VM and log in:

$ date ; VBoxManage guestproperty wait "Windows 7" /VirtualBox/GuestInfo/OS/LoggedInUsers ; date
Κυρ  2 Δεκ 2018 19:42:23 EET
Name: /VirtualBox/GuestInfo/OS/LoggedInUsers, value: 1, flags: TRANSIENT, TRANSRESET
Κυρ  2 Δεκ 2018 19:42:30 EET
$ 

As you can see the script was waiting for the 7 sec it took me to switch to the VM and log in.

Note: See TracTickets for help on using tickets.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy