Score:2

Boinc keeps getting an error/notice saying "virtual box is not installed" on Ubuntu

ng flag

Trying to crunch some work units from Atlas/LHC@Home, and I keep getting the "virtual box is not installed" error. In Ubuntu 18.04, I installed the following packages that were in the Ubuntu repo:

  • boinc (Metapackage 7.9.3)
  • boinc-client (Core Client 7.9.3)
  • boinc-manager (Boinc Manager 7.9.3)
  • boinc-virtualbox (Metapackage 7.9.3)
  • boinc-client-nvidia-cuda (Metapackage 7.9.3)
  • libboinc7 (Libraries 7.9.3)
  • virtualbox (Virtual Box 5.2.44)
  • virtualbox-ext-pack (Extension Pack 5.2.44)

Confirmed that virtualization was on by running lscpu and found the line that reads:

Virtualization:      VT-x

*should read VT-x for Intel processors, or AMD-v for AMD processors.

Also checked that I could start a VM in Virtual Box with virtualization running.

Checked the client_state.xml file in the Boinc Data Directory (found in var/lib/boinc-client) to make sure there was a line that reads:

<p_vm_extensions_disabled>0</p_vm_extensions_disabled>

*should be 0 or absent. If it has a one, you need to make sure you've closed Boinc and ended all its processes, edit it, and save it as an ascii-file.

Also checked my firewall, local resources, anti-virus, and ports per this thread.

Score:0
ng flag

Boinc's Ubuntu installation instructions weren't much help, and LHC's blog post on the subject was... well, what's the antonym of helpful? Dumpster fire?

A VirtualBox upgrade is what finally fixed this error for me. Here's what I did.

First, make sure Boinc and all its processes are closed and then update your packages:

sudo apt update && sudo apt upgrade

Then import Oracle's public keys:

wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo apt-key add -  
wget -q https://www.virtualbox.org/download/oracle_vbox.asc -O- | sudo apt-key add -

Add the Oracle VirtualBox PPA

sudo add-apt-repository "deb http://download.virtualbox.org/virtualbox/debian bionic contrib"

Install VirtualBox 6.0 or newer:

sudo apt update && sudo apt install virtualbox-6.0

Lastly, start the Boinc Manager from your apps panel, and go to Tools > Event Log... and look for a line that says something like:

Wed 16 Feb 2022 11:38:05 AM CST |  | VirtualBox version: 6.0.24r139119

If you see something like that, everything should be working. You can double check that virtualization is active on your LHC page. Just browse to your publicly listed computer info page, which should be something like:

https://lhcathome.cern.ch/lhcathome/show_host_detail.php?hostid=12345678

...where 12345678 is your Computer ID, which can be found by going to your Boinc Manager and clicking on LHC@home in your project list and selecting properties. When you go to your LHC computer info page, it should says something like:

Virtualization  Virtualbox (6.0.24r139119) installed, CPU has hardware virtualization support and it is enabled

The solution was relatively simple, but it sure wasted a lot of time since there weren't any good instructions posted anywhere. If this saves you some time, please consider giving this solution or problem an up vote. Thank you, and happy crunching!

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.