VM not starting - or at least that's what it looks like


Advanced search

Questions and Answers : Windows : VM not starting - or at least that's what it looks like

1 · 2 · Next
Author Message
Andy
Send message
Joined: 11 Aug 11
Posts: 28

MCPLOT stats
Jobs: Loading
Events: Loading

BOINC stats
Credit: 70,026
RAC: 0
Message 4445 - Posted: 26 Aug 2011, 21:38:14 UTC

So far I've only seen the VM start up and complete work once. Most of the time now all I see is a few console windows open and close in quick succession but never the VM running.

Checking the logs I see this:

Setting VirtualBox PATH in Windows...
Trying to grab installation path of VirtualBox from Windows Registry...
ERROR: Retrieving the HKEY_LOCAL_MACHINE\SOFTWARE\Oracle\VirtualBox\InstallDir value was impossible

Trying with VBOX_INSTALL_PATH environment variable...
Old PATH environment variable:
C:\Program Files (x86)\Windows Resource Kits\Tools\;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\PC Connectivity Solution\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;c:\Program Files (x86)\Common Files\Roxio Shared\10.0\DLLShared\;c:\Program Files (x86)\Common Files\Roxio Shared\DLLShared\;c:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files (x86)\QuickTime\QTSystem\

Adding VirtualBox to PATH:
C:\Program Files (x86)\Windows Resource Kits\Tools\;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\PC Connectivity Solution\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;c:\Program Files (x86)\Common Files\Roxio Shared\10.0\DLLShared\;c:\Program Files (x86)\Common Files\Roxio Shared\DLLShared\;c:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files (x86)\QuickTime\QTSystem\;X
INFO: Cleaning old VMs of the project...
CreateProcess Failed!WARNING: it was not possible to discard the state of the VM.
CreateProcess Failed!WARNING: The VM could not be removed via VBoxManage.
CreateProcess Failed!WARNING: it was not possible to remove the IDE controller.
INFO: I´m running in a Windows system...
CreateProcess Failed!INFO: CernVM does not exist, so it is not necessary to unregister.
INFO: VM was not registered, deleting old VM folders...
INFO: System was clean, nothing to delete.
INFO: Cleaning completed

Initializing VM...
Decompressing the VM
Uncompressed finished
INFO: Cleaning old instances...
CreateProcess Failed!WARNING: it was not possible to discard the state of the VM.
CreateProcess Failed!WARNING: The VM could not be removed via VBoxManage.
CreateProcess Failed!WARNING: it was not possible to remove the IDE controller.
INFO: I´m running in a Windows system...
CreateProcess Failed!INFO: CernVM does not exist, so it is not necessary to unregister.
INFO: VM was not registered, deleting old VM folders...
INFO: System was clean, nothing to delete.
Registering a new VM from unzipped image...
CreateProcess Failed!ERROR: Create VM method: createvm failed!
ERROR: createvm --name BOINC_VM --ostype Linux26 --register
INFO: Cleaning registered VM from a failure...
CreateProcess Failed!WARNING: it was not possible to discard the state of the VM.
CreateProcess Failed!WARNING: The VM could not be removed via VBoxManage.
CreateProcess Failed!WARNING: it was not possible to remove the IDE controller.
INFO: I´m running in a Windows system...
CreateProcess Failed!INFO: CernVM does not exist, so it is not necessary to unregister.
INFO: VM was not registered, deleting old VM folders...
INFO: System was clean, nothing to delete.
INFO: createvm() Aborting
19:03:49 (8140): called boinc_finish



To me it looks like it's having trouble finding the VirtualBox. I've checked the registry and the install path is there.

I've just added the environment variable VBOX_INSTALL_PATH in the hope that it will solve the problem but I suspect it wont. As Boinc is reporting "26/08/2011 22:34:36 | Test4Theory@Home | This computer has finished a daily quota of 1 tasks)
" I wont be able to tell until tomorrow.

If anyone has any better ideas I'd lover to hear them.

jujube
Send message
Joined: 5 Aug 11
Posts: 1414

MCPLOT stats
Jobs: Loading
Events: Loading

BOINC stats
Credit: 701,572
RAC: 0
Message 4450 - Posted: 26 Aug 2011, 23:41:23 UTC - in response to Message 4445.

To me it looks like it's having trouble finding the VirtualBox. I've checked the registry and the install path is there.


I've noticed many tasks returned with that error. Stupid me, I didn't think to ask those users to check see if the install path is in the registry or not. Thanks for verifying that it is there. Now it's looking like the wrapper (the process started by BOINC which in turn starts the VM and writes the log you posted) is unable to retreive the install path from the registry.

I've just added the environment variable VBOX_INSTALL_PATH in the hope that it will solve the problem but I suspect it wont. As Boinc is reporting "26/08/2011 22:34:36 | Test4Theory@Home | This computer has finished a daily quota of 1 tasks)
" I wont be able to tell until tomorrow.

If anyone has any better ideas I'd lover to hear them.


No, you're on the right track with the VBOX_INSTALL_PATH environment variable. I suspect you've already noticed that when it appends the path in that variable it appends "X". Did you by chance check the value of that variable before you created/assigned it? Did it contain X? Or was the variable nonexistant before you created it?

You'll get a new task eventually (that darn daily quota). If it starts and doesn't crash, could you find the slot directory the task is running in, make a copy of stderr.txt, open the copy in a text editor and post the top few lines where the registry and path are mentioned, please? You need to make a copy because the original file is written to every second.

If the task runs to completion that portion of the file will be snipped out when reported to the website. Then we won't know whether it read the registry successfully, appended to the path successfully or what.

Andy
Send message
Joined: 11 Aug 11
Posts: 28

MCPLOT stats
Jobs: Loading
Events: Loading

BOINC stats
Credit: 70,026
RAC: 0
Message 4461 - Posted: 27 Aug 2011, 9:34:19 UTC - in response to Message 4450.

OK, it looks like sometimes it can access the install path in the registy and others it can't. I have no idea why that might be. However adding the VBOX_INSTALL_PATH environment variable hasn't hellped as it still adds X to PATH. THis time I'll try adding the install path to the PATH variable and see if that works. If it does it's only a workaround, you couldn't expect your average PC windows user to do this kind of thing but you guys already know that.

<core_client_version>6.12.33</core_client_version>
<![CDATA[
<message>
Incorrect function. (0x1) - exit code 1 (0x1)
</message>
<stderr_txt>

Setting VirtualBox PATH in Windows...
Trying to grab installation path of VirtualBox from Windows Registry...
ERROR: Retrieving the HKEY_LOCAL_MACHINE\SOFTWARE\Oracle\VirtualBox\InstallDir value was impossible

Trying with VBOX_INSTALL_PATH environment variable...
Old PATH environment variable:
C:\Program Files (x86)\Windows Resource Kits\Tools\;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\PC Connectivity Solution\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;c:\Program Files (x86)\Common Files\Roxio Shared\10.0\DLLShared\;c:\Program Files (x86)\Common Files\Roxio Shared\DLLShared\;c:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files (x86)\QuickTime\QTSystem\

Adding VirtualBox to PATH:
C:\Program Files (x86)\Windows Resource Kits\Tools\;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\PC Connectivity Solution\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;c:\Program Files (x86)\Common Files\Roxio Shared\10.0\DLLShared\;c:\Program Files (x86)\Common Files\Roxio Shared\DLLShared\;c:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files (x86)\QuickTime\QTSystem\;X
INFO: Cleaning old VMs of the project...
CreateProcess Failed!WARNING: it was not possible to discard the state of the VM.
CreateProcess Failed!WARNING: The VM could not be removed via VBoxManage.
CreateProcess Failed!WARNING: it was not possible to remove the IDE controller.
INFO: I&#194;&#180;m running in a Windows system...
CreateProcess Failed!INFO: CernVM does not exist, so it is not necessary to unregister.
INFO: VM was not registered, deleting old VM folders...
INFO: System was clean, nothing to delete.
INFO: Cleaning completed

Initializing VM...
Decompressing the VM
Uncompressed finished
INFO: Cleaning old instances...
CreateProcess Failed!WARNING: it was not possible to discard the state of the VM.
CreateProcess Failed!WARNING: The VM could not be removed via VBoxManage.
CreateProcess Failed!WARNING: it was not possible to remove the IDE controller.
INFO: I&#194;&#180;m running in a Windows system...
CreateProcess Failed!INFO: CernVM does not exist, so it is not necessary to unregister.
INFO: VM was not registered, deleting old VM folders...
INFO: System was clean, nothing to delete.
Registering a new VM from unzipped image...
CreateProcess Failed!ERROR: Create VM method: createvm failed!
ERROR: createvm --name BOINC_VM --ostype Linux26 --register
INFO: Cleaning registered VM from a failure...
CreateProcess Failed!WARNING: it was not possible to discard the state of the VM.
CreateProcess Failed!WARNING: The VM could not be removed via VBoxManage.
CreateProcess Failed!WARNING: it was not possible to remove the IDE controller.
INFO: I&#194;&#180;m running in a Windows system...
CreateProcess Failed!INFO: CernVM does not exist, so it is not necessary to unregister.
INFO: VM was not registered, deleting old VM folders...
INFO: System was clean, nothing to delete.
INFO: createvm() Aborting
10:13:07 (8184): called boinc_finish

</stderr_txt>
]]>

Andy
Send message
Joined: 11 Aug 11
Posts: 28

MCPLOT stats
Jobs: Loading
Events: Loading

BOINC stats
Credit: 70,026
RAC: 0
Message 4462 - Posted: 27 Aug 2011, 9:54:54 UTC - in response to Message 4461.
Last modified: 27 Aug 2011, 9:59:32 UTC

That didn't help so I'm all out of ideas for the moment.

<core_client_version>6.12.33</core_client_version>
<![CDATA[
<message>
Incorrect function. (0x1) - exit code 1 (0x1)
</message>
<stderr_txt>

Setting VirtualBox PATH in Windows...
Trying to grab installation path of VirtualBox from Windows Registry...
ERROR: Retrieving the HKEY_LOCAL_MACHINE\SOFTWARE\Oracle\VirtualBox\InstallDir value was impossible

Trying with VBOX_INSTALL_PATH environment variable...
Old PATH environment variable:
C:\Program Files (x86)\Windows Resource Kits\Tools\;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\PC Connectivity Solution\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;c:\Program Files (x86)\Common Files\Roxio Shared\10.0\DLLShared\;c:\Program Files (x86)\Common Files\Roxio Shared\DLLShared\;c:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files (x86)\QuickTime\QTSystem\;C:\Program Files\Oracle\VirtualBox

Adding VirtualBox to PATH:
C:\Program Files (x86)\Windows Resource Kits\Tools\;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\PC Connectivity Solution\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;c:\Program Files (x86)\Common Files\Roxio Shared\10.0\DLLShared\;c:\Program Files (x86)\Common Files\Roxio Shared\DLLShared\;c:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files (x86)\QuickTime\QTSystem\;C:\Program Files\Oracle\VirtualBox;X
INFO: Cleaning old VMs of the project...
INFO: VM state discarded!
INFO: VM unregistered and deleted via VBoxManage.
INFO: Hard disk removed!
INFO: I&#194;&#180;m running in a Windows system...
INFO: Successfully unregistered the CernVM
INFO: VM was not registered, deleting old VM folders...
INFO: System was clean, nothing to delete.
INFO: Cleaning completed

Initializing VM...
Decompressing the VM
Uncompressed finished
INFO: Cleaning old instances...
INFO: VM state discarded!
INFO: VM unregistered and deleted via VBoxManage.
INFO: Hard disk removed!
INFO: I&#194;&#180;m running in a Windows system...
INFO: Successfully unregistered the CernVM
INFO: VM was not registered, deleting old VM folders...
INFO: System was clean, nothing to delete.
Registering a new VM from unzipped image...
Done!
INFO: Maximum usage of CPU: 100.000000
INFO: Setting how much CPU time the virtual CPU can use: 100
INFO: Success!
INFO: BOINC status suspend = False. Resuming VM
ERROR: Get cernvm status error!
INFO: cernvm status error Aborting
INFO: VM state discarded!
INFO: VM unregistered and deleted via VBoxManage.
INFO: Hard disk removed!
INFO: I&#194;&#180;m running in a Windows system...
INFO: Successfully unregistered the CernVM
INFO: VM was not registered, deleting old VM folders...
INFO: System was clean, nothing to delete.
10:47:02 (6116): called boinc_finish

</stderr_txt>


Hmmm, looking at it that does look a lot better now. It's still not working but it looks like progress.

Profile Ageless
Avatar
Send message
Joined: 1 Aug 11
Posts: 176

MCPLOT stats
Jobs: Loading
Events: Loading

BOINC stats
Credit: 9,258
RAC: 0
Message 4464 - Posted: 27 Aug 2011, 10:01:26 UTC - in response to Message 4462.

You could try jujube's 7 to 8 step manual to salvation:

1) In BOINC manager set T4T project to No New Tasks and abort any T4T task you have

2) Open Oracle VirtualBox Manager, it will be on your Start menu in a folder named Oracle. If you see any BOINC_VMs there then highlight each one and click Remove. Then click File -> VirtualMedia Manager and Remove cernvm.vmdk if there is one.

3) In BOINC manager, detach (remove) the T4T project.

4) Uninstall VirtualBox in Windows Add/Remove software.

5) Run a registry cleaner and see if it reports any errors in the registry.

6) Reboot Windows.

7) Reinstall VirtualBox, version 4.1.0 or version 4.1.2, it doesn't matter which. Now there is some suspicion that VirtualBox needs to be installed on a partition with lots of empty space. Install on the partition that has the most empty space and tell us how much free space you have on that partition.

8) Add T4T project to BOINC, wait fort a T4T task and see what happens.

I don't agree with point 5), as this shouldn't be done by people who haven't a clue what they're doing on their computer. Any registry cleaner can wreck your computer even more, when used by a person who doesn't know what the cleaner is doing.
____________
Jord

-BOINC FAQ Service


Real is just a matter of perception.

jujube
Send message
Joined: 5 Aug 11
Posts: 1414

MCPLOT stats
Jobs: Loading
Events: Loading

BOINC stats
Credit: 701,572
RAC: 0
Message 4465 - Posted: 27 Aug 2011, 10:05:35 UTC - in response to Message 4461.

OK, it looks like sometimes it can access the install path in the registy and others it can't. I have no idea why that might be.


I haven't programmed for Windows for years but I suspect the registry is locked or something when the wrapper tries to get the install dir path. If so then the wrapper should wait half a sec and try again, repeat until it's successful. Maybe it gives up too soon or something.

However adding the VBOX_INSTALL_PATH environment variable hasn't hellped as it still adds X to PATH. THis time I'll try adding the install path to the PATH variable and see if that works. If it does it's only a workaround, you couldn't expect your average PC windows user to do this kind of thing but you guys already know that.


Yes, that would only be a workaround until the problem is fixed properly. I'll wait until I hear how adding the dir to PATH works then take your observations to the developers. Thanks for investigating this problem.

Andy
Send message
Joined: 11 Aug 11
Posts: 28

MCPLOT stats
Jobs: Loading
Events: Loading

BOINC stats
Credit: 70,026
RAC: 0
Message 4466 - Posted: 27 Aug 2011, 11:22:13 UTC - in response to Message 4465.

Jujube,

Adding to PATH appears to have helped a little.
I posted the results in message 4462.

I spend my days at work resolving app problems on windows servers so this shouldn't be beyond me but windows 7 home isn't as nice to work with. Having said that I know next to nothing about Unix/Linux.

Crystal Pellet
Volunteer moderator
Avatar
Send message
Joined: 5 Aug 11
Posts: 1317

MCPLOT stats
Jobs: Loading
Events: Loading

BOINC stats
Credit: 1,136,187
RAC: 239
Message 4467 - Posted: 27 Aug 2011, 11:31:15 UTC - in response to Message 4466.

Andy,

Could you try manual setting the variable again, but with an extra backslash?

CP

Andy
Send message
Joined: 11 Aug 11
Posts: 28

MCPLOT stats
Jobs: Loading
Events: Loading

BOINC stats
Credit: 70,026
RAC: 0
Message 4472 - Posted: 27 Aug 2011, 16:26:20 UTC - in response to Message 4467.

Extra slash added. I wasn't sure about including it because none of the other enries in the PATH variable ended in a slash.

As I'm at my daily limit again, we'll find out tomorrow if this worked.

jujube
Send message
Joined: 5 Aug 11
Posts: 1414

MCPLOT stats
Jobs: Loading
Events: Loading

BOINC stats
Credit: 701,572
RAC: 0
Message 4474 - Posted: 27 Aug 2011, 18:31:24 UTC - in response to Message 4472.

@ Andy,
Sorry, I missed message 4462. We must have been typing at the same time. We'll wait and see what happens with the terminating backslash. Adding the install dir to the path has reduced the number of errors and I think it's because the apps in the VirtualBox dir now run because they're on the PATH. Sounds like you've got solid experience with Windows. Don't worry about Linux/Unix because this problem seems to be happening only on Windows, so far, and Linux doesn't have a registry.

@ Jord,
Yes, running the registry cleaner is probably unnecessary so I'll remove that step. I included it because my hypothesis at the time was that the registry was fubar which prevented VirtualBox from adding its own keys to it. Now it looks like the keys are added but the wrapper that doesn't read the key, on some systems sometimes. Can you think of a reason why that might be?

Profile Ageless
Avatar
Send message
Joined: 1 Aug 11
Posts: 176

MCPLOT stats
Jobs: Loading
Events: Loading

BOINC stats
Credit: 9,258
RAC: 0
Message 4484 - Posted: 28 Aug 2011, 0:54:48 UTC - in response to Message 4474.

@ Jord,
Yes, running the registry cleaner is probably unnecessary so I'll remove that step. I included it because my hypothesis at the time was that the registry was fubar which prevented VirtualBox from adding its own keys to it. Now it looks like the keys are added but the wrapper that doesn't read the key, on some systems sometimes. Can you think of a reason why that might be?

Fun, you must think I've been ignoring you. I haven't. I just wasn't here, but stuck in one of the sub-missions of the Shanghai level of Deus Ex Human Revolutions. :-)

The only reason I can figure why the wrapper can't read the registry is permission problems. I wonder what the virtual box app does when people use fast user switching. Or remote desktop access. These are also permission things.

Otherwise... typo in the new code?
____________
Jord

-BOINC FAQ Service


Real is just a matter of perception.

jujube
Send message
Joined: 5 Aug 11
Posts: 1414

MCPLOT stats
Jobs: Loading
Events: Loading

BOINC stats
Credit: 701,572
RAC: 0
Message 4485 - Posted: 28 Aug 2011, 3:50:29 UTC - in response to Message 4484.

No, I just thought you probably had some family matters to take care.

I think it's either a permissions problem or the wrapper doesn't wait long enough for the registry to unlock. Do some read/write operations lock the registry? Do I remember that correctly or is my memory playing tricks on me?

I don't know how fast user switching and remote desktop access affects permissions in Windows, I'll leave it to someone with more recent experience with Windows programming to figure that out. The last time I wrote anything for Windows was back in the days of Win ME.

Andy
Send message
Joined: 11 Aug 11
Posts: 28

MCPLOT stats
Jobs: Loading
Events: Loading

BOINC stats
Credit: 70,026
RAC: 0
Message 4493 - Posted: 28 Aug 2011, 9:43:35 UTC - in response to Message 4485.

OK, adding the "\" hasn't helped.
As for permissions on the registry and locking it when switching users etc. I'm local admin, boinc and VirtualBox run under my ID so that shouldn't be an issue.
I've checked permissions on the registry key and even users have read access.

<core_client_version>6.12.33</core_client_version>
<![CDATA[
<message>
Incorrect function. (0x1) - exit code 1 (0x1)
</message>
<stderr_txt>

Setting VirtualBox PATH in Windows...
Trying to grab installation path of VirtualBox from Windows Registry...
Success!!! Installation PATH of VirtualBox is: C:\Program Files\Oracle\VirtualBox\.
Old PATH environment variable:
C:\Program Files (x86)\Windows Resource Kits\Tools\;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\PC Connectivity Solution\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;c:\Program Files (x86)\Common Files\Roxio Shared\10.0\DLLShared\;c:\Program Files (x86)\Common Files\Roxio Shared\DLLShared\;c:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files (x86)\QuickTime\QTSystem\;C:\Program Files\Oracle\VirtualBox\

Adding VirtualBox to PATH:
C:\Program Files (x86)\Windows Resource Kits\Tools\;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\PC Connectivity Solution\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;c:\Program Files (x86)\Common Files\Roxio Shared\10.0\DLLShared\;c:\Program Files (x86)\Common Files\Roxio Shared\DLLShared\;c:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files (x86)\QuickTime\QTSystem\;C:\Program Files\Oracle\VirtualBox\;C:\Program Files\Oracle\VirtualBox\
INFO: Cleaning old VMs of the project...
INFO: VM state discarded!
INFO: VM unregistered and deleted via VBoxManage.
INFO: Hard disk removed!
INFO: I&#194;&#180;m running in a Windows system...
INFO: Successfully unregistered the CernVM
INFO: VM was not registered, deleting old VM folders...
INFO: System was clean, nothing to delete.
INFO: Cleaning completed

Initializing VM...
Decompressing the VM
Uncompressed finished
INFO: Cleaning old instances...
INFO: VM state discarded!
INFO: VM unregistered and deleted via VBoxManage.
INFO: Hard disk removed!
INFO: I&#194;&#180;m running in a Windows system...
INFO: Successfully unregistered the CernVM
INFO: VM was not registered, deleting old VM folders...
INFO: System was clean, nothing to delete.
Registering a new VM from unzipped image...
Done!
INFO: Maximum usage of CPU: 100.000000
INFO: Setting how much CPU time the virtual CPU can use: 100
INFO: Success!
INFO: BOINC status suspend = False. Resuming VM
ERROR: Get cernvm status error!
INFO: cernvm status error Aborting
INFO: VM state discarded!
INFO: VM unregistered and deleted via VBoxManage.
INFO: Hard disk removed!
INFO: I&#194;&#180;m running in a Windows system...
INFO: Successfully unregistered the CernVM
INFO: VM was not registered, deleting old VM folders...
INFO: System was clean, nothing to delete.
09:50:13 (8180): called boinc_finish

</stderr_txt>
]]>


I've set the project to not allow new tasks so that I don't run out of my daily quota before I get a chance try something new.

Andy
Send message
Joined: 11 Aug 11
Posts: 28

MCPLOT stats
Jobs: Loading
Events: Loading

BOINC stats
Credit: 70,026
RAC: 0
Message 4495 - Posted: 28 Aug 2011, 11:19:27 UTC - in response to Message 4493.

I've just found this in VBoxSVC.log. I prsume it's caused by the CernVM because I have no problems with my other VMs.

00:00:08.206 ERROR [COM]: aRC=VBOX_E_INVALID_VM_STATE (0x80bb0002) aIID={5eaa9319-62fc-4b0a-843c-0cb1940f8a91} aComponent={Machine} aText={Machine is not locked for session (session state: Unlocked)}, preserve=false
00:00:09.267 ERROR [COM]: aRC=VBOX_E_IPRT_ERROR (0x80bb0005) aIID={5eaa9319-62fc-4b0a-843c-0cb1940f8a91} aComponent={SessionMachine} aText={Saved screenshot data is not available (VERR_NOT_SUPPORTED)}, preserve=false
00:07:46.662 ERROR [COM]: aRC=VBOX_E_INVALID_VM_STATE (0x80bb0002) aIID={5eaa9319-62fc-4b0a-843c-0cb1940f8a91} aComponent={Machine} aText={Machine is not locked for session (session state: Unlocked)}, preserve=false
00:07:49.392 ERROR [COM]: aRC=VBOX_E_IPRT_ERROR (0x80bb0005) aIID={5eaa9319-62fc-4b0a-843c-0cb1940f8a91} aComponent={SessionMachine} aText={Saved screenshot data is not available (VERR_NOT_SUPPORTED)}, preserve=false
00:32:42.571 ERROR [COM]: aRC=VBOX_E_INVALID_VM_STATE (0x80bb0002) aIID={5eaa9319-62fc-4b0a-843c-0cb1940f8a91} aComponent={Machine} aText={Machine is not locked for session (session state: Unlocked)}, preserve=false
00:32:45.270 ERROR [COM]: aRC=VBOX_E_IPRT_ERROR (0x80bb0005) aIID={5eaa9319-62fc-4b0a-843c-0cb1940f8a91} aComponent={SessionMachine} aText={Saved screenshot data is not available (VERR_NOT_SUPPORTED)}, preseve=false

Time for some more investigation.

Profile Ageless
Avatar
Send message
Joined: 1 Aug 11
Posts: 176

MCPLOT stats
Jobs: Loading
Events: Loading

BOINC stats
Credit: 9,258
RAC: 0
Message 4496 - Posted: 28 Aug 2011, 11:23:03 UTC - in response to Message 4493.

As for permissions on the registry and locking it when switching users etc. I'm local admin, boinc and VirtualBox run under my ID so that shouldn't be an issue.

The thing is, BOINC will run on in the other desktop session when you fast switch users, so it may run into problems where it can't find -or has no permission to look for- the path to the VBox install directory from the other account when Vbox starts up.

If you do fast user switching, can you test what it does when you install Vbox also for that other account, or at least give it rights to read the C:\Program Files\Oracle\VirtualBox\ directory?
____________
Jord

-BOINC FAQ Service


Real is just a matter of perception.

Andy
Send message
Joined: 11 Aug 11
Posts: 28

MCPLOT stats
Jobs: Loading
Events: Loading

BOINC stats
Credit: 70,026
RAC: 0
Message 4500 - Posted: 28 Aug 2011, 12:56:57 UTC - in response to Message 4496.

I don't use fast user switching. I'm the only user and I don't even have the machine lock after a period of inactivity.

jujube
Send message
Joined: 5 Aug 11
Posts: 1414

MCPLOT stats
Jobs: Loading
Events: Loading

BOINC stats
Credit: 701,572
RAC: 0
Message 4510 - Posted: 28 Aug 2011, 20:45:13 UTC - in response to Message 4500.

Unless Ageless has something more to add concerning permissions I think we have to conclude it's not a permissions problem that's stopping the wrapper from getting the install dir from registry.

Adding the install dir to PATH manually has prevented many of the errors Andy was getting. With the install dir in PATH the apps the wrapper calls to initialize/start the VM now run without crashing, I think.

Andy, the remaining errors might clear up if you run the 8 steps mentioned above. Set T4T to No New Work and abort any T4T tasks you have. Also, don't bother running the registry cleaner unless you want to as the wrapper is able, sometimes, to read the key. So it's not a fubar registry.

I think the wrapper sometimes finds the key/registry locked by other processes on your system and just doesn't wait long enough for it to unlock. Just a hypothesis. Unless someone else has an idea I think I don't have much else to offer at this time. I'm going to ask Daniel to examine this thread when he returns from his honeymoon. I think everything he needs is explained clearly and concisely with appropriate logs and comments from Andy. Thanks again Andy for your excellent help on this.

Andy
Send message
Joined: 11 Aug 11
Posts: 28

MCPLOT stats
Jobs: Loading
Events: Loading

BOINC stats
Credit: 70,026
RAC: 0
Message 4513 - Posted: 28 Aug 2011, 22:37:32 UTC - in response to Message 4510.

I've followed 7 of the 8 steps and it's still not looking good.

<core_client_version>6.12.33</core_client_version>
<![CDATA[
<message>
Incorrect function. (0x1) - exit code 1 (0x1)
</message>
<stderr_txt>

Setting VirtualBox PATH in Windows...
Trying to grab installation path of VirtualBox from Windows Registry...
Success!!! Installation PATH of VirtualBox is: C:\Program Files\Oracle\VirtualBox\.
Old PATH environment variable:
C:\Program Files (x86)\Windows Resource Kits\Tools\;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\PC Connectivity Solution\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;c:\Program Files (x86)\Common Files\Roxio Shared\10.0\DLLShared\;c:\Program Files (x86)\Common Files\Roxio Shared\DLLShared\;c:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files (x86)\QuickTime\QTSystem\;C:\Program Files\Oracle\VirtualBox\

Adding VirtualBox to PATH:
C:\Program Files (x86)\Windows Resource Kits\Tools\;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\PC Connectivity Solution\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;c:\Program Files (x86)\Common Files\Roxio Shared\10.0\DLLShared\;c:\Program Files (x86)\Common Files\Roxio Shared\DLLShared\;c:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files (x86)\QuickTime\QTSystem\;C:\Program Files\Oracle\VirtualBox\;C:\Program Files\Oracle\VirtualBox\
INFO: Cleaning old VMs of the project...
INFO: VM state discarded!
INFO: VM unregistered and deleted via VBoxManage.
INFO: Hard disk removed!
INFO: I&#194;&#180;m running in a Windows system...
INFO: Successfully unregistered the CernVM
INFO: VM was not registered, deleting old VM folders...
INFO: System was clean, nothing to delete.
INFO: Cleaning completed

Initializing VM...
Decompressing the VM
Uncompressed finished
INFO: Cleaning old instances...
INFO: VM state discarded!
INFO: VM unregistered and deleted via VBoxManage.
INFO: Hard disk removed!
INFO: I&#194;&#180;m running in a Windows system...
INFO: Successfully unregistered the CernVM
INFO: VM was not registered, deleting old VM folders...
INFO: System was clean, nothing to delete.
Registering a new VM from unzipped image...
Done!
INFO: Maximum usage of CPU: 100.000000
INFO: Setting how much CPU time the virtual CPU can use: 100
INFO: Success!
INFO: BOINC status suspend = False. Resuming VM
ERROR: Get cernvm status error!
INFO: cernvm status error Aborting
INFO: VM state discarded!
INFO: VM unregistered and deleted via VBoxManage.
INFO: Hard disk removed!
INFO: I&#194;&#180;m running in a Windows system...
INFO: Successfully unregistered the CernVM
INFO: VM was not registered, deleting old VM folders...
INFO: System was clean, nothing to delete.
23:25:38 (3544): called boinc_finish

</stderr_txt>
]]>


I agree it's probably not a security problem. As I'm running "Windows 7 home premium" I don't get any real control over security. I'm sure it's all in there under the covers but Microsoft just wants to screw another £100 out of me to use it.

I've even tried creating virtual XP pro machines in virtual box and running boinc/VirtualBox on the virtual machine. That hasn't worked at all, but I'm not surprised. Trying to run a hypervisor under another hypervisor was always going to be a long shot.

jujube
Send message
Joined: 5 Aug 11
Posts: 1414

MCPLOT stats
Jobs: Loading
Events: Loading

BOINC stats
Credit: 701,572
RAC: 0
Message 4522 - Posted: 29 Aug 2011, 1:50:22 UTC - in response to Message 4513.

Strange that it added the VB install dir to PATH again. It's in there twice now but I can't see that causing a problem.

How did you install BOINC... to run in PAE mode (as a daemon)? If you're not sure then restart BOINC, open Event Log (Advanced -> Event Log) and copy the first 30 lines and paste them here, please.

Andy
Send message
Joined: 11 Aug 11
Posts: 28

MCPLOT stats
Jobs: Loading
Events: Loading

BOINC stats
Credit: 70,026
RAC: 0
Message 4542 - Posted: 29 Aug 2011, 11:31:15 UTC - in response to Message 4522.

I'm sure I'm not running Boinc as a service but just to be on the safe side, here's everything before any of the apps start.

29/08/2011 12:28:50 | | Starting BOINC client version 6.12.33 for windows_x86_64
29/08/2011 12:28:50 | | log flags: file_xfer, sched_ops, task
29/08/2011 12:28:50 | | Libraries: libcurl/7.19.7 OpenSSL/0.9.8l zlib/1.2.5
29/08/2011 12:28:50 | | Data directory: C:\ProgramData\BOINC
29/08/2011 12:28:50 | | Running under account Andy
29/08/2011 12:28:50 | | Processor: 8 GenuineIntel Intel(R) Core(TM) i7 CPU 860 @ 2.80GHz [Family 6 Model 30 Stepping 5]
29/08/2011 12:28:50 | | Processor: 256.00 KB cache
29/08/2011 12:28:50 | | Processor features: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss htt tm pni ssse3 cx16 sse4_1 sse4_2 nx lm vmx smx tm2 popcnt pbe
29/08/2011 12:28:50 | | OS: Microsoft Windows 7: Home Premium x64 Edition, Service Pack 1, (06.01.7601.00)
29/08/2011 12:28:50 | | Memory: 5.96 GB physical, 11.92 GB virtual
29/08/2011 12:28:50 | | Disk: 1.75 TB total, 561.97 GB free
29/08/2011 12:28:50 | | Local time is UTC +1 hours
29/08/2011 12:28:50 | | NVIDIA GPU 0: GeForce GTS 240 (driver version 27533, CUDA version 4000, compute capability 1.1, 970MB, 363 GFLOPS peak)

1 · 2 · Next
Post to thread

Questions and Answers : Windows : VM not starting - or at least that's what it looks like