boinc icon indicating copy to clipboard operation
boinc copied to clipboard

VirtualBox can't be blamed this time

Open team109 opened this issue 3 years ago • 7 comments

The bug I'm running on VirtualBox 6.1.32 and I have 4 virtual machines of my own.They are able to run normally when Hyper-V is open ,though Hyper-V cannot run when VirtualBox is even only installed.However lhc@home shows CPU virtualization support is off.So do GPUGrid.Only after I disabled Hyper-V through bcdedit and then restart can I run lhc@home again.It seems that,it's boinc who fights with Hyper-V,not VBox.

Reproduce I haven't tried to.

System Info Win11 BOINC 7.20.2 VirtualBox 6.1.32

team109 avatar Aug 22 '22 09:08 team109

Please forgive me that English is a second language.

team109 avatar Aug 22 '22 09:08 team109

Yes it can be reproducted simply by

bcdedit /set hypervisorlaunchtype auto then restart

team109 avatar Aug 24 '22 01:08 team109

By default Hyper-V will disable VirtualBox when it detects that the other hypervisor is installed, this is because they can't both be using the virtualization (VT-x) on the CPU at the same time. There are ways around that (https://www.how2shout.com/how-to/use-virtualbox-and-hyper-v-together-on-windows-10.html) but you'll have to test whether that works that way on Windows 11 as well.

The above will allow VirtualBox to use Hyper-V as the hypervisor of choice. BOINC can only work with VirtualBox not with any other hypervisor. A quick search shows that in #1974 the developers thought of adding Hyper-V support, but decided against it as it isn't supported in Windows 10 Home Edition.

Ageless93 avatar Aug 25 '22 22:08 Ageless93

Yes I was using as that link says, the paravirtualization interface was set to Hyper-V, and my own vm was working all right, that's the problem. Besides, Windows 10 Home is able to run Hyper-V service. It's easily searched that you only need to run this bat:

pushd "%~dp0"
dir /b %SystemRoot%\servicing\Packages\*Hyper-V*.mum >hv.txt
for /f %%i in ('findstr /i . hv.txt 2^>nul') do dism /online /norestart /add-package:"%SystemRoot%\servicing\Packages\%%i"
del hv.txt
Dism /online /enable-feature /featurename:Microsoft-Hyper-V -All /LimitAccess /ALL
Pause

team109 avatar Aug 26 '22 00:08 team109

BOINC devs, see https://www.how2shout.com/how-to/download-and-install-hyper-v-on-windows-10-home.html for how to do this. I'm not sure we'd want to add something to the user's computer without their express acknowledgment.

Ageless93 avatar Aug 26 '22 16:08 Ageless93

Well, you can teach them to do it themselves.

team109 avatar Aug 27 '22 06:08 team109

Anyway the problem is that VirtualBox is working all right but BOINC shows no virtualization support.

team109 avatar Aug 27 '22 06:08 team109

https://github.com/BOINC/boinc/issues/3184#issuecomment-2112458414

AenBleidd avatar May 15 '24 13:05 AenBleidd