Failed to load R0 module

Discussions about using Windows guests in VirtualBox.
Locked
Lilith
Posts: 2
Joined: 5. Nov 2021, 09:56

Failed to load R0 module

Post by Lilith »

Hello, I am new to the forum. I have used virtualbox before for my school projects. I have recently factory reset my computer and re installed virtualbox. However, I can no longer use it. Everytime I open vbox file I get this error:
--------------------------------------
Failed to open a session for the virtual machine pa1box.

Failed to load R0 module C:\Program Files\Oracle\VirtualBox/VMMR0.r0: SUP_IOCTL_LDR_OPEN failed (VERR_LDR_GENERAL_FAILURE).

Failed to load VMMR0.r0 (VERR_LDR_GENERAL_FAILURE).

Result Code: E_FAIL (0x80004005)
Component: ConsoleWrap
Interface: IConsole {872da645-4a9b-1727-bee2-5585105b9eed}
-------------------------------------

I have done suggestions from another post with the same issue, specifically, I have tried these steps:

1. Uninstall VirtualBox. Your VMs are going to be untouched. Reboot.
2. You may want to clean up your registry and/or filesystem at this point. CCleaner is a freeware utility that could help you. Mind the installation, it comes with "offers" from 3rd parties, known as "bundleware".
3. Download (if you haven't already) the latest VirtualBox and its matching ExtPack. Store them in a common location, i.e. not on "Desktop", or "Documents", but to "Public/Downloads" for example.
4. Locate the downloaded file in Windows Explorer. Right-click on the installer and select "Run-as-Administrator", even if you are the administrator. At the end of the installation, choose to "Start Oracle VM VirtualBox". Do not worry if your VMs do not show up.
5. Quit VirtualBox. Re-start VirtualBox as you would normally, i.e. from the Desktop shortcut or the Start menu.


I have also tried disabling Windows Hyper-V Feature and then rebooting my computer.

After trying the above, I receive the same error. I am at a loss as my school projects can't be done and I will fail the class :(

Not sure if this will help but this is my computer specs:
Windows 10 Home
64-bit operating system, x64-based processor
Intel(R) Core(TM) i7-1065G7 CPU @ 1.30GHz 1.50 GHz

This is the VBox.log

Code: Select all

00:00:02.838492 VirtualBox VM 6.1.28 r147628 win.amd64 (Oct 18 2021 18:49:03) release log
00:00:02.838497 Log opened 2021-11-05T09:08:51.530872600Z
00:00:02.838498 Build Type: release
00:00:02.838501 OS Product: Windows 10
00:00:02.838502 OS Release: 10.0.19042
00:00:02.838502 OS Service Pack: 
00:00:02.932958 DMI Product Name: Surface Book 3
00:00:02.936158 DMI Product Version: 124I:00037T:000M:0200000D:0B:05F:1C:05P:48S:01E:0Y:1K:0U:05R:2
00:00:02.936169 Firmware type: UEFI
00:00:02.937229 Secure Boot: VERR_PRIVILEGE_NOT_HELD
00:00:02.937244 Host RAM: 32353MB (31.5GB) total, 24925MB (24.3GB) available
00:00:02.937246 Executable: C:\Program Files\Oracle\VirtualBox\VirtualBoxVM.exe
00:00:02.937247 Process ID: 14568
00:00:02.937247 Package type: WINDOWS_64BITS_GENERIC
00:00:02.938109 Installed Extension Packs:
00:00:02.938123   None installed!
00:00:02.938702 Console: Machine state changed to 'Starting'
00:00:02.938859 Qt version: 5.6.2
00:00:02.941497 GUI: UIMediumEnumerator: Medium-enumeration finished!
00:00:03.046036 PDMLdr: pdmR3LoadR0U: pszName="VMMR0.r0" rc=VERR_LDR_GENERAL_FAILURE szErr="SUP_IOCTL_LDR_OPEN failed"
00:00:03.046064 VMSetError: F:\tinderbox\win-6.1\src\VBox\VMM\VMMR3\PDMLdr.cpp(733) int __cdecl pdmR3LoadR0U(struct UVM *,const char *,const char *,const char *); rc=VERR_LDR_GENERAL_FAILURE
00:00:03.046065 VMSetError: Failed to load R0 module C:\Program Files\Oracle\VirtualBox/VMMR0.r0: SUP_IOCTL_LDR_OPEN failed
00:00:03.046161 VMSetError: F:\tinderbox\win-6.1\src\VBox\VMM\VMMR3\VM.cpp(567) int __cdecl vmR3CreateU(struct UVM *,unsigned int,int (__cdecl *)(struct UVM *,struct VM *,void *),void *); rc=VERR_LDR_GENERAL_FAILURE
00:00:03.046163 VMSetError: Failed to load VMMR0.r0
00:00:03.046586 ERROR [COM]: aRC=E_FAIL (0x80004005) aIID={872da645-4a9b-1727-bee2-5585105b9eed} aComponent={ConsoleWrap} aText={Failed to load R0 module C:\Program Files\Oracle\VirtualBox/VMMR0.r0: SUP_IOCTL_LDR_OPEN failed (VERR_LDR_GENERAL_FAILURE).
00:00:03.046619 Failed to load VMMR0.r0 (VERR_LDR_GENERAL_FAILURE)}, preserve=false aResultDetail=-618
00:00:03.046824 Console: Machine state changed to 'PoweredOff'
00:00:03.056618 Power up failed (vrc=VERR_LDR_GENERAL_FAILURE, rc=E_FAIL (0X80004005))
00:00:03.558220 GUI: UIMachineViewNormal::resendSizeHint: Restoring guest size-hint for screen 0 to 1024x768
00:00:03.558298 ERROR [COM]: aRC=E_ACCESSDENIED (0x80070005) aIID={4680b2de-8690-11e9-b83d-5719e53cf1de} aComponent={DisplayWrap} aText={The console is not powered up (Display::setVideoModeHint)}, preserve=false aResultDetail=0
00:00:03.558634 GUI: Aborting startup due to power up progress issue detected...
What else can I do?
Last edited by Lilith on 5. Nov 2021, 11:12, edited 1 time in total.
mpack
Site Moderator
Posts: 39156
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: Failed to load R0 module

Post by mpack »

Failed to load R0 module C:\Program Files\Oracle\VirtualBox/VMMR0.r0: SUP_IOCTL_LDR_OPEN failed (VERR_LDR_GENERAL_FAILURE).
AFAIK, this means that VirtualBox was not properly installed. You need to install while logged in as the intended user, but use "Run as administrator" to ensure that you have the necessary permissions, even temporarily.

I do not recommend products such as CCleaner. In my opinion these are at best placebos, at worst snake oil.
Lilith
Posts: 2
Joined: 5. Nov 2021, 09:56

Re: Failed to load R0 module

Post by Lilith »

Thanks for the response. I have tried installing virtualbox as administrator by right clicking on the installer and clicking "Run as administrator". Unfortunately this still gives me the same error.
mpack
Site Moderator
Posts: 39156
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: Failed to load R0 module

Post by mpack »

Please provide a VM log file and the hardening log in one zip attachment. Make sure the VM is fully shut down, then right click it in the manager UI. Select "Show Log" and save "VBox.log" (only one VM log please) to a zip file. Add the VBoxHardening.log file too.

Attach the zip here.
fth0
Volunteer
Posts: 5668
Joined: 14. Feb 2019, 03:06
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Linux, Windows 10, ...
Location: Germany

Re: Failed to load R0 module

Post by fth0 »

The Windows Hypervisor-enforced Code Integrity (HVCI) feature rejects the VirtualBox component VMMR0.r0. A workaround is to disable HVCI aka Memory integrity as follows:

On your Windows host, go to Start > Settings > Update & security > Windows Security > Device security > Core isolation details, turn off Memory integrity and reboot the Windows host.
mekazu
Posts: 1
Joined: 14. Dec 2021, 07:37

Re: Failed to load R0 module

Post by mekazu »

Can anyone please verify if this solves the issue? If so do we know if there's a plan to fix this in later version of Virtualbox? I don't have permission to make the recommended change as it's managed by the organisation, but HVCI seems like something I'd want to keep enabled.
fth0
Volunteer
Posts: 5668
Joined: 14. Feb 2019, 03:06
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Linux, Windows 10, ...
Location: Germany

Re: Failed to load R0 module

Post by fth0 »

I already verified it "the other way around": I could easily reproduce the issue by enabling HVCI, and disabling it again solved the issue. The VirtualBox developers didn't give a timeframe for when it's going to be fixed.
c32
Posts: 1
Joined: 20. Dec 2021, 22:31

Re: Failed to load R0 module

Post by c32 »

fth0 wrote:The Windows Hypervisor-enforced Code Integrity (HVCI) feature rejects the VirtualBox component VMMR0.r0. A workaround is to disable HVCI aka Memory integrity as follows:

On your Windows host, go to Start > Settings > Update & security > Windows Security > Device security > Core isolation details, turn off Memory integrity and reboot the Windows host.
Thanks. This did the trick for me.
Pequeno_Novato
Posts: 1
Joined: 21. Dec 2021, 15:16

Re: Failed to load R0 module

Post by Pequeno_Novato »

c32 wrote:
fth0 wrote:The Windows Hypervisor-enforced Code Integrity (HVCI) feature rejects the VirtualBox component VMMR0.r0. A workaround is to disable HVCI aka Memory integrity as follows:

On your Windows host, go to Start > Settings > Update & security > Windows Security > Device security > Core isolation details, turn off Memory integrity and reboot the Windows host.
Thanks. This did the trick for me.
tentei procurar no meu not essa solução mas não encontrei (win 7)
scottgus1
Site Moderator
Posts: 20965
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: Failed to load R0 module

Post by scottgus1 »

@ Pequeno_Novato, Windows 7 hosts don't have this setting being referred to in your quote. It's only a 10 & 11 thing.

Please make your own topic with a much more descriptive explanation of your problem.
bluePenguin
Posts: 1
Joined: 3. Jan 2022, 01:13

Re: Failed to load R0 module

Post by bluePenguin »

replying to >>> fth0
"
The Windows Hypervisor-enforced Code Integrity (HVCI) feature rejects the VirtualBox component VMMR0.r0. A workaround is to disable HVCI aka Memory integrity as follows:

On your Windows host, go to Start > Settings > Update & security > Windows Security > Device security > Core isolation details, turn off Memory integrity and reboot the Windows host.
"



Thanks! It worked!
Logixor
Posts: 2
Joined: 7. Feb 2023, 10:52

Re: Failed to load R0 module

Post by Logixor »

fth0 wrote:The Windows Hypervisor-enforced Code Integrity (HVCI) feature rejects the VirtualBox component VMMR0.r0. A workaround is to disable HVCI aka Memory integrity as follows:

On your Windows host, go to Start > Settings > Update & security > Windows Security > Device security > Core isolation details, turn off Memory integrity and reboot the Windows host.


Solved the issue on a clean Windows 11 22H2 and VBox 7.0.6

Thanks a bunch!
Locked