How to add VirtualBox VMs from a previous installation
How to add VirtualBox VMs from a previous installation
‘ZDNET Recommends’: What exactly does it mean?
ZDNET’s recommendations are based on many hours of testing, research, and comparison shopping. We gather data from the best available sources, including vendor and retailer listings as well as other relevant and independent reviews sites. And we pore over customer reviews to find out what matters to real people who already own and use the products and services we’re assessing.
When you click through from our site to a retailer and buy a product or service, we may earn affiliate commissions. This helps support our work, but does not affect what we cover or how, and it does not affect the price you pay. Neither ZDNET nor the author are compensated for these independent reviews. Indeed, we follow strict guidelines that ensure our editorial content is never influenced by advertisers.
ZDNET’s editorial team writes on behalf of you, our reader. Our goal is to deliver the most accurate information and the most knowledgeable advice possible in order to help you make smarter buying decisions on tech gear and a wide array of products and services. Our editors thoroughly review and fact-check every article to ensure that our content meets the highest standards. If we have made an error or published misleading information, we will correct or clarify the article. If you see inaccuracies in our content, please report the mistake via this form.
How to add VirtualBox VMs from a previous installation
You might have read about my recent article on distro hopping, which led me to use Ubuntu Budgie as my main operating system. Since I depend on virtual machines (for operating system tests and reviews, as well as for various servers I use), I also had to install the VirtualBox virtual machine manager on the new OS.
Normally, when I do that, I can point VirtualBox to the directory housing all of my virtual machines (set as the Default Machine Folder in Preferences > General) and I’m good to go. However, this time I didn’t want to automatically import all of those virtual machines at once.
Also: How to connect to a VirtualBox virtual machine from your LAN
Instead, I decided to add them as needed. Fortunately, that process is very easy and, by adding your VMs this way, the VirtualBox UI won’t be so crowded with virtual machines (at least not until you’ve added them all back).
If this sounds like a situation you’ve either been in or predict you’ll experience in the near future, read on because I’m going to show you how to add those virtual machines back to VirtualBox, one at a time.
How to add a pre-existing VM to VirtualBox
What you’ll need: The only two things you’ll need for this are a running instance of VirtualBox (on either Linux, MacOS, or Windows), and a collection of pre-existing virtual machines. Once you have those two things in place, you’re ready to go.
1. Open VirtualBox
The first thing to do is open VirtualBox. If you’ve already set the Default Machine Folder and you still see no VMs listed, it’s OK.
2. Add the pre-existing VM
From the main VirtualBox window, click the green + Add button.
3. Locate the VM to be added
When the default OS file picker opens, navigate to the folder housing the VM you want to add.
4. Add the VM
Within the folder housing the data for the virtual machine, you’ll find a file that ends in .vbox. Select that file and then click Open (or just double-click the .vbox file).
Also: What are VirtualBox guest snapshots and how do you take them?
This will automatically add the pre-existing virtual machine to VirtualBox so that it’s ready to start and use.
There are some things to keep in mind. If you move the virtual machines to a new machine with different architecture (say from Intel to AMD or Arm), the VM might not behave as expected.
Also, if you find networking to be problematic, you might have to switch the network type (say, from NAT to Bridge). Finally, if your VM was in a saved state on the previous host, it will remain so on the new host. If you start it and find that it’s not behaving properly, restart the guest OS and it should be back to normal.
Also: How to create a Linux virtual machine with VirtualBox
And that’s all there is to adding pre-existing virtual machines to VirtualBox. Keep those VMs stored on a secondary drive, so if you ever need to re-install your host OS, the VMs are ready to be added back.
Add a Comment
You must be logged in to post a comment.