Red Hat Bugzilla – Bug 674530
Change CDROM of guest, new CD is truncated to the size of the old
Last modified: 2013-01-09 18:31:58 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
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
Version-Release number of selected component (if applicable):
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.
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)
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
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
Created attachment 476545 [details]
Screenshot of error message
Created attachment 476546 [details]
Screenshot showing some files on the CD are corrupted
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.
Now upstream, commit 4b9b7092b4cbef084138a446b8247ba89fd474f4
This package has changed ownership in the Fedora Package Database. Reassigning to the new owner of this component.
In rawhide now