* [Qemu-devel] question about qemu migrate.
@ 2012-07-22 4:30 Sheldon
2012-07-22 4:49 ` Amos Kong
0 siblings, 1 reply; 5+ messages in thread
From: Sheldon @ 2012-07-22 4:30 UTC (permalink / raw)
To: qemu-devel; +Cc: Stefan Hajnoczi
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?
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] question about qemu migrate.
2012-07-22 4:30 [Qemu-devel] question about qemu migrate Sheldon
@ 2012-07-22 4:49 ` Amos Kong
2012-07-22 14:59 ` Sheldon
0 siblings, 1 reply; 5+ messages in thread
From: Amos Kong @ 2012-07-22 4:49 UTC (permalink / raw)
To: Sheldon; +Cc: qemu-devel, Stefan Hajnoczi
[-- Attachment #1: Type: text/plain, Size: 363 bytes --]
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
[-- Attachment #2: Type: text/html, Size: 831 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] question about qemu migrate.
2012-07-22 4:49 ` Amos Kong
@ 2012-07-22 14:59 ` Sheldon
2012-07-22 22:26 ` Amos Kong
0 siblings, 1 reply; 5+ messages in thread
From: Sheldon @ 2012-07-22 14:59 UTC (permalink / raw)
To: Amos Kong; +Cc: qemu-devel, Stefan Hajnoczi
[-- Attachment #1: Type: text/plain, Size: 947 bytes --]
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
> <mailto: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.
[-- Attachment #2: Type: text/html, Size: 2046 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] question about qemu migrate.
2012-07-22 14:59 ` Sheldon
@ 2012-07-22 22:26 ` Amos Kong
2012-07-23 17:34 ` Sheldon
0 siblings, 1 reply; 5+ messages in thread
From: Amos Kong @ 2012-07-22 22:26 UTC (permalink / raw)
To: Sheldon; +Cc: qemu-devel, Stefan Hajnoczi
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?
> 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
....
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] question about qemu migrate.
2012-07-22 22:26 ` Amos Kong
@ 2012-07-23 17:34 ` Sheldon
0 siblings, 0 replies; 5+ messages in thread
From: Sheldon @ 2012-07-23 17:34 UTC (permalink / raw)
To: Amos Kong; +Cc: Shu Ming, qemu-devel, Stefan Hajnoczi
[-- Attachment #1: Type: text/plain, Size: 1651 bytes --]
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.
[-- Attachment #2: Type: text/html, Size: 2824 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2012-07-23 17:35 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-22 4:30 [Qemu-devel] question about qemu migrate Sheldon
2012-07-22 4:49 ` Amos Kong
2012-07-22 14:59 ` Sheldon
2012-07-22 22:26 ` Amos Kong
2012-07-23 17:34 ` Sheldon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).