Moving Virtual Machines

Discussions related to using VirtualBox on Linux hosts.
Post Reply
mashcaster
Posts: 39
Joined: 25. Dec 2008, 15:06

Moving Virtual Machines

Post by mashcaster »

I have a virtualbox internel network simulation which involves many virtual machines all networked internally within virtual box. The simulation is not complete yet, but it took a lot of time to get to where it is. The problem is that I am having to change from Ubuntu 8.10 to Debian stable, and I do not want to start over from scratch with my virtual box network simulation.

My question is, is it possible to some how move the virtual machines and setting files which allow the virtual machines to comunicate to another PC? So I don't have to setup the virtual network from scratch again? The virtual box I am currently using is virtualbox ose 2.0.6 and I need to move to virtualbox ose 1.6.6 I think.
Last edited by mashcaster on 20. Apr 2009, 01:28, edited 1 time in total.
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: Moving Virtual Machines

Post by Sasquatch »

If you create a backup from ~/.VirtualBox, and restore it on the new system, you're good to go. As long as you use the same or newer version as the VMs are created on, there will be no issues.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
vor_lord
Posts: 5
Joined: 18. Apr 2009, 16:51
Primary OS: Linux other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Ubuntu Server 8.10

Re: Moving Virtual Machines

Post by vor_lord »

This is a related question (despite a couple hours of searching I apparently don't know the right terms to find the answer):

Will I be able to backup and restore a VM to a totally different host OS?

I currently am running a small LAMP server (Ubuntu Server) with host OS Arch Linux. I want to know if I can dual boot into Windows XP as the host OS, and still run the LAMP guest. Is a regular backup sufficient as long as my virtualbox versions match between the two host OSes?
vbox4me2
Volunteer
Posts: 5218
Joined: 21. Nov 2008, 20:27
Location: Rotterdam
Contact:

Re: Moving Virtual Machines

Post by vbox4me2 »

Should not be an issue, only watch out for the VM settings between different host OS's.
vor_lord
Posts: 5
Joined: 18. Apr 2009, 16:51
Primary OS: Linux other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Ubuntu Server 8.10

Re: Moving Virtual Machines

Post by vor_lord »

vbox4me2 wrote:Should not be an issue, only watch out for the VM settings between different host OS's.
Are there more settings to worry about than what is in the xml file? My plan was to use the same VDI and xml file from both host OSes.
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: Moving Virtual Machines

Post by Sasquatch »

No, you just have to compare the settings from each Host. As long as you set everything from the GUI, you're fine. Just make sure that the MAC address for the NICs are the same. It can trigger Windows activation, and will create new names on Linux systems. You can't use the same XML for both systems, as you boot between Windows and Linux.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
mashcaster
Posts: 39
Joined: 25. Dec 2008, 15:06

Re: Moving Virtual Machines

Post by mashcaster »

Sasquatch wrote:If you create a backup from ~/.VirtualBox, and restore it on the new system, you're good to go. As long as you use the same or newer version as the VMs are created on, there will be no issues.
So does that mean I cannot go from VirtualBox 2.0.6 to 1.6.6 ???
vbox4me2
Volunteer
Posts: 5218
Joined: 21. Nov 2008, 20:27
Location: Rotterdam
Contact:

Re: Moving Virtual Machines

Post by vbox4me2 »

You can keep 2 different Host versions for one single shared VM, but when the VM starts misbehaving it can go beyond repair, so it is better to keep both Hosts on the same version. Upgrading is best done by recreating the VM settings and re-attaching the VDI's, VBox installers do not always correctly upgrade VM settings.
Post Reply