Bug 674530 - Change CDROM of guest, new CD is truncated to the size of the old
Change CDROM of guest, new CD is truncated to the size of the old
Product: Fedora
Classification: Fedora
Component: qemu (Show other bugs)
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Fedora Virtualization Maintainers
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2011-02-02 05:41 EST by Richard W.M. Jones
Modified: 2013-01-09 18:31 EST (History)
16 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2012-07-09 20:08:15 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
Screenshot of error message (24.71 KB, image/png)
2011-02-02 05:49 EST, Richard W.M. Jones
no flags Details
Screenshot showing some files on the CD are corrupted (27.15 KB, image/png)
2011-02-02 05:50 EST, Richard W.M. Jones
no flags Details

  None (edit)
Description Richard W.M. Jones 2011-02-02 05:41:14 EST
Description of problem:

I am trying to install a very old version of RHL (7.3) which comes
on several CDs.  During installation I have to "swap" the ISO at
least once.

After swapping ISO for the first time, the installation fails.  It
appears that the size of the second ISO (that the guest sees) is
truncated to the size of the first ISO.  This causes I/O errors
when the guest tries to read any file which is beyond the end of
the first ISO's size.

This might be an unresolvable error in the ancient guest kernel,
but I think it is worth investigating that it's not a bug in
the hypervisor.

Version-Release number of selected component (if applicable):

kernel- (host)
libvirt-0.8.3-2.rwmj1.fc14.x86_64 (0.8.3 + watchdog fix)

Guest kernel is 2.4.18-3BOOT i686 from RHL 7.3 install disk.

How reproducible:

Tried it once.

Steps to Reproduce:
1. Try to install RHL 7.3 from
2. When it says "insert disk 2", swap ISO using virt-manager
   (ie. disconnect + connect)

Actual results:

Guest gives lots of error messages:
attempt to access beyond end of device
16:00: rw=0, want=653346, limit=652832
^                         ^
|                         |
|       limit reflects size of the original ISO, see below
16:00 is major=22, minor=0 which is /dev/hdc

Expected results:

No errors.

Additional info:

These are the sizes of the ISO files:

-rw-rw-r--.  1 qemu   qemu   668499968 Feb  1 23:24 valhalla-i386-disc1.iso
-rw-rw-r--.  1 qemu   qemu   669319168 Feb  2 01:48 valhalla-i386-disc2.iso

Notice that 652832 * 1024 = 668499968 which is the size of
the first disk (yet this error occurs when the second disk is
Comment 1 Richard W.M. Jones 2011-02-02 05:49:49 EST
Created attachment 476545 [details]
Screenshot of error message
Comment 2 Richard W.M. Jones 2011-02-02 05:50:18 EST
Created attachment 476546 [details]
Screenshot showing some files on the CD are corrupted
Comment 3 Amit Shah 2011-04-26 07:26:10 EDT
The patch at http://thread.gmane.org/gmane.comp.emulators.qemu/100247 will solve this.

In addition, the following patches will be helpful to solve other cdrom related bugs:


First four are just cleanups; last patch implements GET_EVENT_STATUS_NOTIFICATION, which modern kernels use to query cdrom status.
Comment 4 Amit Shah 2011-04-28 06:11:36 EDT
Now upstream, commit 4b9b7092b4cbef084138a446b8247ba89fd474f4
Comment 5 Fedora Admin XMLRPC Client 2012-03-15 13:59:30 EDT
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.
Comment 6 Cole Robinson 2012-07-09 20:08:15 EDT
In rawhide now

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