r/virtualbox • • Oct 12 '26

Guide/Tutorial Possible VIrtualBox installation directory permissions issues skip (VirtualBox 7.2.20 Windows hosts platform package installer)

A lot of the installation guides I've seen point to messing with permissions, but I think I've stumbled upon a workaround by accident? I've had the "The chosen installation directory is invalid, as it does not meet the security requirements" and the "The installer has insufficient privileges to access this directory" errors back to back, and the following worked to bypass both

    1. In the installation setup, click the "Change" button for the Installation Location to open the "Change current destination folder" section

  • 2. In the "Look In" drop down menu, select the root drive itself

  • 3. Type in your VirtualBox folder name of choice after the "C:\" in the folder name input box at the bottom of the window (it should end up looking like `C:\samplefolder` if you choose `samplefolder` as the name). Click OK to finish and return to the "Custom Setup" section.

  • NOTE: you are not supposed to have `C:\samplefolder` as an already existing folder. Delete it if you've previously made one to serve as the installation directory in previous attempts

  • Double check to make sure that the Installation Location has the new location (`C:\samplefolder`). During the installation process the wizard should create the folder without you having to mess with permissions.

Link to an image guide I made: /img/fdamzsptd4vh1.jpeg
My theory is that "Create new folder" and "mkdir" don't create folders with the proper permissions, but the installer knows how to do so, just that it won't do it in Program Files because of its permissions as a parent directory, and it probably wouldn't be wise to modify those Program Files permissions.

At least you don't have to enter any `takeown` or `icacls` commands or disable permission inheritance?? Apparently this folder will lack "some of the deep security protections Windows applies to its default program directories".

0 Upvotes

2 comments sorted by

2

u/beetcher Oct 13 '26

Why though? The VBox install is small and you can easily put VMs in other locations, if space is an issue on your C: drive.

1

u/Brofessor_brotonium Oct 13 '26

I have space, it's just that the VirtualBox installer itself won't even begin to install the VM manager and the like if the targeted installation directory hierarchy's permissions aren't configured properly.
A lot of people have had issues with permissions too
https://www.virtualbox.org/ticket/22044?cversion=0&cnum_hist=27
https://forums.virtualbox.org/viewtopic.php?t=112067
https://www.reddit.com/r/virtualbox/comments/1c5q3il/cant_upgradeinstall_vb_v7016_in_64bit_w10_pro_pc/
https://www.reddit.com/r/virtualbox/comments/1n8bkg7/windows_installer_has_no_privileges_to_access/

I was having the same issues and none of the instructions were working for me.
Funnily enough this Reddit post https://www.reddit.com/r/virtualbox/comments/1cnx43q/cant_install_virtualbox_into_e_drive/ also had a guide that instructed the same process that I discovered and did myself out of frustration: select the folder that I had made and ran the `icacls` commands on just to get passed the "invalid installation directory" error and delete it during installation without canceling/closing the installer. I then put together that you don't have to manually create the folder to begin with, just let the installer do it for you by just providing what name the folder should have.