ERROR [COM]: aRC=E_ACCESSDENIED (0x80070005)

Discussions related to using VirtualBox on Windows hosts.
Post Reply
RichW
Posts: 4
Joined: 13. May 2022, 18:39

ERROR [COM]: aRC=E_ACCESSDENIED (0x80070005)

Post by RichW »

Hi I cannot load up my Windows 10 virtual machine it crashed the other day and has had to shut down since then it won't start up it just says a critical error occurred.

it has this error in the log file ERROR [COM]: aRC=E_ACCESSDENIED (0x80070005) I have attached the log file
Attachments
VBox.zip
VBox Log File
(56.42 KiB) Downloaded 19 times
scottgus1
Site Moderator
Posts: 20965
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: ERROR [COM]: aRC=E_ACCESSDENIED (0x80070005)

Post by scottgus1 »

Here's what the little guru meditated over:
00:00:05.371674 Changing the VM state from 'RUNNING' to 'GURU_MEDITATION'
00:00:05.371719 Console: Machine state changed to 'GuruMeditation'
00:00:05.371935 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
00:00:05.371936 !!
00:00:05.371936 !! VCPU0: Guru Meditation -4000 (VERR_VMX_VMXON_FAILED)
That error means something is stealing the host's hardware virtualization from Virtualbox. Your log does not show enabled Hyper-V, so that's not the issue.

Do you have 3rd-party antivirus installed? Recently some AV providers enabled their AV to use hardware virtualization, which blocks Hyper-V. Try to find the setting and disable it.

Also, when you get the host rebooted, check on your memory usage:
00:00:03.962662 Host RAM: 16326MB (15.9GB) total, 2824MB (2.7GB) available
00:00:04.173571 RamSize <integer> = 0x000000018b900000 (6 636 437 504, 6 329 MB, 6.1 GB)
You host has lots of RAM users running, which has caused severe overprovisioning of RAM for the VM.
RichW
Posts: 4
Joined: 13. May 2022, 18:39

Re: ERROR [COM]: aRC=E_ACCESSDENIED (0x80070005)

Post by RichW »

Ok so I added an exception to the Avast antivirus and rebooted my host machine. It go stuck restarting so I think there must have been an underlying problem there. Once rebooted I tried Virtualbox again and it loaded without the critical error. I use my host machine for a lot of development work using Visual Studio and sometimes have to have multiple solutions open at the same time I think this caused the high memory usage. I will keep this in mind in future when trying to run the Virtual Machine.

Thank you for you help It is all working again now and I will know for next time
mpack
Site Moderator
Posts: 39156
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: ERROR [COM]: aRC=E_ACCESSDENIED (0x80070005)

Post by mpack »

You could in fact get rid of Avast AV entirely, since no way it's needed on a Win10 PC. Most of the people getting your error were running old Win7 hosts, so seeing third party AV on a Win10 host is kinda unusual.

Btw, fixing that RAM over-committment is not optional. Did you do it?
RichW
Posts: 4
Joined: 13. May 2022, 18:39

Re: ERROR [COM]: aRC=E_ACCESSDENIED (0x80070005)

Post by RichW »

ok I will see about removing the Avast antivirus. No, I did not overprovision the ram. I set it up at about 6gb initially when I created the VM. I have 16gb in total on my host machine
mpack
Site Moderator
Posts: 39156
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: ERROR [COM]: aRC=E_ACCESSDENIED (0x80070005)

Post by mpack »

RichW wrote:I set it up at about 6gb initially when I created the VM. I have 16gb in total on my host machine
It doesn't matter how much RAM you have installed, it matters how much is available, i.e. not already committed to some other task. The log section highlighted by Scott showed that you had less than 3GB available, hence a 3GB allocation would saturate your PC (itself not good). But in fact you allocated twice that, which is a serious problem.

If 3GB available is typical for your PC then you need to reduce the allocation to the VM. If the numbers presented are typical then you'd have to reduce the VM allocation to something like 2048MB.

It's true that Windows has things it can do if you saturate RAM, such as switching to paged RAM. But most users would find that undesirable.
RichW
Posts: 4
Joined: 13. May 2022, 18:39

Re: ERROR [COM]: aRC=E_ACCESSDENIED (0x80070005)

Post by RichW »

I have now reduced my ram allocation to 2048 I misunderstood and thought that the more ram I allocated the quicker the VM machine would be without thinking about the issue with the ram on the host when a lot of applications are running. Thank you for your advice it should run fine now
Post Reply