LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices

Reply
 
Search this Thread
Old 11-18-2010, 12:10 PM   #1
genderbender
Member
 
Registered: Jan 2005
Location: US
Distribution: Centos, Ubuntu, Solaris, Redhat
Posts: 396

Rep: Reputation: 31
moving xen VM's to different hardware


There was a guide located here:http://www.linuxquestions.org/questi...rdware-793311/

Anyone got any updates to this, the VM's on my server arent located in this directory and find finds about 4 files with the *.img extension.

Cheers.
 
Old 11-19-2010, 06:48 AM   #2
genderbender
Member
 
Registered: Jan 2005
Location: US
Distribution: Centos, Ubuntu, Solaris, Redhat
Posts: 396

Original Poster
Rep: Reputation: 31
No responses. I'm gonna go straight for the xen forum from now on, theres rarely any responses at all let alone good ones. Click the link above to see how it's done (my comment at the end).
 
Old 11-24-2010, 11:39 AM   #3
scheidel21
Senior Member
 
Registered: Feb 2003
Location: CT
Distribution: Debian PPC/i386/AMD64 6/7, Vista, XP , WIN7, Server 03/08
Posts: 1,287

Rep: Reputation: 97
Kind of rude to be upset that no one answered your question. You are using XEN from what distribution? Different distributions and different management tools might keep img file in different directories. What are the 4 .img files that find locates? What is the name of your VM, often the harddrive image may have a same or similar name. You could always look at the configuration files that will tell you the path to the img file. Hw many VMs are you running? if you run 4 vms then those 4 img files are likely the drives for each of them. If you shutdown the VM copy the img files you can adjust file paths and settings for your new machine to reflect the changes int he configuration files or through your management tools.
 
Old 11-24-2010, 11:57 AM   #4
genderbender
Member
 
Registered: Jan 2005
Location: US
Distribution: Centos, Ubuntu, Solaris, Redhat
Posts: 396

Original Poster
Rep: Reputation: 31
I've had about 4 posts on here and they never get any responses, it's just irritating - apologies if it seemed rude.
Anyway! On with the show!

I'm using Citrix xen, there's no link between the uuid and the LVM uuid (this was my first thought! that way I could use DD without taking any systems offline).
The .img files found are all in /boot
The name of an example VM is "Windows XP test env" I've also done a search for windows and found the templates xen uses (templates aren't any use as all Citrix Xen servers have the same templates).
There are no configuration files as xen has various scripts for obtaining this information. As you'll see in my reply on thread I linked initially, it also has scripts for creating VM images.
I run 42 VM's so those 4 img files are not numerically related (they're also called 'kernel.name.XEN.OS' and the fact they're stored in boot suggests they aren't the same VM's being used).
When you say "copy the img file" I presume you mean the img file my kernel boots from? This seems like a terrible idea.

The solution is in the other thread. vm-export and vm-import, this will work 70% of the time and takes a good 2hours per vm.

Last edited by genderbender; 11-24-2010 at 11:59 AM.
 
Old 11-24-2010, 05:45 PM   #5
scheidel21
Senior Member
 
Registered: Feb 2003
Location: CT
Distribution: Debian PPC/i386/AMD64 6/7, Vista, XP , WIN7, Server 03/08
Posts: 1,287

Rep: Reputation: 97
Sorry you didn't specify you were using Citrix XEN, technically I am too but the basic opensource version with no frills. In this scenario I can use LVM of a SAN device, or on local drives, or an img file. To setup XEN in the CLI with the no frills option you create a configuration file, and generate an img file form the command line using qemu if you are using an img file as a hard drive. In terms of using img files as a hard drive you can literally copy these files provided the VM isn't running. Using LVM can be a bigger pain if using local drives, but if you use a SAN you can live migrate etc... between XEN servers.
 
Old 11-24-2010, 09:12 PM   #6
genderbender
Member
 
Registered: Jan 2005
Location: US
Distribution: Centos, Ubuntu, Solaris, Redhat
Posts: 396

Original Poster
Rep: Reputation: 31
That would work I believe, the other alternative which would also be possible is a shared NFS store. When citrix xen is using shared storage, same hardware and os version, it has something with a weird name like xen move or flow (I forget the exact name) where you can use xencenter to move VM's (while online) between servers via drag and drop. This, as far as I can tell is not possible when there are any differences between the servers and thus the import/export thing is the only way to do it or shared storage of some kind (which ammounts to the same thing seeing as xen dynamically assigns disk space and only leaves 1.5GB used as scratch meaning most of the time a new drive will need to be mounted; for me NFS was my solution to this disk shortage problem).
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Moving Xen Virtual Guests (DomU) to a different hardware freelinuxtutorials Linux - Virtualization and Cloud 8 11-20-2010 08:01 AM
Seeking thoughts RE: moving from CentOS+VMware to.... Xen? KVM? GenePoole59 Linux - Virtualization and Cloud 4 07-22-2010 01:05 PM
FC4 - Moving to new hardware help please terence8888 Linux - Software 2 04-05-2007 06:22 AM
Xen Para vs Hardware Virtualization and Windows Crito Linux - Software 0 02-27-2007 04:51 PM
Moving to new hardware Timcrook Linux - Hardware 2 02-12-2007 10:12 AM


All times are GMT -5. The time now is 10:36 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration