[libvirt-users] live migration without shared storage problems.

Hi, all I migrate a vm from source host to the destination host. I am sure every part is ok for migration. 1 Create the image in the destination and change the user and group. 2 Open TCP socket in the destination host. and I migrate in the source host command line. $ virsh migrate --live --copy-storage-all vmubuntu qemu+ssh://destinationHost/system --verbose But I get the error "error: operation failed : failed to retrieve chardev info inqemu with 'info chardev'" In the destination I find in the vmubuntu.log The error is "Migration failed. Exit code tcp:0.0.0.0:49170(-98),exiting." What can I do to solve it ? I do not understand how the error comes. Anyone can help me ? Thanks in advance.

Try this, i am not sure it will works.. $ virsh -c qemu+ssh://destinationHost/system migrate --live --copy-storage-all vmubuntu But it works for me for below option:- $ virsh -c qemu+ssh://destinationHost/system migrate list Regards, Peter On Wed, Oct 26, 2011 at 10:22 PM, Luengffy XUE <feiliangxue@gmail.com>wrote:
Hi, all
I migrate a vm from source host to the destination host.
I am sure every part is ok for migration.
1 Create the image in the destination and change the user and group.
2 Open TCP socket in the destination host.
and I migrate in the source host command line.
But I get the error
$ virsh migrate --live --copy-storage-all vmubuntu qemu+ssh://destinationHost/system --verbose
"error: operation failed : failed to retrieve chardev info inqemu with 'info chardev'"
In the destination I find in the vmubuntu.log
The error is
"Migration failed. Exit code tcp:0.0.0.0:49170(-98),exiting."
What can I do to solve it ?
I do not understand how the error comes.
Anyone can help me ?
Thanks in advance.
_______________________________________________ libvirt-users mailing list libvirt-users@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-users

I find this error is cause by this source C ----------savevm.c http://tomoyo.sourceforge.jp/cgi-bin/lxr/source/savevm.c?v=qemu-kvm-0.12.3 I do not understand it. Anyone who develop it? 2011/10/26 vmnode guy <vmnodeguy@gmail.com>
Try this, i am not sure it will works.. $ virsh -c qemu+ssh://destinationHost/system migrate --live --copy-storage-all vmubuntu
But it works for me for below option:- $ virsh -c qemu+ssh://destinationHost/system migrate list
Regards, Peter
On Wed, Oct 26, 2011 at 10:22 PM, Luengffy XUE <feiliangxue@gmail.com>wrote:
Hi, all
I migrate a vm from source host to the destination host.
I am sure every part is ok for migration.
1 Create the image in the destination and change the user and group.
2 Open TCP socket in the destination host.
and I migrate in the source host command line.
But I get the error
$ virsh migrate --live --copy-storage-all vmubuntu qemu+ssh://destinationHost/system --verbose
"error: operation failed : failed to retrieve chardev info inqemu with 'info chardev'"
In the destination I find in the vmubuntu.log
The error is
"Migration failed. Exit code tcp:0.0.0.0:49170(-98),exiting."
What can I do to solve it ?
I do not understand how the error comes.
Anyone can help me ?
Thanks in advance.
_______________________________________________ libvirt-users mailing list libvirt-users@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-users

? 2011?10?26? 22:22, Luengffy XUE ??:
Hi, all I migrate a vm from source host to the destination host. I am sure every part is ok for migration. 1 Create the image in the destination and change the user and group. 2 Open TCP socket in the destination host. and I migrate in the source host command line. $ virsh migrate --live --copy-storage-all vmubuntu qemu+ssh://destinationHost/system --verbose But I get the error "error: operation failed : failed to retrieve chardev info inqemu with 'info chardev'"
Looks like you even failed on starting the domain. Could you confirm if you guest is actually running well?
In the destination I find in the vmubuntu.log The error is "Migration failed. Exit code tcp:0.0.0.0:49170(-98),exiting."
What can I do to solve it ? I do not understand how the error comes. Anyone can help me ? Thanks in advance.

Oh, I think I can describe the problem more specific. 1 Creat the vm in the source host and it run well. 2 Create the image in the destination and change the user and group 3 Open TCP socket in the destination host. In the source host I use the different command as 1 $ virsh migrate --live --copy-storage-all vmubuntu qemu+ssh://destinationHost/system --verbose This situation, the error is: In the source host: error:operation failed:migration job:unexpectedly failed In the destiantion host: (from the vm.log) qemu:Warning: error while loading State ID section 2 <http://blog.chinaunix.net/space.php?uid=26284395&do=blog&id=2980663> 2 $ virsh migrate --live --copy-storage-all vmubuntu qemu+ssh://destinationHost/system tcp://destinationHost:49170 --verbose This situation, the error is: In the source host: error: operation failed : failed to retrieve chardev info inqemu with 'info chardev' In the destiantion host: (from the vm.log) Migration failed. Exit code tcp:0.0.0.0:49170(-98),exiting. Can you help me ? I google the error on the www . But I can not find the proper solutions or the same questions. Thanks very much. Best wishes. 2011/10/27 Osier Yang <jyang@redhat.com>
于 2011年10月26日 22:22, Luengffy XUE 写道:
Hi, all
I migrate a vm from source host to the destination host.
I am sure every part is ok for migration.
1 Create the image in the destination and change the user and group.
2 Open TCP socket in the destination host.
and I migrate in the source host command line.
$ virsh migrate --live --copy-storage-all vmubuntu qemu+ssh://destinationHost/system --verbose
But I get the error
"error: operation failed : failed to retrieve chardev info inqemu with 'info chardev'"
Looks like you even failed on starting the domain. Could you confirm if you guest is actually running well?
In the destination I find in the vmubuntu.log
The error is
"Migration failed. Exit code tcp:0.0.0.0:49170(-98),exiting."
What can I do to solve it ?
I do not understand how the error comes.
Anyone can help me ?
Thanks in advance.

于 2011年10月27日 11:16, Luengffy XUE 写道:
Oh, I think I can describe the problem more specific.
1 Creat the vm in the source host and it run well. 2 Create the image in the destination and change the user and group
2)的意思是你自己在dest上创建了同名的image么?
3 Open TCP socket in the destination host.
你是咋作的,这都是libvirt/qemu自己来完成的,dest上qemu会以-incoming 启动。
In the source host I use the different command as
1 $ virsh migrate --live --copy-storage-all vmubuntu qemu+ssh://destinationHost/system --verbose
This situation, the error is:
In the source host: error:operation failed:migration job:unexpectedly failed In the destiantion host: (from the vm.log) qemu:Warning: error while loading State ID section 2
<http://blog.chinaunix.net/space.php?uid=26284395&do=blog&id=2980663>
2 $ virsh migrate --live --copy-storage-all vmubuntu qemu+ssh://destinationHost/system tcp://destinationHost:49170 --verbose
This situation, the error is:
In the source host:
error: operation failed : failed to retrieve chardev info inqemu with 'info chardev' In the destiantion host: (from the vm.log) Migration failed. Exit code tcp:0.0.0.0:49170(-98),exiting.
Can you help me ? I google the error on the www . But I can not find the proper solutions or the same questions.
Thanks very much. Best wishes.
2011/10/27 Osier Yang <jyang@redhat.com <mailto:jyang@redhat.com>>
于 2011年10月26日 22:22, Luengffy XUE 写道:
Hi, all I migrate a vm from source host to the destination host. I am sure every part is ok for migration. 1 Create the image in the destination and change the user and group. 2 Open TCP socket in the destination host. and I migrate in the source host command line. $ virsh migrate --live --copy-storage-all vmubuntu qemu+ssh://destinationHost/system --verbose But I get the error "error: operation failed : failed to retrieve chardev info inqemu with 'info chardev'"
Looks like you even failed on starting the domain. Could you confirm if you guest is actually running well?
In the destination I find in the vmubuntu.log The error is "Migration failed. Exit code tcp:0.0.0.0:49170(-98),exiting."
What can I do to solve it ? I do not understand how the error comes. Anyone can help me ? Thanks in advance.
participants (3)
-
Luengffy XUE
-
Osier Yang
-
vmnode guy