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-devel

Re: [Xen-devel] [PATCH] Trivial error message fix: xm migrate

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-devel] [PATCH] Trivial error message fix: xm migrate
From: Mark Williamson <mark.williamson@xxxxxxxxxxxx>
Date: Mon, 19 May 2008 17:36:40 +0100
Cc: Masaki Kanno <kanno.masaki@xxxxxxxxxxxxxx>
Delivery-date: Mon, 19 May 2008 09:37:08 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <71C8B9B28A9618kanno.masaki@xxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <71C8B9B28A9618kanno.masaki@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: KMail/1.9.9
Hi Kan,

It's great that you're providing all these tweaks to the codebase; there's 
often been a lack of attention to detail on things like error messages, etc.

> When I tested xm migrate command to a non-running domain, I saw the
> following error message.
>
> # xm list vm1
> Name                                        ID   Mem VCPUs      State  
> Time(s) vm1                                              256     1         
>        0.0 # xm migrate vm1 10.124.36.219
> Error: /usr/lib/xen/bin/xc_save 22 None 0 0 0 failed
> (snip)
>
>
> This patch improves the error message as follows.
>
> # xm migrate vm1 10.124.36.219
> Error: Domain is not running
> (snip)
>
>
> BTW, do you have a plan to enable migration for non-running domains?

Interesting question.

For a domain that's shutdown, there's not really anything for the tools to do 
(unless you want them to migrate a hard drive image and config to another 
machine.  Which could be a useful administrative feature.)

For a VM that has been suspended, rather than shutdown, one could presumably 
copy the suspend image across to the other machine as part of a migration.  
I'm not really sure how Xend would store that information on the other end...  
Is it actually possible to do a managed suspend of a domain that's been live 
migrated?  (as opposed to just doing xm save to a file, which Xend would have 
no record of).

I can certainly see interesting ways in which migration of non-running domains 
could be handled if Xend / xm were extended somewhat.  I'm not aware of any 
plans for doing this...

Cheers,
Mark

-- 
Push Me Pull You - Distributed SCM tool (http://www.cl.cam.ac.uk/~maw48/pmpu/)

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

<Prev in Thread] Current Thread [Next in Thread>