From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:57933) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SsxdY-0001CV-OX for qemu-devel@nongnu.org; Sun, 22 Jul 2012 11:00:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SsxdX-0006n5-5G for qemu-devel@nongnu.org; Sun, 22 Jul 2012 11:00:00 -0400 Received: from e28smtp06.in.ibm.com ([122.248.162.6]:59975) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SsxdW-0006mj-HK for qemu-devel@nongnu.org; Sun, 22 Jul 2012 10:59:59 -0400 Received: from /spool/local by e28smtp06.in.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Sun, 22 Jul 2012 20:29:53 +0530 Received: from d28av04.in.ibm.com (d28av04.in.ibm.com [9.184.220.66]) by d28relay02.in.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id q6MExnec24641660 for ; Sun, 22 Jul 2012 20:29:50 +0530 Received: from d28av04.in.ibm.com (loopback [127.0.0.1]) by d28av04.in.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id q6MExnqm022931 for ; Mon, 23 Jul 2012 00:59:49 +1000 Message-ID: <500C155F.3020008@linux.vnet.ibm.com> Date: Sun, 22 Jul 2012 22:59:43 +0800 From: Sheldon MIME-Version: 1.0 References: <500B81CE.4030404@linux.vnet.ibm.com> In-Reply-To: Content-Type: multipart/alternative; boundary="------------070308070807070600090103" Subject: Re: [Qemu-devel] question about qemu migrate. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Amos Kong Cc: qemu-devel@nongnu.org, Stefan Hajnoczi This is a multi-part message in MIME format. --------------070308070807070600090103 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 07/22/2012 12:49 PM, Amos Kong wrote: > On Sun, Jul 22, 2012 at 12:30 PM, Sheldon > wrote: > > I find there are four kinds of uri for qmp_migrate > "tcp:", "exec:", "unix:", and "fd:" > > > now I want to migrate the vm to a local file with "exec:" uri by > hmp-command. > > How should I do the migration? > > > (qemu) migrate -d exec:cat>/tmp/vm.out > .... -incoming fd:
On 07/22/2012 12:49 PM, Amos Kong wrote:
On Sun, Jul 22, 2012 at 12:30 PM, Sheldon <shaohef@linux.vnet.ibm.com> wrote:
I find there are four kinds of uri for qmp_migrate
"tcp:", "exec:", "unix:", and "fd:"


now I want to migrate the vm to a local file with "exec:" uri by hmp-command.

How should I do the migration?

(qemu) migrate -d exec:cat>/tmp/vm.out
.... -incoming fd:</tmp/vm.out

thank you. it can work now.
there are still some questions.
1. the migration file vm.out  is  a QEMU suspend to disk image.
How can I reboot vm.out by QEMU?

2. I execute "migrate" with -b option, seems that the "migrate"  runs at background.
I cat get the "migrate" information by qmp , there is a { "execute": "query-migrate" } command in qmp-command.
But I can not get the the "migrate" information by hmp,  there is not a "query-migrate" command in hmp-command.






--------------070308070807070600090103--