VirtualBox: The Quick Solution to “Extension Pack Installer Failed. VERR_ACCESS_DENIED”

Continuing on with the PC migration saga and getting my new toy working a few days ago I bumped into a problem whose solution I share here. This time, it was with Virtualbox Extension Packs.

Summary

Problem: It was impossible to install Virtualbox Extension Packs. I got the error:“The installer failed with exit code 1: VBoxExtPackHelperApp.exe: error: Failed to rename the temporary directory to the final one: VERR_ACCESS_DENIED

Solution:

  1. Decompress the contents of the .vbox-extpack file to a specific Virtualbox folder:
    C:\Program Files\Oracle\VirtualBox\ExtensionPacks\Oracle_VM_VirtualBox_Extension_Pack
  2. Restart Virtualbox

Details for those with more time

After a small fight to have the VMs and virtual hard disks all sorted I could not run some of them with the error:

Failed to open VM

---------------------------------------------------
Failed to open a session for the virtual machine ....

Implementation of the USB 2.0 controller not found!
Because the USB 2.0 controller state is part of the saved VM state, the VM cannot be started. To fix this problem, either install the 'Oracle VM VirtualBox Extension Pack' or disable USB 2.0 support in the VM settings.
 Note! This error could also mean that an incompatible version of the 'Oracle VM VirtualBox Extension Pack' is installed (VERR_NOT_FOUND).
 Result Code: E_FAIL (0x80004005)
 Component: ConsoleWrap
 Interface: IConsole {872da645-4a9b-1727-bee2-5585105b9eed}
---------------------------------------------------

Reading through, its clear the VM needs Extension Packs for Virtualbox because it had them and uses its features from the last time it was run. I downloaded the appropriate file for my version (5.1.18), double clicked on it to install and:

Failed to Install Extension Packs

---------------------------------------------------
Failed to install te Extension Pack...
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-7052' -> '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}
---------------------------------------------------

Our dear friend Google took me to a 2011 ticket where the comments focused on writing permissions to the Extension Pack folder. The solution to that problem was to either change the user’s permissions in the folder to Full Control or to disable anti-virus software.

But what if the proposed solutions don’t work or you don’t have enough privileges to make those changes? There was a single Virtualbox forum post that caught my eye. In it, the solution was to uncompress the contents of .vbox-extpack file (the extension pack installer) to a specific folder of the Virtualbox installation. That was the solution I decided to adopt.

The Extension Pack file is compressed in “2 levels”. In my specific case, 5.1.18, the internal file structure was:

Oracle_VM_VirtualBox_Extension_Pack-5.1.18-114002.vbox-extpack
 +--Oracle_VM_VirtualBox_Extension_Pack-5.1.18-114002
    +-- Extension pack files and folders
    +-- ...
    +-- ...

Inside the Virtualbox installation folder (C:\Program Files\Oracle\VirtualBox\ExtensionPacks) create a folder called Oracle_VM_VirtualBox_Extension_Pack. This is the folder where the uncompressed contents of the extension pack should be copied to.

The end result:

vboxextpacks installed

After copying the files, its just a matter of restarting Virtualbox and confirming that the extension pack was installed in File – Preferences – Extensions.

extensions installed

The “sick” VMs are now “cured”.

Lubuntu starting

Lubuntu running

Success!!!

What are Virtualbox Extension Packs?

Extension Packs were created in Virtualbox 4 as a new way to extetend the functionality of the VirtualBox base package. Currently, Oracle provides one extension pack and provides added functionality that includes:

  • Virtual USB2.0 and 3.0 devices
  • Virtualbox Remote Desktop Protocol VRDP
  • Host webcam passthrough
  • Virtual hard disk encryption

15 Comments VirtualBox: The Quick Solution to “Extension Pack Installer Failed. VERR_ACCESS_DENIED”

  1. alexx187

    Thanks a ton for the solution!
    Saved me a couple of hours.
    I have a McAfee installed which I am not authorized to turn off.
    I used Double Commander running it as an admin user to extract the files. But created the “Oracle_VM_VirtualBox_Extension_Pack” folder first!

    Reply
    1. Mario Pinho

      Hi Alex, glad it was helpful. Only after trying this solution I found out that in my case it was also McAfee doing the “damage”

      Reply
    1. Craig

      Daniel
      Have you figured out how to make this work in Windows 10? I have not found an answer I can make work.

      Reply
  2. Tom Sommerville

    I’m not sure if this is a universal fix, but all I had to do was create the “Oracle_VM_VirtualBox_Extension_Pack” folder under the empty “VirtualBox/ExtensionPacks” folder and run the installer for the extension pack. The prompt that appeared was for a ‘downgrade’ instead of an install, but clicking through and running the install worked like a charm.

    Keep in mind I had already set Full Control to the machine Users account on the VirtualBox folder, so that may have had an impact, but the access rights alone did not allow me to run the installer. I could not disable my anti-virus (corporate system).
    Thanks for posting your fix, it led me to my solution 🙂

    Reply
  3. Mike Harris

    I see your fix is for windows. I have the problem using Linux mint. Any advice??

    Reply
    1. Mario Pinho

      Hi. I am not a regular Linux user but a similar concept should apply. The folder where extension packs are stored should be different though

      Reply

Leave a Reply

Your email address will not be published. Required fields are marked *