Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 735993 - configuring a SCSI cd-rom in an HVM domain messes up IDE drives
configuring a SCSI cd-rom in an HVM domain messes up IDE drives
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: xen (Show other bugs)
5.7
Unspecified Unspecified
unspecified Severity unspecified
: rc
: ---
Assigned To: Paolo Bonzini
Virtualization Bugs
:
Depends On:
Blocks: 699616
  Show dependency treegraph
 
Reported: 2011-09-06 07:37 EDT by Paolo Bonzini
Modified: 2012-02-21 00:55 EST (History)
6 users (show)

See Also:
Fixed In Version: xen-3.0.3-134.el5
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2012-02-21 00:55:54 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2012:0160 normal SHIPPED_LIVE xen bug fix and enhancement update 2012-02-20 09:53:33 EST

  None (edit)
Description Paolo Bonzini 2011-09-06 07:37:02 EDT
When adding a disk with sda:cdrom to an HVM domain, the media type is set on the wrong disk: sda-sdd set the media type on hda-hdd, while from sde on the actual disk is off by 4 (i.e. sde sets it on sda and so on).

This is bad because adding a SCSI cd-rom can make the whole domain unbootable or crash qemu-dm.

* configuration for unbootable domain:

disk = ["file:/var/lib/xen/hvm.img,hda,w", "file:/var/lib/xen/cd.iso,sda:cdrom,r"]
boot = "c"

(hda becomes a CD-ROM and it is excluded from the boot sequence)

* configuration for qemu-dm crash:

disk = ["file:/var/lib/xen/hvm.img,hda,w", "file:/var/lib/xen/cd.iso,sdb:cdrom,r"]

(the hint is set on sdb and this causes a NULL-pointer dereference).

The bug is present since "always".
Comment 2 Miroslav Rezanina 2011-09-07 07:45:36 EDT
Fix built into xen-3.0.3-134.el5
Comment 5 Yuyu Zhou 2011-11-30 22:28:28 EST
reproduce the bug on xen-3.0.3-132.el5 and verify the bug on xen-3.0.3-135.el5.

on xen-3.0.3-132.el5, 

boot the HVM guest with configure:

disk = ["file:/var/lib/xen/hvm.img,hda,w",
"file:/var/lib/xen/cd.iso,sda:cdrom,r"]
boot = "c"

In fact, no guest is created.

boot the HVM guest with configure:

disk = ["file:/var/lib/xen/hvm.img,hda,w",
"file:/var/lib/xen/cd.iso,sdb:cdrom,r"]

the guest fail to boot.

on xen-3.0.3-135.el5:
boot the guest with both configure will succeed, and the content of iso can be seen in the guest.

So change the bug to VERIFIED.
Comment 6 errata-xmlrpc 2012-02-21 00:55:54 EST
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2012-0160.html

Note You need to log in before you can comment on or make changes to this bug.