Bug 586821

Summary: Booting from qcow image not works for hvm
Product: Red Hat Enterprise Linux 5 Reporter: Miroslav Rezanina <mrezanin>
Component: xenAssignee: Miroslav Rezanina <mrezanin>
Status: CLOSED ERRATA QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: low    
Version: 5.5CC: drjones, llim, pbonzini, xen-maint, yuzhang
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: xen-3.0.3-108.el5 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-01-13 22:21:39 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 514499, 544300    

Description Miroslav Rezanina 2010-04-28 12:39:08 UTC
Description of problem:
Xen guest with boot partition in qcow image file fails to boot on each second start. 

Version-Release number of selected component (if applicable):
kernel-xen-2.6.18-194.el5xen
xen-3.0.3-107
Guest kernel - kernel-2.6.18-194

How reproducible:
50% - Fail on each second boot

Steps to Reproduce:
1. Install RHEL 5.4 as xen hvm guest using qcow image
2. Start guest 10x times
  
Actual results:
Each second start fails - No boot disk error message

Expected results:
No start fail

Additional info:

Comment 1 Miroslav Rezanina 2010-04-28 13:41:58 UTC
I found out that this is caused by wrong handling big endian flag. This cause to switch endian on each startup - this cause only one of two starts succeed. Code for handling old images is not correct and need fix. This problem is probably even in upstream - I'm going to try it.

Comment 6 Miroslav Rezanina 2010-05-20 05:50:58 UTC
*** Bug 568580 has been marked as a duplicate of this bug. ***

Comment 8 Yufang Zhang 2010-09-06 05:26:35 UTC
QA verified this bug on xen-3.0.3-115.el5:

1. Create a qcow image without backing file via qcow-create.
2. Create a HVM guest with this qcow image, then install OS on it.
3. The HVM could boot successfully after OS Installation.

Additional information:
Creating a qcow image with backing file(raw format with OS installed), we could also boot a HVM guest with that qcow image.

So change this bug to VERIFIED.

Comment 10 errata-xmlrpc 2011-01-13 22:21:39 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2011-0031.html