VirtualBox

Ticket #11134 (closed defect: fixed)

Opened 8 years ago

Last modified 6 years ago

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

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

Change History

Changed 8 years ago by Rami AbuGhazaleh

comment:1 Changed 8 years ago by pentagonik

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

comment:2 Changed 8 years ago by pentagonik

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 Changed 8 years ago by pentagonik

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 Changed 8 years ago by pentagonik

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

Changed 8 years ago by Rami AbuGhazaleh

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

comment:5 Changed 8 years ago by Rami AbuGhazaleh

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

comment:6 Changed 8 years ago by Rami AbuGhazaleh

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

comment:7 Changed 8 years ago by Rami AbuGhazaleh

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 Changed 8 years ago by Rami AbuGhazaleh

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 Changed 8 years ago by Rami AbuGhazaleh

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 Changed 8 years ago by Rami AbuGhazaleh

The same things happens on 4.2.12r84980.

Any ideas?

Thank you.

comment:11 Changed 7 years ago by xdissent

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 Changed 7 years ago by cheretbe

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. For XP, Vista and Win7 guests everything is OK.

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 :(

Last edited 7 years ago by cheretbe (previous) (diff)

comment:13 Changed 6 years ago by cheretbe

It appears that 4.3.12r93733 finally fixes the issue!

comment:14 Changed 6 years ago by frank

  • Status changed from new to closed
  • Resolution set to fixed

Thanks for the feedback!

Note: See TracTickets for help on using tickets.

www.oracle.com
ContactPrivacy policyTerms of Use