WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: 答复: [Xen-devel] Xen Live Migration Fail

To: songwei <songwei03@xxxxxxxxx>, Xen Devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: Re: 答复: [Xen-devel] Xen Live Migration Fail
From: "涂堂?(Tang-Hsun Tu)" <iwantplay@xxxxxxxxx>
Date: Wed, 24 Nov 2010 17:45:05 +0800
Cc:
Delivery-date: Wed, 24 Nov 2010 01:46:28 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type; bh=Vwl7dMCfBUchXDc/xSixJi2XnF01JUXUHuSTHnDbrMA=; b=ERCro6zSQpkrkPQdCXJb1BpDBXMH9t9gWKMj9hMhZA77zjkDqKB35sR3rdFflzmUOQ 6rB/qvgip3QtKGAZ+GvNRawlcwazpSijFUQFO1VTAcbR8mblPcoPsuvTGx3G8QZlpvXC HIiFH3YjMGzJRav8ToHDxkSKjHhple4u+FMtg=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type; b=PRJ+bJcg1oUPRWvmRuWlRclBrYea1ReoJ8kUlkW3BUT/UZ4NXNSk9aUVlXrlBee6Wn 7I3pSKcOD6pm9+M6CZmw/SPIpl3Ilgoin+jLTWx5rQC+zyggwveSlwW98eGxc68Rz56E U2wrtEzcmopERrFFYWrLyYvFRk/AIy/QIhdng=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <000001cb8ab2$e5f63200$b1e29600$@com>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <AANLkTin=xdtyxuEHvMhBJmo-kd-DOnS3wOuSV7gzj5tv@xxxxxxxxxxxxxx> <000001cb8ab2$e5f63200$b1e29600$@com>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-TW; rv:1.9.2.12) Gecko/20101027 Thunderbird/3.1.6
Hi,

Thanks for your reply.

In recent days, I update my xen to the latest xen-4.0-testing.hg,

and retry the migration. It works fine.

However, it still has some strange problems.

Supporse there are two machines, A and B.

If I start a DomU (HVM) at A, then migrate to B, it works.

Then, I migrate from B to A, it works.

However, when I start a DomU at B, then migrate to A, it fails.

It means, if the first migration from B to A, it fails.
But, A->B, then B->A, it works.

It fails at restoring the DomU, and
the log shows "ERROR Internal error: error setting the HVM context".
The logs are also attached.

===================================================================

Another problem is that when I patch QEMU to support multiple DomUs to
play audio (enable mix),
like this,
the patch at tools/xen-setup,

#./configure --disable-gfx-check --disable-curses --disable-slirp "$@"
--prefix=${PREFIX}
./configure --audio-drv-list=alsa --enable-mixemu --disable-gfx-check
--disable-curses --disable-slirp "$@" --prefix=${PREFIX}

Then, the latest xen also fails, does this patch will affect live migration?



Thanks!



Best Regards,
Tang-Hsun Tu

於 2010/11/23 上午 10:05, songwei 提到:
> Did you modify the xend-config.sxp correctly?  Those comments in the
> discussion thread below, could be helpful for your question.
>  http://lists.xensource.com/archives/html/xen-users/2009-03/msg00079.html
>
> thanks,
> -James ( Song Wei)
>
>  
>
> sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
> [mailto:xen-devel-bounces@xxxxxxxxxxxxxxxxxxx] represent 涂小??
> timer: 2010年11月20日 18:49
> receiver: xen-devel@xxxxxxxxxxxxxxxxxxx
> subject: [Xen-devel] Xen Live Migration Fail
>
> Dear all:
>
>       I am trying to migrate a WinXP HVM (64M memory) from a machine
> (sender) to another machine (receiver) through AoE disk, however, there are
> some errors when do the following command:
> (My xen version is xen-4.0.1-rc5.hg, kernel 2.6.31.13, xen
> xen-4.0.1-rc6-pre,  Both sender and receiver are the same xen version)
>
>       xm migrate --live domain_id receiver_ip
>
> ===============================================
>       The error message at sender side is:
>
> Error: timed out
> Usage: xm migrate <Domain> <Host>
> ...
> ===============================================
>
>
>      Then, I read the xend.log (sender) and find this error message:
>
> ===============================================
> [2010-11-20 18:12:45 4667] INFO (XendDomain:1206) Domain WinXP_HVM_Migrate
> (1) unpaused.
> [2010-11-20 18:14:06 4667] DEBUG (XendCheckpoint:124) [xc_save]:
> /usr/lib/xen/bin/xc_save 35 1 0 0 5
> [2010-11-20 18:14:06 4667] INFO (XendCheckpoint:423) xc_save: failed to get
> the suspend evtchn port ...
> [2010-11-20 18:14:33 4667] WARNING (image:552) domain
> migrating-WinXP_HVM_Migrate: device model failure: pid 4871: died due to
> signal 6; see /var/log/xen/qemu-dm-WinXP_HVM_Migrate.log
> [2010-11-20 18:14:33 4667] INFO (XendDomainInfo:2088) Domain has
> shutdown: name=migrating-WinXP_HVM_Migrate id=1 reason=suspend.
> [2010-11-20 18:14:43 4667] INFO (XendCheckpoint:423) ERROR Internal
> error: Suspend request failed
> [2010-11-20 18:14:43 4667] INFO (XendCheckpoint:423) ERROR Internal
> error: Domain appears not to have suspended [2010-11-20 18:14:48 4667] INFO
> (XendCheckpoint:423) xc_save: timed out waiting for qemu logdirty response.
> ...
> ===============================================
>
>
>        And the qemu-dm.log gives a "buffer overflow" message as following:
>
> ===============================================
> ...
> device model saving state
> *** buffer overflow detected ***: /usr/lib64/xen/bin/qemu-dm terminated
> ======= Backtrace: =========
> /lib/libc.so.6(__fortify_fail+0x37)[0x7fecab467217]
> /lib/libc.so.6(+0xfe0d0)[0x7fecab4660d0]
> /lib/libc.so.6(+0xfd539)[0x7fecab465539]
> /lib/libc.so.6(_IO_default_xsputn+0xcc)[0x7fecab3ddd1c]
> /lib/libc.so.6(_IO_vfprintf+0x14c)[0x7fecab3ad4ec]
> ===============================================
>
>
>      The logs are also attached. Any ideas or patches to fix this problem ?
> Thanks!
>
> Best Regards,
> Tang-Hsun Tu
>
>

Attachment: fail_qemu-dm-WinXP_HVM_Migrate.log
Description: Text document

Attachment: fail_xend_sender_162.log
Description: Text document

Attachment: fail_xxend_receiver_164.log
Description: Text document

Attachment: success_qemu-dm-WinXP_HVM_Migrate.log
Description: Text document

Attachment: success_xend_receiver_162.log
Description: Text document

Attachment: success_xend_sender_164.log
Description: Text document

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>