How to Move a VirtualBox VM to another location

After you move a VirtualBox VM to another folder or drive using File Explorer, the Oracle VM VirtualBox Manager fails to detect the new location and thus can’t load the VM. The following error message occurs when you load a VM after moving the corresponding VM folder or the .nvram, .vbox, .vbox-prev, and the .vdi file to another location.

VM Name: Windows 11 Pro

Could not open the medium 'E:\VirtualBox VMs\Windows 11 Pro\Windows 11 Pro.vdi'.
VD: error VERR_FILE_NOT_FOUND opening image file 'E:\VirtualBox VMs\Windows 11 Pro\Windows 11 Pro.vdi' (VERR_FILE_NOT_FOUND).
Result Code:
E_FAIL (0X80004005)
Component:
MediumWrap
Interface:
IMedium {ad47ad09-787b-44ab-b343-a082a3f2dfb1}

oracle vm error file not found

The inaccessible VM is flagged in red in the VirtualBox Manager.

oracle vm - add vbox, vdi

Resolution

To resolve the issue, remove the corresponding VM and re-add it.

Right-click on the inaccessible VM and choose “Remove.”

oracle vm - remove vbox, vdi

Choose “Delete all files” or “Remove only” when prompted.

oracle vm - remove VM

This removes the problematic VM.

Now, click “Add“.

oracle vm - add vbox, vdi



Browse to select the VM (i.e., the .vbox file) you want to add manually.

oracle vm - add vbox, vdi

That’s it. It adds the selected VM to the VirtualBox Manager listing.

oracle vm - add vbox, vdi

RELATED: See Moving a VM or a Disk Image to a New Location and Removing and Moving Virtual Machines in the Oracle VirtualBox knowledgebase for more information.


Additional Note

You can choose the global default VM location by clicking File and selecting “Preferences” in the VirtualBox Manager interface.

oracle virtualbox preferences

Changing the Default Machine Folder path applies to any VMs you create in the future. The setting doesn’t apply to existing VMs.


One small request: If you liked this post, please share this?

One "tiny" share from you would seriously help a lot with the growth of this blog. Some great suggestions:
  • Pin it!
  • Share it to your favorite blog + Facebook, Reddit
  • Tweet it!
So thank you so much for your support. It won't take more than 10 seconds of your time. The share buttons are right below. :)

Ramesh Srinivasan is passionate about Microsoft technologies and he has been a consecutive ten-time recipient of the Microsoft Most Valuable Professional award in the Windows Shell/Desktop Experience category, from 2003 to 2012. He loves to troubleshoot and write about Windows. Ramesh founded Winhelponline.com in 2005.

Leave a Comment