WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] xm migrate headache

To: <srivathsa_karanth@xxxxxxxxxxxx>
Subject: Re: [Xen-users] xm migrate headache
From: "Nick Couchman" <Nick.Couchman@xxxxxxxxx>
Date: Tue, 03 Mar 2009 06:35:30 -0700
Cc: rainer@xxxxxxxxxx, xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 03 Mar 2009 05:36:25 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
I don't think the issues Rainer is having are due to misconfiguration of the relocation service or shared storage.  If it were a shared storage issue or a relocation service issue, Xen would not even attempt to save the VM state, which is where the migration is failing.  Xen checks to make sure the destination machine has the relocation service available, and checks to make sure that the other machine can see the storage before it ever does a state save.

I've experienced exactly the same symptoms as he describes, but it also works for me some of the time.

-Nick


-----Original Message-----
From: Srivathsa <srivathsa_karanth@xxxxxxxxxxxx>
To: Rainer Sokoll <rainer@xxxxxxxxxx>
Cc: xen-users@xxxxxxxxxxxxxxxxxxx <xen-users@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-users] xm migrate headache
Date: Tue, 3 Mar 2009 18:26:27 +0530

Hello Rainer,

I. By default, Xend does not start a HTTP server. It does start a Unix domain socket management server for xm to communicate with Xend.
But in order to support cross-machine live migration, this support has to be enabled.

1.  Make a backup of your xend-config.sxp file: (on hotsa)
    cp -pr /etc/xen/xend-config.sxp /etc/xen/xend-config.sxp.default

2.  Edit /etc/xen/xend-config.sxp and make the following changes:
    #(xend-unix-server yes)
    (xend-relocation-server yes)
    (xend-relocation-port 8002)
    (xend-relocation-address '')
    (xend-relocation-hosts-allow '')
    #(xend-relocation-hosts-allow '^localhost$ ^localhost\\.localdomain$')
3.  Restart Xend:
    service xend restart

II. Exporting a shared storage via NFS .

Configure NFS and export a shared storage via NFS.
1.   Edit /etc/exports and add in the following line:
     /xen               *(rw,sync,no_root_squash)
2.   Save /etc/exports and restart the NFS server. Make sure that the NFS server starts by default:
     service nfs start
     chkconfig nfs on
3.   After starting the NFS server on hosta, we can then mount it on hostb:
     mount hosta:/xen /xen
4.   Proceed to start Xen guest on hosta
     xm create -c pvm

III.  Performing live migration
1. Perform the live migration from hosta to hostb by running the following command:
   xm migrate –live pvm hostb
3. Try to open multiple terminal windows on both Xen hosts with the following command:
   watch -n1 xm list
4. Watch how the live migration is performed. Take note how long it took.


regards
Sri

Rainer Sokoll wrote:
Hi,

I am trying to (live-)migrate a paravirtualized machine from hosta to
hostb:

-----8<----
hosta:~ # xm list pvm
Name                                        ID   Mem VCPUs      State Time(s)
pvm                                         64   384     1     -b----    0.5

hostb:~ # xm list pvm
Error: Domain 'pvm' does not exist.

hosta:~ # xm migrate pvm 192.168.0.2
Error: /usr/lib64/xen/bin/xc_save 4 64 0 0 0 failed
Usage: xm migrate <Domain> <Host>

Migrate a domain to another machine.

Options:

-h, --help           Print this help.
-l, --live           Use live migration.
-p=portnum, --port=portnum
                     Use specified port for migration.
-r=MBIT, --resource=MBIT
                     Set level of resource usage for migration.

hosta:~ # xm list pvm
Name                                        ID   Mem VCPUs      State Time(s)
pvm                                         64   384     1     ---s--    0.6

hostb:~ # xm list pvm
Name                                        ID   Mem VCPUs      State Time(s)
pvm                                         61   384     1     --p---    0.0
-----8<----

As you can see, the machine (called "pvm" got migrated, but on hosta
the status is still "s", which should not happen, as far as I see.
Both VMs are in logical volumes, and the volumes are connected via drbd
in primary/primary mode.
The hosts are OpenSUse 11.0 with xen 3.2.
Since I am a newbie to Xen, I might have missed something - but what?
Any hint is appreciated,

Rainer

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

  



http://www.mindtree.com/email/disclaimer.html


This e-mail may contain confidential and privileged material for the sole use of the intended recipient. If this email is not intended for you, or you are not responsible for the delivery of this message to the intended recipient, please note that this message may contain SEAKR Engineering (SEAKR) Privileged/Proprietary Information. In such a case, you are strictly prohibited from downloading, photocopying, distributing or otherwise using this message, its contents or attachments in any way. If you have received this message in error, please notify us immediately by replying to this e-mail and delete the message from your mailbox. Information contained in this message that does not relate to the business of SEAKR is neither endorsed by nor attributable to SEAKR.

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
<Prev in Thread] Current Thread [Next in Thread>