VirtualBox

Opened 11 years ago

Closed 10 years ago

#11134 closed defect (fixed)

IGuestSession fileExists and processCreate fail in Windows 8 virtual machine

Reported by: Rami Abughazaleh Owned by:
Component: other Version: VirtualBox 4.2.4
Keywords: Cc:
Guest type: Windows Host type: Windows

Description

Hi.

Originally posted on the mailing list here: https://www.virtualbox.org/pipermail/vbox-dev/2012-September/005329.html https://www.virtualbox.org/pipermail/vbox-dev/2012-October/005404.html https://www.virtualbox.org/pipermail/vbox-dev/2012-October/005417.html

Host: Windows 7 Home Premium SP1 64-bit VirtualBox 4.2.4-81684

Guest: Windows 8 Enterprise 64-bit Disabled 3D acceleration Guest Additions installed

Calling IGuestSession_processCreate fails and IProcess_getStatus returns Error in a Windows 8 guest when I trying to programmatically launch c:\windows\system32\notepad.exe. IGuestSession_processCreate works in Windows XP and Windows 7 guests.

I am logged into the Windows 8 machine, with my @live.com account, currently on the desktop.

I also tried IGuestSession_fileExists in a Windows 8 guest and it returns VirtualBox error: Querying file information for "c:\windows\system32\notepad.exe" failed: VERR_NOT_FOUND (0x80BB0005)

I've attached VBox.log.

Any ideas?

Thank you.

Attachments (2)

VBox - Copy.log (55.7 KB ) - added by Rami Abughazaleh 11 years ago.
UnitTests.cs (9.9 KB ) - added by Rami Abughazaleh 11 years ago.
added UnitTests.cs which contains a unit test that checks if a file exists on Windows 8

Download all attachments as: .zip

Change History (16)

by Rami Abughazaleh, 11 years ago

Attachment: VBox - Copy.log added

comment:1 by pentagonik, 11 years ago

Thanks for the report; we'll have a look.

comment:2 by pentagonik, 11 years ago

I gave the commands a try on a Windows 8 guest, but 32-bit only so far, works all fine. Did this work for you on a 32-bit guest?

comment:3 by pentagonik, 11 years ago

Also tested this successfully with a 64-bit guest. Did you also try executing it with VBoxManage to test if this makes a difference? What's about a local account w/o a @live login?

comment:4 by pentagonik, 11 years ago

Can you please post your code snippet for processCreate and subsequent calls, especially the processCreateFlag flags and such. Thanks.

by Rami Abughazaleh, 11 years ago

Attachment: UnitTests.cs added

added UnitTests.cs which contains a unit test that checks if a file exists on Windows 8

comment:5 by Rami Abughazaleh, 11 years ago

I tried to use a local account (not a Microsoft account) but I get the same result.

comment:6 by Rami Abughazaleh, 11 years ago

I tried Windows 8 32-bit and 64-bit but I get the same result.

comment:7 by Rami Abughazaleh, 11 years ago

C:\Program Files\Oracle\VirtualBox>VBoxManage.exe guestcontrol "Win8x32-PC" stat

c:\windows\system32\notepad.exe --username Name --password password --verbose

Checking for element "c:\windows\system32\notepad.exe" ... Cannot stat for element "c:\windows\system32\notepad.exe": No such element

comment:8 by Rami Abughazaleh, 11 years ago

I discovered that if I use an already powered on virtual machine (don't power off, restore to a snapshot, and then power on), it works as expected.

comment:9 by Rami Abughazaleh, 11 years ago

The same thing happens on 4.2.10r84104.

I believe it was working with v4.2.6 on a Windows 7 32-bit guest, but with v4.2.10, notepad.exe does not appear to be running after the test passes without error.

comment:10 by Rami Abughazaleh, 11 years ago

The same things happens on 4.2.12r84980.

Any ideas?

Thank you.

comment:11 by xdissent, 11 years ago

I'm experiencing the same on 4.2.12r84980 with win8 guest. To reproduce, download and import http://virtualization.modern.ie/vhd/IEKitV1_Final/VirtualBox/OSX/IE10_Win8.zip from modern.ie, then install Guest Additions. VBoxManage guestcontrol will work after the reboot, but saving the VM state and then restarting the (saved state) VM will break guest control. For this particular image you need the following arguments for VBoxManage: --username IEUser --password 'Passw0rd!'

comment:12 by cheretbe, 10 years ago

I'm having the same problem on 4.3.6 r91406
Tested on Win8 and Win8.1 (both x86 and x64) guests and several hosts. VBoxManage guestcontrol works initially. But saving VM state and resuming breaks it until guest reboot.

Error message:

VBoxManage.exe: error: The guest execution service is not ready (yet)
VBoxManage.exe: error: Details: code VBOX_E_IPRT_ERROR (0x80bb0005), component GuestSession, interface IGuestSession, callee IUnknown
VBoxManage.exe: error: Context: "WaitForArray(ComSafeArrayAsInParam(aSessionWaitFlags), 30 * 1000, &sessionWaitResult)" at line 998 of file VBoxManageGuestCtrl.cpp

Have anyone found some workaround for this issue? This breaks my test script functionality :(

Version 0, edited 10 years ago by cheretbe (next)

comment:13 by cheretbe, 10 years ago

It appears that 4.3.12r93733 finally fixes the issue!

comment:14 by Frank Mehnert, 10 years ago

Resolution: fixed
Status: newclosed

Thanks for the feedback!

Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use