If you want to move the VirtualBox folder that contains all your virtual machines to a different location, you have two options: the official one and the fast one.

Michael Pietroforte

Michael Pietroforte is the founder and editor of 4sysops. He is a Microsoft Most Valuable Professional (MVP) with more than 30 years of experience in IT management and system administration.

The official way to move the VirtualBox folder is to first export your virtual machines to an OVA file and then import the OVA file at the new location:

  1. Click File > Export Appliance.
    Export Virtual Appliance
  2. While holding the CTRL key, click the virtual machines you want to export.
  3. Choose the location of the OVA file, click Next, and then export.
  4. Change the Default Machine Folder under File > Preferences > General.
    Default Machine Folder
  5. Click File > Important Appliance, select the OVA file, and import.

The downside of this option is that the export and import of the OVA file is extremely slow and error prone.

The faster option is to simply move the VirtualBox folder with the virtual machines to a new location with File Explorer:

  1. You can usually find the VirtualBox folder in your Documents folder. If you can’t find the folder, check File > Preferences > General > Default Machine Folder.
  2. Ensure that the VirtualBox VM Manager is closed and all VMs are offline. Then, move the VirtualBox folder to the new location with File Explorer.
  3. Open the VM Manager and remove all VMs that are marked as inaccessible: hold the CTRL key and click all VMs, and then right-click and select Remove.
    VirtualBox inaccessible VMs
  4. Click File > Virtual Media Manager and remove all hard drives, optical disks, and floppy disks.
    Virtual Media Manager
  5. Navigate to each folder in the new VirtualBox directory in File Explorer and double-click the VBOX file to import the corresponding VM.
  6. Change the Default Machine folder under File > Preferences > General.

Depending on how many VMs you have, step 5 can mean a lot of click-click; however, in my experience, it will always be much faster than with the export/import method.

Win the monthly 4sysops member prize for IT pros


Related Posts

  1. Charles Butcher 3 years ago

    Thank you for this good clear explanation. It worked well for me, and it certainly sounds easier than the official method.


  2. Michael Pietroforte 3 years ago



  3. You didn't say, but does this work even if you are moving from one OS to another? In my case I have a handful of VirtualBox VMs on an Linux computer that I want to move to a newly installed VirtualBox on a Mac (both machines have Intel CPUs).


  4. Michael Pietroforte 3 years ago

    I didn't try that, but I don't see any reason why this shouldn't work.


  5. Sally 1 year ago

    The 2nd method was easy and worked. Thanks for taking the time to write this!


  6. Steve 7 months ago

    Thanks for this.  Was a great help!


  7. JoeyH 3 months ago

    Thanks for the article. Just curious - if the machine is in a saved state, can the virtual machine be moved to another folder or drive?


    • Author
      Michael Pietroforte 3 months ago

      I never tried this, but my (wild) guess is that the first method works. You will probably get an error message if it doesn't. If you try it with the second method, I recommend that you create a second copy of the VM at another location. If it doesn't work, you can restore the original configuration. You might also want to try it first with a test VM.


  8. Paul 2 months ago

    I changed my user account and folder name and lost access to my VMS. The fast option did the trick.


  9. Gerhard Gruber 4 weeks ago

    Thanks for the Article. One minor update you might include.

    After moving the files to their new location you don't need to change manually stuff in the GUI. Make sure that VirtualBox is not running. Then just go to  "C:\Users\MyUser\.VirtualBox" and open VirtualBox.xml

    Replace all occurrences of "C:\Users\MyUser\VirtualBox VMs"

    with your new path with an editor of your choice.

    No clicking required and this will also change the default path, so you can just start VirtualBox now and use your VMs in the new location.



Leave a reply

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



Please ask IT administration questions in the forum. Any other messages are welcome.

© 4sysops 2006 - 2017

Log in with your credentials


Forgot your details?

Create Account