From: Ian Campbell Subject: Re: XL: pv guests dont reboot after migration (xen4.1.2-rc2-pre) Date: Fri, 23 Sep 2011 09:00:43 +0100 Message-ID: <1316764843.23371.103.camel@zakaz.uk.xensource.com> References: <4E785FDD.40209@leuphana.de> <1316546621.5182.23.camel@dagon.hellion.org.uk> <4E7C37D6.7050109@leuphana.de> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4E7C37D6.7050109@leuphana.de> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Andreas Olsowski Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org On Fri, 2011-09-23 at 08:38 +0100, Andreas Olsowski wrote: I guess the core of the problem is somewhere around this: > >xc: error: 0-length read: Internal error > >xc: error: read_exact_timed failed (read rc: 0, errno: 0): Internal error > >xc: error: read: p2m_size (0 = Success): Internal error > It smells like on reboot it is trying to receive another incoming migration, instead of restarting the domain it already has. This (untested) might help: diff -r d7b14b76f1eb tools/libxl/xl_cmdimpl.c --- a/tools/libxl/xl_cmdimpl.c Thu Sep 22 14:26:08 2011 +0100 +++ b/tools/libxl/xl_cmdimpl.c Fri Sep 23 08:59:36 2011 +0100 @@ -1516,6 +1516,11 @@ start: ret = libxl_domain_create_restore(ctx, &d_config, cb, &child_console_pid, &domid, restore_fd); + /* + * On subsequent reboot etc we should create the domain, not + * restore/migrate-receive it again. + */ + restore_file = NULL; }else{ ret = libxl_domain_create_new(ctx, &d_config, cb, &child_console_pid, &domid); Ian.