BOINC client not detecting VirtualBox installation

Message boards : Questions and problems : BOINC client not detecting VirtualBox installation
Message board moderation

To post messages, you must log in.

AuthorMessage
Richard Haselgrove
Volunteer tester
Help desk expert

Send message
Joined: 5 Oct 06
Posts: 5082
United Kingdom
Message 97426 - Posted: 9 Apr 2020, 16:06:22 UTC - in response to Message 97425.  

Check to see if a line

<dont_use_vbox>1</dont_use_vbox> or <dont_use_vbox/>

has been created in configuration file cc_config.xml

It's a long shot, but at one time the BOINC client created that value to save repeated error messages when things went wrong.
ID: 97426 · Report as offensive
Profile Jord
Volunteer tester
Help desk expert
Avatar

Send message
Joined: 29 Aug 05
Posts: 15480
Netherlands
Message 97429 - Posted: 9 Apr 2020, 16:56:49 UTC - in response to Message 97428.  

You are right that BOINC can be too busy at startup to detect things like VirtualBox and GPUs. The solution is to use the sleep command on the Boinc process for N seconds, where N is your wanted wait time. You can read through https://boinc.berkeley.edu/forum_thread.php?id=12946 to see if that helps (depending on if you sue systemd or not though)
ID: 97429 · Report as offensive
Profile Jord
Volunteer tester
Help desk expert
Avatar

Send message
Joined: 29 Aug 05
Posts: 15480
Netherlands
Message 97431 - Posted: 9 Apr 2020, 17:51:27 UTC - in response to Message 97430.  

I didn't offer the delay_start option in cc_config because it delays the starting of science applications only. It may help, but I doubt it because it's the whole hypervisor that isn't detected as I understand. Since the science applications run in that hypervisor, delay starting them doesn't help because they won't start anyway without the hypervisor. (if there are science applications already available)

But it's the same here, BOINC seems to start before VirtualBox is ready. Which means that by the time VirtualBox starts, BOINC has already started and it won't try to redetect VirtualBox. So delay starting BOINC can fix this.
ID: 97431 · Report as offensive
Nick Name

Send message
Joined: 14 Aug 19
Posts: 55
United States
Message 97432 - Posted: 9 Apr 2020, 18:11:49 UTC

You can check client_state just to be sure it didn't get borked somehow.

* Did you try to crunch Projects using VMs in the past while VT-X / AMD-V / VIA-VT was not enabled? Could be that BOINC has kept this in mind!

To check and fix this, first exit BOINC and make sure, all BOINC-Tasks have really finished.

In your BOINC_Data-Directory you will find a client_state.xml. Open this with a simple editor and search for:

<p_vm_extensions_disabled>1</p_vm_extensions_disabled>


If this is absent or the number is 0 / zero than all is fine. Otherwise change it to 0 / zero <p_vm_extensions_disabled>0</p_vm_extensions_disabled> and safe the file. Be carefull to save it as a real ascii-file

Be carefull that you closed your BOINC-Client successfully before you change anything in client_state.xml. Otherwise BOINC will overwrite your changes

Team USA forum
Follow us on Twitter
Help us #crunchforcures!
ID: 97432 · Report as offensive
Profile Jord
Volunteer tester
Help desk expert
Avatar

Send message
Joined: 29 Aug 05
Posts: 15480
Netherlands
Message 97435 - Posted: 9 Apr 2020, 18:57:47 UTC - in response to Message 97433.  

However, if this was the problem a simple restart of the client after system start should solve the problem.
But when are you sure that system start has ended? Simply looking at the drive light won't do it.

Would be nice to have the ability to recheck for VB or GPUs without having to restart the client similar to re-read config files.
Detection of GPUs, coprocessors and VirtualBox is quite a resource intense procedure and we prefer it only happens at BOINC client start.
ID: 97435 · Report as offensive
Profile Jord
Volunteer tester
Help desk expert
Avatar

Send message
Joined: 29 Aug 05
Posts: 15480
Netherlands
Message 97438 - Posted: 9 Apr 2020, 21:06:13 UTC - in response to Message 97436.  

In that case I would uninstall and reinstall VirtualBox first, to make sure there isn't something wrong with it or its startup scripts.
I didn't read it, but are you sure you need VirtualBox?
ID: 97438 · Report as offensive
Richard Haselgrove
Volunteer tester
Help desk expert

Send message
Joined: 5 Oct 06
Posts: 5082
United Kingdom
Message 97439 - Posted: 9 Apr 2020, 21:12:01 UTC - in response to Message 97430.  

When the client starts, depending on project work, the client process (BOINC) runs at least 90% busy for minutes.
I've recently had a private communication suggesting that, in the author's opinion, the process which reads, parses and sorts into order the tasks in client_state.xml is coded inefficiently, and in particular takes O(nĀ²) to perform the sort. They have coded an alternative procedure, but I am not sufficiently skilled to verify it is fit for purpose in this context. Anybody available with coding skills to committer level like to take this on?
ID: 97439 · Report as offensive
Profile Jord
Volunteer tester
Help desk expert
Avatar

Send message
Joined: 29 Aug 05
Posts: 15480
Netherlands
Message 97442 - Posted: 9 Apr 2020, 22:23:30 UTC - in response to Message 97440.  
Last modified: 9 Apr 2020, 22:24:31 UTC

Have you read https://wiki.centos.org/HowTos/Virtualization/VirtualBox?
(Although someone should tell them that hard pink is a difficult background!)
ID: 97442 · Report as offensive
Profile Jord
Volunteer tester
Help desk expert
Avatar

Send message
Joined: 29 Aug 05
Posts: 15480
Netherlands
Message 97448 - Posted: 10 Apr 2020, 7:45:21 UTC - in response to Message 97443.  

(Although someone should tell them that hard pink is a difficult background!)

But it so brings out the colour in your eyes !
ROFLOL šŸ¤£

That's the nicest thing you ever said to me. šŸ˜ŠšŸ˜„
ID: 97448 · Report as offensive
Profile Jord
Volunteer tester
Help desk expert
Avatar

Send message
Joined: 29 Aug 05
Posts: 15480
Netherlands
Message 97464 - Posted: 10 Apr 2020, 15:31:07 UTC - in response to Message 97460.  
Last modified: 10 Apr 2020, 15:42:16 UTC

And thank you for reporting the solution back. I'll see if we need to document this.
I've added it to the BOINC manual. Thanks again.
ID: 97464 · Report as offensive

Message boards : Questions and problems : BOINC client not detecting VirtualBox installation

Copyright © 2024 University of California.
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.