From: Mark Williamson Subject: Re: [PATCH] Trivial error message fix: xm migrate Date: Mon, 19 May 2008 17:36:40 +0100 Message-ID: <200805191736.41430.mark.williamson@cl.cam.ac.uk> References: <71C8B9B28A9618kanno.masaki@jp.fujitsu.com> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <71C8B9B28A9618kanno.masaki@jp.fujitsu.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com Cc: Masaki Kanno List-Id: xen-devel@lists.xenproject.org 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/)