Your VirtualBox virtual machine suddenly shows as Inaccessible with a Document is empty error, and you cannot start it. This happens because VirtualBox cannot read the .vbox configuration file for that VM. The file is either empty, corrupted, or missing entirely. Your actual virtual disk data (the .vdi or .vmdk file) is almost always untouched. The steps below walk you through recovering your VM.

What Causes the VirtualBox VM Inaccessible Error
VirtualBox stores each virtual machine’s settings in a .vbox file, which is an XML document. When this file gets corrupted or wiped, VirtualBox cannot load the VM and marks it as inaccessible.
Why does this happen:
- A sudden system shutdown or power loss while VirtualBox was writing the config
- A disk write error or storage failure on the host drive
- Antivirus software quarantining or modifying the
.vboxfile - A failed VirtualBox update or migration to a new host machine
- Accidental deletion or overwrite of the
.vboxfile
Fix 1: Replace the .vbox File with the .vbox-prev Backup
Every time VirtualBox saves your VM settings, it creates a .vbox-prev backup of the previous state. This is the fastest fix when your .vbox file is empty or corrupted.
- Open File Explorer and navigate to your VM folder. The default path is:
C:\Users\YourUsername\VirtualBox VMs\VMName\ - Look for a file named
VMName.vbox-previn the same folder. - Copy
VMName.vbox-prevand rename the copy toVMName.vbox, overwriting the broken file. - Open VirtualBox and check whether the VM loads correctly.
If VirtualBox still shows the VM as inaccessible after this, move to the next fix.
Fix 2: Re-Register the VM Without Removing It
When VirtualBox loses the pointer to your VM’s .vbox file but the file itself is fine, you can re-register the VM directly without removing anything. This avoids any risk of accidentally selecting Delete All Files.
- Open Oracle VM VirtualBox Manager.
- Click the Machine menu and choose Open (not Add).
- In the file dialog, navigate to your VM folder:
C:\Users\YourUsername\VirtualBox VMs\VMName\ - Select the
.vboxfile (for example,Windows 11.vbox) and click Open. - The VM reappears in the list with a normal status.
- Try starting it to confirm it works.
Fix 3: Manually Recreate the .vbox Configuration File
If neither the .vbox file nor the .vbox-prev file is recoverable, you can recreate the configuration manually. This requires you to know your original VM settings such as OS type, RAM, and the path to your virtual disk.
- Open Notepad or any text editor.
- Paste the following XML template and fill in your VM details:
<?xml version="1.0"?>
<VirtualBox xmlns="http://www.virtualbox.org/" version="1.19-windows">
<Machine uuid="{YOUR-UNIQUE-UUID}" name="VMName" OSType="Windows11_64" snapshotFolder="Snapshots" lastStateChange="2024-01-01T00:00:00Z">
<MediaRegistry>
<HardDisks>
<HardDisk uuid="{DISK-UUID}" location="VMName.vdi" format="VDI" type="Normal"/>
</HardDisks>
</MediaRegistry>
<Hardware>
<CPU count="2"/>
<Memory RAMSize="4096"/>
<Display VRAMSize="128"/>
</Hardware>
<StorageControllers>
<StorageController name="SATA" type="AHCI" PortCount="1">
<AttachedDevice type="HardDisk" port="0" device="0">
<Image uuid="{DISK-UUID}"/>
</AttachedDevice>
</StorageController>
</StorageControllers>
</Machine>
</VirtualBox>- Replace
VMNamewith your actual VM name, set the correctOSType, and pointlocationto your existing.vdior.vmdkfile. - For the UUID values, generate new ones using PowerShell:
[guid]::NewGuid()- Save the file as
VMName.vboxinside your VM folder. - Add the VM back to VirtualBox using Machine > Add and test it.
Fix 4: Repair the Global VirtualBox.xml File
If all your VMs show as inaccessible at once, or VirtualBox itself opens with a Document is empty error, the problem is not in any individual VM. The global registry file at C:\Users\YourUsername\.VirtualBox\VirtualBox.xml is corrupted. Renaming it forces VirtualBox to generate a fresh one, then you re-register your VMs manually.
- Close VirtualBox completely. Open Task Manager and confirm no
VirtualBox.exeprocess is running. - Open File Explorer and navigate to
C:\Users\YourUsername\.VirtualBox\. - Rename
VirtualBox.xmltoVirtualBox.OLD. - If a file named
VirtualBox.xml-prevexists in the same folder, rename it toVirtualBox-prev.OLDas well. - Launch VirtualBox again. It creates a new empty
VirtualBox.xmland shows no VMs. - Use Machine > Open to browse to each VM’s
.vboxfile and re-add them one by one. - Check whether all VMs load correctly.
Fix 5: Restore the VM Folder to Its Original Location (VERR_PATH_NOT_FOUND)
The VERR_PATH_NOT_FOUND error appears when you move, rename, or copy the VM folder to a different location after adding it to VirtualBox. VirtualBox still looks for the folder at the old path and cannot find it.
- Open Oracle VM VirtualBox Manager and hover your mouse over the inaccessible VM. The tooltip shows the exact folder path VirtualBox expects, for example
D:\VirtualBox VMs\Windows 11. - Open File Explorer and search your drives, Desktop, Downloads, or any external storage to find the current location of your VM folder with the
.vboxfile. - Once you find it, move the entire VM folder back to the exact path shown in the tooltip. Make sure the folder name also matches exactly.
- If you renamed the folder, right-click it and select Rename to restore the original name.
- Reopen VirtualBox and check whether the VM is accessible again.
If moving the folder back is not possible (for example, the original drive is gone), use Machine > Open to re-register the VM from its new location instead.
Fix 6: Check File Permissions on the VM Folder
If VirtualBox cannot read or write to the VM folder, it may report the VM as inaccessible even when the .vbox file looks intact.
- Open File Explorer and right-click your VM folder.
- Select Properties, then go to the Security tab.
- Click Edit and make sure your user account has Full Control.
- Apply the changes and restart VirtualBox.
You can also reset permissions from an elevated Command Prompt using icacls:
icacls "C:\Users\YourUsername\VirtualBox VMs\VMName" /grant YourUsername:F /TReplace YourUsername and VMName with your actual values.
Fix 7: Disable Antivirus Interference
Antivirus software sometimes locks or modifies VirtualBox configuration files, especially on first launch or after a signature update.
- Open your antivirus or Windows Security settings.
- Add your VirtualBox VMs folder to the exclusions or exceptions list.
- The default path to exclude is
C:\Users\YourUsername\VirtualBox VMs\. - Restart VirtualBox and check if the VM recovers.
Fix 8: Repair or Reinstall VirtualBox
A broken VirtualBox installation can corrupt how it reads and writes VM configuration files. Repairing it restores missing components without removing your VMs.
- Press Win + R, type
appwiz.cpl, and press Enter. - Find Oracle VirtualBox in the list and click Change.
- Select Repair and let the installer finish.
- If repair does not help, uninstall VirtualBox completely, download the latest version from virtualbox.org, and reinstall.
- After reinstalling, add your VMs back using Machine > Add.
Related Guides
- How to Fix VirtualBox Error in SUPR3HardenedWinReSpawn
- Virtual Media Manager Not Showing in VirtualBox (How to Fix)
- How to Install and Set Up VirtualBox on Windows 11
Frequently Asked Questions
Why do all my VMs show as Inaccessible at the same time?
When every VM in VirtualBox becomes inaccessible simultaneously, the global registry file `VirtualBox.xml` in `C:\Users\YourUsername\.VirtualBox\` is corrupted, not the individual VMs. Rename `VirtualBox.xml` to `VirtualBox.OLD`, restart VirtualBox so it builds a fresh registry, then re-add each VM using Machine > Open.
What does the VERR_PATH_NOT_FOUND error mean in VirtualBox?
It means VirtualBox cannot find the VM folder at the path it recorded. This happens when you move or rename the VM folder after adding it to VirtualBox. Hover over the inaccessible VM to see the path VirtualBox expects, move the folder back to that exact location, and the error clears.
Why does my VirtualBox VM show as Inaccessible after moving it to a new PC?
VirtualBox links VM entries to specific file paths. When you move the VM folder to a new machine or a different drive letter, VirtualBox loses the reference. Remove the inaccessible entry using Remove Only, then re-add it by pointing VirtualBox to the new location of the `.vbox` file.
Can I recover my virtual disk data even if the .vbox file is missing?
Yes. The virtual disk file (`.vdi` or `.vmdk`) stores your actual data separately from the configuration. As long as the disk file is intact, you can recreate the `.vbox` config file and reattach the disk.
What is the .vbox-prev file in my VM folder?
VirtualBox automatically saves a backup of your VM settings as `.vbox-prev` before each config change. If your `.vbox` file gets corrupted, renaming `.vbox-prev` to `.vbox` often restores the VM instantly.
Will reinstalling VirtualBox delete my virtual machines?
No. VirtualBox stores VM files in your user profile folder, not inside the VirtualBox installation directory. Reinstalling the application does not touch your VM files. You do need to re-add your VMs after reinstalling using Machine > Add.
Does this error mean my virtual machine data is lost?
Not in most cases. The Inaccessible error points to a configuration file problem, not a virtual disk failure. Your VM data inside the `.vdi` or `.vmdk` file is usually safe.
