VirtualBox

Opened 13 years ago

Last modified 6 years ago

#7972 new defect

Cannot install extension pack -- VERR_ACCESS_DENIED

Reported by: Leslie Noland Owned by:
Component: other Version: VirtualBox 4.0.0
Keywords: "extension pack", VERR_ACCESS_DENIED, rename Cc: lnoland@…
Guest type: other Host type: Windows

Description (last modified by Frank Mehnert)

Note: I have not attached a session log file as attempting to install an extension pack, predictably, does not appear to generate anything in the session log for a VM. I have attempted the installation both without and with VMs running.

I installed VirtualBox 4.0.0 onto Windows 7 Professional and attempted to install the extension pack: Oracle_VM_VirtualBox_Extension_Pack-4.0.0-69151.vbox-extpack The attempt failed with:

The installer failed with exit code 1: VBoxExtPackHelperApp.exe: error: Failed to rename the temporary directory to the final one: VERR_ACCESS_DENIED('G:\PROGRA~3\Oracle\VIRTUA~1/ExtensionPacks/Oracle_VM_VirtualBox_Extension_pack-_-inst-4100' -> 'G:\PROGRA~3\Oracle\VIRTUA~1/ExtensionPacks/Oracle_VM_VirtualBox_Extension_Pack')

a screencap of the error dialog is attached. (NOTE: My boot drive (C:) is a small solid-state drive so I have the user account directories on my G: drive and install most software there as well.)

As the error suggests "access denied" and the host is Windows 7, I immediately suspected UAC, however, I am not so sure of that now. I searched the forums for anyone else experiencing the error -- I did find someone else and their error appeared to be identical to mine but, in their case, they have VBox loaded on a Windows XP host, so UAC seems an unlikely contributor.

I did verify that it seems to be actually creating the temporary directory (I did this by opening the ExtensionPacks subdirectory in Windows Explorer and visually watching it as I attempted the installation -- a new folder appeared briefly then disappeared again followed immediately by the appearance of the error dialog).

I have verified that the MD5 checksum for the extension pack matches the one published on your website. I can also open that file using 7-zip and it appears reasonable in format and content (as best as I can tell).

I tried installing the extension pack in as many ways as I could imagine: doubleclicking on the file itself; adding it using the preferences dialog in VirtualBox Manager; running VirtualBox manager both as an administrator and as a non-elevated administrative user; installing from an elevated command prompt using VBoxManage.exe; etc. In each case the results were exactly the same. I even tried rebooting my machine and then running the scenarios again.

Since it was suggesting an access problem, and knowing that Windows 7 has some restrictions on making modifications to the "Program Files" directory and subdirectories ( I am not sure exactly what those restrictions are but I know that in some cases things wind up in a virtual directory instead of the intended target) I tried a long shot and deleted the ExtensionPacks directory then replaced it with a symbolic link to a directory I created in G:\Users\Public which had full access by the special user "EveryOne" so there should not have been any access problems so far as I know -- the results were exactly the same as before so I reversed my changes.

I have checked the Windows Logs in the event viewer -- there are no application errors, system errors, nor security audit failures, corresponding to the failed installation.

I am pretty well tapped out of other ideas of things to try as workarounds. If there is any other information you need please let me know. Thanks in advance for any assistance you can provide in resolving this.

Attachments (4)

VirtualBoxExtPackError.jpg (74.1 KB ) - added by Leslie Noland 13 years ago.
Error Dialog
err_install_ext_pack.png (11.0 KB ) - added by eripet 13 years ago.
virtualboxextensions.org (1.5 KB ) - added by dd-b 11 years ago.
Text copy of error messages from failures to upgrade extensions
VirtualBoxExtensionError.jpg (52.1 KB ) - added by mountainshirt 8 years ago.
Virtual Box error on installing extensions - virus scanner related

Download all attachments as: .zip

Change History (36)

by Leslie Noland, 13 years ago

Attachment: VirtualBoxExtPackError.jpg added

Error Dialog

comment:1 by Leslie Noland, 13 years ago

I figured out a workaround for my problem. I installed 4.0 on a Windows Vista Home Premium, 32-bit host and experienced the same problem. I had previously rejected UAC (user account control) as the cause because I found another user with the same symptoms running on a WIndows XP host. After the VIsta failure, however, I once again suspected UAC so I tried installing with UAC turned off. That worked fine in VIsta, but not Windows 7. UAC appears to be somewhat different in WIndows 7 and I thought, perhaps, that even with UAC turned off (in Windows 7, they don't even refer to it as being off -- it is just set to the lowest level) it still restricted what one could do in the Program Files directory without doing whatever it is that Installers do to get around that issue. I then decided to try installing from Safe Mode -- that worked fine (Note: I do not know if it is significant but I still had UAC turned "off" when I booted into Safe Mode.).

While the workaround gets the job done, at a minimum, the documentation still needs to be updated to let people know what is required for installing on these platforms and, personally, I don't think it should be necessary to turn off UAC or boot into Safe Mode -- Microsoft obviously has made provisions to allow installers to make changes in the Program Files directory/subdirectories -- it just appears that VirtualBox is not using those provisions.

Thank you for your time and for a great product.

comment:2 by eripet, 13 years ago

I am having the same problem with the latest VirtualBox version (4.0.2), trying to install the extension pack (4.0.2r69518)

Host: Win XP Pro (german).

Error Message:

The installer failed with exit code 1: VBoxExtPackHelperApp.exe: error: Failed to 
rename the temporary directory to the final one: VERR_ACCESS_DENIED ('C:\PROGRA~1\
Oracle\VIRTUA~1\ExtensionPacks\Oracle_VM_VirtualBox_Extension_Pack-_-inst-5752'
->'C:\PROGRA~1\Oracle\VIRTUA~1\ExtensionPacks\Oracle_VM_VirtualBox_Extension_Pack')

Result Code: 
E_FAIL (0x80004005)
Component: 
ExtPackManager
Interface: 
IExtPackManager {2451b1ba-ab1c-42fb-b453-c58433bea8c7}

by eripet, 13 years ago

Attachment: err_install_ext_pack.png added

in reply to:  2 comment:3 by Leslie Noland, 13 years ago

Replying to eripet:

I am having the same problem with the latest VirtualBox version (4.0.2), trying to install the extension pack (4.0.2r69518)

Host: Win XP Pro (german).

Error Message:

The installer failed with exit code 1: VBoxExtPackHelperApp.exe: error: Failed to 
rename the temporary directory to the final one: VERR_ACCESS_DENIED ('C:\PROGRA~1\
Oracle\VIRTUA~1\ExtensionPacks\Oracle_VM_VirtualBox_Extension_Pack-_-inst-5752'
->'C:\PROGRA~1\Oracle\VIRTUA~1\ExtensionPacks\Oracle_VM_VirtualBox_Extension_Pack')

Result Code: 
E_FAIL (0x80004005)
Component: 
ExtPackManager
Interface: 
IExtPackManager {2451b1ba-ab1c-42fb-b453-c58433bea8c7}

Did you try installing the extension pack in safe mode? I had presumed that the problem was due to UAC, but if it is affecting Windows XP, maybe it is something else. Anyway, installing in safe mode worked for Windows 7, why not give it a try in XP?

in reply to:  1 ; comment:4 by cccv, 13 years ago

Replying to lnoland:

I figured out a workaround for my problem. ... I then decided to try installing from Safe Mode -- that worked fine....

Overview

I found a workaround: Temporarily disable anti-virus software.

Details

I use:

  • Microsoft Windows XP Home Edition, Service Pack 3 (SP3)
  • VirtualBox 4.0.4r70112
  • Norton Security Suite 3.8.0.41.

When I attempted to install the extension pack, I encountered the VERR_ACCESS_DENIED error that you detailed.

Your "Safe Mode" workaround inspired me to:

  1. Temporarily disable anti-virus functionality: Select "Disable AntiVirus Auto-Protect" using the context ("right-click") menu of the Norton Security Suite system-tray icon.
  2. Try again to install the VirtualBox extension pack, and observe the installation process complete successfully.
  3. Enable anti-virus functionality.
  4. Launch VM in VirtualBox, and note the absence of warnings about the lack of USB 2.0 support.

in reply to:  4 comment:5 by elfsoft, 13 years ago

Replying to cccv:

Replying to lnoland:

I figured out a workaround for my problem. ... I then decided to try installing from Safe Mode -- that worked fine....

I found a workaround: Temporarily disable anti-virus software.

I use:

  • Microsoft Windows XP Home Edition, Service Pack 3 (SP3)
  • VirtualBox 4.0.4r70112
  • Norton Security Suite 3.8.0.41.

I can confirm solution to this problem regarding disabling anti-virus software. I use:

  • Microsoft Windows 7 Professional
  • VirtualBox 4.0.4r70112
  • Dr.Web 6.0.5.02020

I also thought about UAC when encountered this error while trying to install extension pack, and also disabling UAC didn't help. However, after I read a workaround about disabling anti-virus software, I tried it on my Dr.Web and had a success in installing extension pack. Thus there were no need in rebooting into safe mode (even no need to stop running VM's). Thanks a lot for finding this solution.

comment:6 by Jeff Dwork, 13 years ago

Same problem and solution (disable anti-virus software)

Microsoft Windows XP SP3 VirtualBox 4.0.4r70112 (also 4.0.2r69518) Norton Security 4.3.0.5

Please put a note on the download page entry for the extension pack advising users to disable anti-virus software before installing.

in reply to:  description comment:7 by gquincy, 12 years ago

Replying to lnoland:

I installed VirtualBox 4.0.0 onto Windows 7 Professional and attempted to install the extension pack: Oracle_VM_VirtualBox_Extension_Pack-4.0.0-69151.vbox-extpack The attempt failed with:

The installer failed with exit code 1: VBoxExtPackHelperApp.exe: error: Failed to rename the temporary directory to the final one: VERR_ACCESS_DENIED('G:\PROGRA~3\Oracle\VIRTUA~1/ExtensionPacks/Oracle_VM_VirtualBox_Extension_pack-_-inst-4100' -> 'G:\PROGRA~3\Oracle\VIRTUA~1/ExtensionPacks/Oracle_VM_VirtualBox_Extension_Pack')

a screencap of the error dialog is attached. (NOTE: My boot drive (C:) is a small solid-state drive so I have the user account directories on my G: drive and install most software there as well.)

I have a similar problem with the extension pack of version 4.1.18-78361.

OS is Win7 x64.

Virus Protection is Micro Trend OfficeScan.

This error occurs when I tried to install the extension pack:

The installer failed with exit code 1: VBoxExtPackHelperApp.exe: error: Failed to rename the extension pack directory: VERR_ACCESS_DENIED 
rcExit=1.
Fehlercode:	E_FAIL (0x80004005)
Komponente:	ExtPackManager
Interface:	IExtPackManager {3295e6ce-b051-47b2-9514-2c588bfe7554}

No matter whether the virus protection was ON or OFF.

In the program directory under:

VirtualBox\ExtensionPacks

there was a directory named:

Oracle_VM_VirtualBox_Extension_Pack-_-uninst

I renamed it

and the installation (with OfficeScan = ON) worked fine.

May be this will help some others, too.

Last edited 12 years ago by gquincy (previous) (diff)

comment:8 by Frank Mehnert, 12 years ago

Description: modified (diff)

Interesting. Which file system is used on the hard disk g: ?

comment:9 by odupuy, 11 years ago

See my comments in https://www.virtualbox.org/ticket/10906#comment:6

You may have an "Oracle_VM_VirtualBox_Extension_Pack - uninst" directory present in which case the installer cannot rename the existing "Oracle_VM_VirtualBox_Extension_Pack" to it. Delete/rename the uninst folder and retry. Have admin in rights to do it.

The installer should take care of this.

comment:10 by dd-b, 11 years ago

Had what appears to be the same symptom today when attempting to upgrade extensions 4.2.8 to 4.2.10. In my case the problem appeared to be having a VM running -- I got various directory and file access errors when trying to upgrade while a VM was running, which went away when I stopped the VM. (The exact error depended on whether the upgrade file was on a local disk or a network disk, it appears.) Anti-virus wasn't an issue; I'm using Microsoft Security Essentials and did not need to disable it. There was no *-uninst file lying around anywhere that I could try deleting.

I intend to attach my log file with text copies of the two versions of the error messages I got, identified as to which situation I got them in. If it turns out I can't, I guess I'll come back and put it in as a new comment as text.

by dd-b, 11 years ago

Attachment: virtualboxextensions.org added

Text copy of error messages from failures to upgrade extensions

comment:11 by Ruslan Tagirov, 10 years ago

Same problem with extpack 4.3.10:

I've updated to Virtual Box 4.3.10 Can't install Extpack 4.3.10, contantly getting the same error:

The installer failed with exit code 1: VBoxExtPackHelperApp.exe: error: Failed to rename the temporary directory to the final one: VERR_ACCESS_DENIED ('C:\Program Files\Oracle\VirtualBox/ExtensionPacks/Oracle_VM_VirtualBox_Extension_Pack-_-inst-10968' -> 'C:\Program Files\Oracle\VirtualBox/ExtensionPacks/Oracle_VM_VirtualBox_Extension_Pack')

rcExit=1.

Код ошибки: E_FAIL (0x80004005)
Компонент: ExtPackManager
Интерфейс: IExtPackManager {3295e6ce-b051-47b2-9514-2c588bfe7554}

Tried with VboxManage cli tool and also got an error:

C:\Program Files\Oracle\VirtualBox>VBoxManage.exe extpack install c:\temp\Oracle_VM_VirtualBox_Extension_Pack-4.3.10-93012.vbox-extpack
0%...
Progress state: E_FAIL
VBoxManage.exe: error: Failed to install "c:\temp\Oracle_VM_VirtualBox_Extension_Pack-4.3.10-93012.vbox-extpack"
VBoxManage.exe: error: The installer failed with exit code 1: VBoxExtPackHelperApp.exe: error: Failed to rename the temporary directory to the final one: VERR_ACCESS_DENIED ('C:\Program Files\Oracle\VirtualBox/Ext
ensionPacks/Oracle_VM_VirtualBox_Extension_Pack-_-inst-6100' -> 'C:\Program Files\Oracle\VirtualBox/ExtensionPacks/Oracle_VM_VirtualBox_Extension_Pack')
VBoxManage.exe: error: rcExit=1
VBoxManage.exe: error: Details: code E_FAIL (0x80004005), component ExtPackManager, interface IExtPackManager
VBoxManage.exe: error: Context: "int __cdecl handleExtPack(struct HandlerArg *)" at line 1143 of file VBoxManageMisc.cpp

I'm running the installation as local Admin, clean install. I've set all permissions to the folder 'C:\Program Files\Oracle\VirtualBox\ExtensionPacks' to ALL users.

As far as I can see, the Helper app creates the temp subfolder in 'C:\Program Files\Oracle\VirtualBox\ExtensionPacks' but then quits with an erorr and deletes this folder.

Tried reinstall VirtualBox, VboxManage extpack cleanup, rebooting, etc. Have started the process with Admin privileges both in GUI and command line. Tried disabling antivirus.

Doesn't help.

OS: Windows 7 64bit SP1

comment:12 by markwkjr, 10 years ago

I corrected this issue with file permissions. On my Oracle\VirtualBox folder, I gave MACHINENAME\Users Full Control and it corrected the problem.

Windows 7 SP1 64-bit

Last edited 10 years ago by markwkjr (previous) (diff)

in reply to:  12 comment:13 by Hawk McDuck, 9 years ago

Replying to markwkjr:

I corrected this issue with file permissions. On my Oracle\VirtualBox folder, I gave MACHINENAME\Users Full Control and it corrected the problem.

Windows 7 SP1 64-bit

As markwkjr states above, I did exactly the same thing and was able to downgrade my Extpack from 4.3.20 to 4.3.12.

in reply to:  6 comment:14 by Yotta, 9 years ago

Replying to JeffDwork:

Same problem and solution (disable anti-virus software)

Microsoft Windows XP SP3 VirtualBox 4.0.4r70112 (also 4.0.2r69518) Norton Security 4.3.0.5

Please put a note on the download page entry for the extension pack advising users to disable anti-virus software before installing.

Thanks JeffDwork ! Your information solve my problem ! I was try to install extension pack for VirtualBox Version 4.3.20 and same problem : ACCESS_DENIED ! - I just disabled AVG 2015 and ok ! Extension Pack installed in Windows 7 64bits

comment:15 by Technologov, 9 years ago

+1.

Same issue with Windows 7 Pro x64 host.

-Technologov.

Version 0, edited 9 years ago by Technologov (next)

comment:16 by ourson, 9 years ago

(From Ourson 08/09/2015) Yes. Same issue with Win7 Pro x64 PC. Vbox 5.0.0-r101573

Failed to install the Extension Pack C:/Temp/Oracle_VM_VirtualBox_Extension_Pack-5.0.0-101573.vbox-extpack.

The installer failed with exit code 1: VBoxExtPackHelperApp.exe: error: Failed to rename the temporary directory to the final one: VERR_ACCESS_DENIED ('C:\Program Files\Oracle\VirtualBox/ExtensionPacks/Oracle_VM_VirtualBox_Extension_Pack-_-inst-5688' -> 'C:\Program Files\Oracle\VirtualBox/ExtensionPacks/Oracle_VM_VirtualBox_Extension_Pack')

rcExit=1.

Result Code: E_FAIL (0x80004005) Component: ExtPackManagerWrap Interface: IExtPackManager {edba9d10-45d8-b440-1712-46ac0c9bc4c5}

comment:17 by ourson, 9 years ago

(From Ourson 08/09/2015) I got the above issue resolved by the following 2 changes. Hope it helps.

  1. Disabled security anti-virus firewall;
  2. Ran Extension packs in cmd Prompt as administrator.

comment:18 by capt_midnight, 9 years ago

The last suggest almost worked for me... Here's what I had to do and I hope it helps as well:

  1. Disabled security anti-virus firewall
  2. Shutdown All VMs and VirtualBox Manager
  3. Open CMD prompt as Administrator
  4. CD to Oracle\VirtualBox directory
  5. Run: "vboxmanage extpack cleanup"
  6. Run: Oracle_VM_VirtualBox_Extension_Pack-5.0.2-102096.vbox-extpack (or whatever ver you're using)

comment:19 by AlisterWhiteHat, 8 years ago

wow, SIX YEARS and such a simple bug is still here...

after upgrade to versión 5.1.2 r108956, extension pack is not installable anymore in my windows 7 ultimate.

Tested so far: safe mode, disabling antivirus, deliberately disabling UAC, cleaning up extpacks and installing through elevated CMD...

and nothing.

I suffered this nasty bug lots of times, long time ago, but it always could be solved going into safe mode.

Not this time.

Things get worse for developers at this project. I think they really need a helping hand in order to correctly manage installations in windows systems

Last edited 8 years ago by AlisterWhiteHat (previous) (diff)

comment:20 by Frank Mehnert, 8 years ago

We were never able to reproduce this problem. Try to disable your AV stoftware while you install the Extension Pack.

comment:21 by mountainshirt, 8 years ago

I just experienced this exact problem on a relatively new Windows 10 Pro 64-bit machine.

The answer was to disable "real time scanning" by McAfee Livesafe anti-virus 14.0.

But other programs are able to successfully install and make changes while real time scanning / virus protection are running. Another problem is that some users may not figure out that they need to take the unusual step of disabling their virus scanner in order to do something basic like enable USB 3.0 with their virtual machine.

Frank - you can reproduce this error by installing a free trial of Livesafe yourself, downloaded from the McAfee website. Can you guys iron this out? (You'll see how VirtualBox extensions is one of the only activities that runs into this sort of problem.)

Thank you.

p.s. I really enjoy your product. VirtualBox is very useful.

Error below:

Failed to install the Extension Pack C:/Users/[Name]/Downloads/Oracle_VM_VirtualBox_Extension_Pack-5.1.2-108956.vbox-extpack.

The installer failed with exit code 1: VBoxExtPackHelperApp.exe: error: Failed to rename the temporary directory to the final one: VERR_ACCESS_DENIED ('C:\Program Files\Oracle\VirtualBox\ExtensionPacks\Oracle_VM_VirtualBox_Extension_Pack-_-inst-12708' -> 'C:\Program Files\Oracle\VirtualBox\ExtensionPacks\Oracle_VM_VirtualBox_Extension_Pack')

rcExit=1.

Result Code: E_FAIL (0x80004005) Component: ExtPackManagerWrap Interface: IExtPackManager {edba9d10-45d8-b440-1712-46ac0c9bc4c5}

Virtual Box error on installing extensions - virus scanner related

Last edited 8 years ago by mountainshirt (previous) (diff)

by mountainshirt, 8 years ago

Virtual Box error on installing extensions - virus scanner related

comment:22 by RichB, 7 years ago

Windows 10 Pro - latest version of Virtual Box installed. The ext pack hits the exact error as the screenshot above. Disabled McAfee Real Time Scanning and was able to install the ext pack successfully. A colleague has reported same issue with Windows 10 running Symantec anti-v suite. The install process for ext packs really needs to be tightened-up to handle standard anti-v scanning programs OR a manifest note / install pop-up recommending temporary disable of anti-v processes.

comment:23 by timblaktu, 7 years ago

+1 for the problem being caused by McAfee Real Time Scanning. Here on Win10Pro, Dell XPS 15.

in reply to:  22 comment:24 by afarag, 7 years ago

Replying to RichB:

Windows 10 Pro - latest version of Virtual Box installed. The ext pack hits the exact error as the screenshot above. Disabled McAfee Real Time Scanning and was able to install the ext pack successfully. A colleague has reported same issue with Windows 10 running Symantec anti-v suite. The install process for ext packs really needs to be tightened-up to handle standard anti-v scanning programs OR a manifest note / install pop-up recommending temporary disable of anti-v processes.

+1 for the problem being caused by McAfee Real Time Scanning. Here on Windows 8.1 Pro.

comment:25 by chumaito, 7 years ago

Same for me: Windows 10 Anniversary Update, VirtualBox 5.1.14, same problem, found this ticket by searching text from the popup (kudos on that copy button!).

Just adding a note to that dialog that malware scanners have been known to cause problems with extension pack installation would have been sufficient. The routine problems have gone away, and now I forget to turn it off and try again. I believe others do as well.

comment:26 by maapinho, 7 years ago

Hi all, After changing PCs I bumped into this problem. I too had MCAfee livesafe but couldn't turn it off as it was trial expired in the new computer. I solved the problem by uncompressing the contents of the extension pack file into the "\VirtualBox\ExtensionPacks\Oracle_VM_VirtualBox_Extension_Pack" directory. Restarted Virtualbox and works perfectly.

Details here: https://goo.gl/nfiWHT

comment:27 by sickboy, 7 years ago

Same issue for me (Windows 7 Prof, VB 5.1.26, MC affee enterprise). while we have also other issues with the virus scanner, it's still a bureaucratic effort to disable it, I tried to uncompressed the content of the extension file into (new) folder: ..\ExtensionPacks\Oracle_VM_VirtualBox_Extension_Pack ..and that worked around the pb for me too.

comment:28 by Dave_uk_1, 7 years ago

I was running on a corporate host machine where I was not able to disable AV. Don't know if that was the problem or not. Quickest solution that worked for me was:

  • Delete the ExtensionPacks\ folder.
  • Retry the extension pack install.

All worked fine. In my case the ExtensionPacks folder was empty after the failed install.

comment:29 by Sachin Lala, 7 years ago

For me the solution was as simple as running the Virtual Box Manager as 'administrator'.

comment:30 by sebus, 6 years ago

Nothing to do with AV. The issue re-appeared in latest 5.2.6-120293

Solution: just give Users full access to C:\Program Files\Oracle\VirtualBox\ExtensionPacks

comment:31 by Socratis, 6 years ago

@sebus That's not a solution, not even close. That's a hack, and a dangerous one if I may say so. The issue, as has been mentioned multiple times, has absolutely nothing to do with VirtuaBox itself.

Most of the times it's some overzealous antivirus. Often enough it is the wrong permissions from people thinking that changing the system/program_files permissions is a good idea.

Try to replicate this on a fresh, clean installation. You won't be able to...

comment:32 by PierrePotame, 6 years ago

I just encountered this problem on a Windows 7 host. It was the first time I had installed/upgraded/downgraded VirtualBox since switching to Kaspersky Anti-Virus Free. Temporarily disabling Kaspersky's "File Anti-Virus" component averted the problem.

Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use