From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:52689) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1StMXR-0008Ij-PU for qemu-devel@nongnu.org; Mon, 23 Jul 2012 13:35:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1StMXN-0000Li-Qi for qemu-devel@nongnu.org; Mon, 23 Jul 2012 13:35:21 -0400 Received: from e23smtp04.au.ibm.com ([202.81.31.146]:33742) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1StMXN-0000H2-1r for qemu-devel@nongnu.org; Mon, 23 Jul 2012 13:35:17 -0400 Received: from /spool/local by e23smtp04.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 24 Jul 2012 03:34:47 +1000 Received: from d23av04.au.ibm.com (d23av04.au.ibm.com [9.190.235.139]) by d23relay05.au.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id q6NHQfTG5046656 for ; Tue, 24 Jul 2012 03:26:41 +1000 Received: from d23av04.au.ibm.com (loopback [127.0.0.1]) by d23av04.au.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id q6NHYumf004238 for ; Tue, 24 Jul 2012 03:34:56 +1000 Message-ID: <500D8B3E.3090707@linux.vnet.ibm.com> Date: Tue, 24 Jul 2012 01:34:54 +0800 From: Sheldon MIME-Version: 1.0 References: <500B81CE.4030404@linux.vnet.ibm.com> <500C155F.3020008@linux.vnet.ibm.com> In-Reply-To: Content-Type: multipart/alternative; boundary="------------050601010600020103000906" Subject: Re: [Qemu-devel] question about qemu migrate. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Amos Kong Cc: Shu Ming , qemu-devel@nongnu.org, Stefan Hajnoczi This is a multi-part message in MIME format. --------------050601010600020103000906 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 07/23/2012 06:26 AM, Amos Kong wrote: > On Sun, Jul 22, 2012 at 10:59 PM, Sheldon wrote: >> >> (qemu) migrate -d exec:cat>/tmp/vm.out >> .... -incoming fd:> >> 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? > > Load the suspend vm.out by # qemu-kvm .... incoming fd and execute monitor cmd to reboot # system_reset. > Then re-dump VM to disk by (qemu) migrate -d exec:cat>/tmp/vm.out2 > > Is it satisfied for you? Thank for your patience. Load the suspend vm.out by # qemu-kvm .... incoming fd >> 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. > (qemu) info migrate > > info commands(for hmp) always correspond with query commands(for qmp), > some query-cmds are not implemented right now (eg. query-network) > > > hmp qmp > --- --- > info status -> query-status > info block -> query-block > info pci -> query-pci > .... got it. Thank you again. --------------050601010600020103000906 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit
On 07/23/2012 06:26 AM, Amos Kong wrote:
On Sun, Jul 22, 2012 at 10:59 PM, Sheldon <shaohef@linux.vnet.ibm.com> wrote:

(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?

Load the suspend vm.out by  # qemu-kvm .... incoming fd</tmp/vm.out,
and execute monitor cmd to reboot  # system_reset.
Then re-dump VM to disk by (qemu) migrate -d exec:cat>/tmp/vm.out2

Is it satisfied for you?
Thank for your patience.
Load the suspend vm.out by  # qemu-kvm .... incoming fd</tmp/vm.out,
Actual, I have not do it successfully.  For I can not load the  suspend vm.out, the hmp terminal report "load of migration failed"

When "migrate" with -b option (full copy of disk), the suspend vm.out will copy the source image.
So if I Load the suspend vm.out, does the qemu need the source image?


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.
(qemu) info migrate

info commands(for hmp) always correspond with query commands(for qmp),
some query-cmds are not implemented right now (eg. query-network)


hmp            qmp
---            ---
info status -> query-status
info block  -> query-block
info pci    -> query-pci
....
got it. Thank you again.

    


--------------050601010600020103000906--