From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Sundstrom Subject: Re: [BUG] XEN domU crash when PV grub chainloads 32-bit domU grub Date: Tue, 22 Sep 2015 13:26:11 +0000 Message-ID: <20150922132611.Horde.ddrVf5nBPTIgMpU8wnaYWqY@apache.zappa.cx> References: <5600628A.20202@zappa.cx> <560101D2.5060005@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed"; DelSp="Yes" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <560101D2.5060005@citrix.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Andrew Cooper Cc: xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org Citerar Andrew Cooper : > On 21/09/2015 21:03, Andreas Sundstrom wrote: >> Using 64-bit dom0 and 32-bit domU PV (para-virtualized) grub sometimes >> fail when chainloading the domU's grub. 64-bit domU seem to work 100% >> of the time. > > You say sometimes. Do you mean that repeated attempts to boot a 32bit > domU causes it to ether boot correctly, or die in the below manor? Yes that is correct, it may or may not be able to complete the booting. >> When it fails "xl create vm -c" outputs this: >> Parsing config from /etc/xen/vm >> libxl: error: libxl_dom.c:35:libxl__domain_type: unable to get domain >> type for domid=16 >> Unable to attach console >> libxl: error: libxl_exec.c:118:libxl_report_child_exitstatus: console >> child [0] exited with error status 1 > > These error messages are just because the domain crashes sufficiently > early that libxl can't find the console information. Running `xl > create` without '-c' would remove the libxl errors. Correct, they only appear due to the failed connecting of the console so not really relevant to the actual issue. >> I am unable to understand how to debug grub further on my own, I have >> printed out text from grub so that I understood that it is the >> chainload that fails. I see no output from the domU grub (except when >> it works as it should of course). I can help with further testing if >> needed. > > It does appear to be an intermittent bug in 32bit grub-xen in the > eventual domU, but I have no help to offer with respect to debugging > grub-xen further. > > ~Andrew As Ian Campbell suggested I have also filed a bug with upstream grub: http://savannah.gnu.org/bugs/?46014 /Andreas