Click here to try Mozy for FREE!
Recommended: Click here repair PC errors
Click here to run a Free Registry scan
WebWatcher

How to Edit the Default Virtual Machine Directories in VirtualBox

by Gilberto J Perera View Comments Share

Do you use VirtualBox in more than one computer? Wouldn’t it be nice if you could share all of your virtual machines between your notebook and desktop? A couple of changes to default directories in VirtualBox will allow you to do just that. VirtualBox allows users to customize the default storage locations for virtual machines and their associated virtual hard disks. In this how-to I will show you where those settings are and how to change them. When you are done with this tutorial you will be able to use your virtual machines on your notebook and desktop, provided they can access the same directory the VM’s are located and that you don’t try running a single machine simultaneously.

Before we get started there are several things we need to understand;

  • The default directory for VirtualBox virtual machines and hard drives is – C:Users %USERPROFILE%.VirtualBox
  • The Machines directory contains the XML files with the configuration options for each of your virtual machines. When you move the default directories you will have to edit the XML file to update the several parameters or just run the Create New Machine Wizard and attach the appropriate virtual hard drive to it. The latter will recreate the XML file on the new directory and keep the other intact.

If you have any comments please post them below or if you have any questions visit our forums.

Note: I used VirtualBox 3.1.4 in this tutorial.

Open VirtualBox to get started.

Customize the Default Virtual Machine Folders

1. Click on File to open the menu.

2. Click on Preferences…


Customize the Default Virtual Machine Folders

3. When the Settings window opens, make sure that you are in the General area (pane to the left).

4. Click on the small arrow to open the menu to choose the Default Hard Disk Folder.

5. Click on Other from the menu.

Customize the Default Virtual Machine Folders

6. Locate and choose the folder you wish to use for Virtual Hard Disks.

7. Click OK

Customize the Default Virtual Machine Folders

8. When you return to the Settings window, click on the small arrow to expand the Default Machine Folder.

9. Click on other and locate and choose the folder you wish to save the Virtual Machine files to (repeat steps 6-7).

Customize the Default Virtual Machine Folders

10. When you are done customizing the directories, verify that they are correct and click OK to exit the Settings window.

Do you like this article?

Related Posts

  1. How to Create a New Virtual Machine in VirtualBox
  2. Add a CD/DVD Image to a VirtualBox Machine
  3. How to Create a Virtual Machine with Windows Virtual PC
  4. How to Install Virtual Machine Additions Using Virtual PC 2007
  5. How to Install Guest Additions in VirtualBox
How-to

About the author

Gilbert is a Microsoft MVP, a full-time blogger, and technology aficionado. When Gilbert is away from his bike and his iPad, he's busy writing technology how-to's from his home-office in Miami, Florida on the latest programs and gadgets he can get his hands on. He's locally known as "the computer guy" and has spent the last 12 years helping family, friends, and GilsMethod.com visitors with their computer questions and problems. He was awarded the 2009 MVP award from Microsoft for his contributions in forums and blogs and is enjoying the new addition to his family.

Want more articles like this delivered for free to your inbox?

To receive the latest technology how-to's, news, and reviews, enter your email address below.

Sign up below

View Comments to “How to Edit the Default Virtual Machine Directories in VirtualBox”

Leave a Reply

blog comments powered by Disqus