CDROM size not updated when changing image files
Public bug reported:
I'm using qemu 13.0 with a plain Linux kernel using the ata_piix driver as the guest, and an initrd that starts a shell. When changing the image in the monitor and reading from the CDROM in the guest, the size is not updated. I'm using LInux 2.6.32.24 as the host and I've tested 2.6.32.24, 2.6.35, and 2.6.36 as guests. Both host and guest are 64-bit. Here is the command used to start the guest using the initrd:
./x86_64-softmmu/qemu-system-x86_64 -cdrom /spare2/cd1.img -kernel /sources/linux-2.6.32.24-test/arch/x86/boot/bzImage -initrd /spare2/initrd.img -append 'root=/dev/ram0 rw' -cpu core2duo
Additional info on this bug can be found here: http://marc.info/?l=kvm&m=128746013906820&w=2. Note: this is how I discovered the bug, using 32-bit Slackware install CDs.
I'm attaching the initrd I used in my tests: I created two different-sized fake CDROM images by dd'ing from /dev/zero. In my tests, cd1.img is smaller that cd2.img. In the monitor I executed 'change ide1-cd0 /spare2/cd2.img' to load the new image. I checked the size by cat'ing /sys/block/sr0/size in the guest after reading the CDROM. Reading the CDROM was done by typing 'dd if=/dev/sr0 of=/dev/null bs=512 count=3'
** Affects: qemu
Importance: Undecided
Status: New
Signature · 20 lines
CDROM size not updated when changing image files https://bugs.launchpad.net/bugs/670769 You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. Status in QEMU: New Bug description: I'm using qemu 13.0 with a plain Linux kernel using the ata_piix driver as the guest, and an initrd that starts a shell. When changing the image in the monitor and reading from the CDROM in the guest, the size is not updated. I'm using LInux 2.6.32.24 as the host and I've tested 2.6.32.24, 2.6.35, and 2.6.36 as guests. Both host and guest are 64-bit. Here is the command used to start the guest using the initrd: ./x86_64-softmmu/qemu-system-x86_64 -cdrom /spare2/cd1.img -kernel /sources/linux-2.6.32.24-test/arch/x86/boot/bzImage -initrd /spare2/initrd.img -append 'root=/dev/ram0 rw' -cpu core2duo Additional info on this bug can be found here: http://marc.info/?l=kvm&m=128746013906820&w=2. Note: this is how I discovered the bug, using 32-bit Slackware install CDs. I'm attaching the initrd I used in my tests: I created two different-sized fake CDROM images by dd'ing from /dev/zero. In my tests, cd1.img is smaller that cd2.img. In the monitor I executed 'change ide1-cd0 /spare2/cd2.img' to load the new image. I checked the size by cat'ing /sys/block/sr0/size in the guest after reading the CDROM. Reading the CDROM was done by typing 'dd if=/dev/sr0 of=/dev/null bs=512 count=3'
** Attachment added: "initrd.img"
https://bugs.launchpad.net/bugs/670769/+attachment/1722521/+files/initrd.img
Signature · 20 lines
CDROM size not updated when changing image files https://bugs.launchpad.net/bugs/670769 You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. Status in QEMU: New Bug description: I'm using qemu 13.0 with a plain Linux kernel using the ata_piix driver as the guest, and an initrd that starts a shell. When changing the image in the monitor and reading from the CDROM in the guest, the size is not updated. I'm using LInux 2.6.32.24 as the host and I've tested 2.6.32.24, 2.6.35, and 2.6.36 as guests. Both host and guest are 64-bit. Here is the command used to start the guest using the initrd: ./x86_64-softmmu/qemu-system-x86_64 -cdrom /spare2/cd1.img -kernel /sources/linux-2.6.32.24-test/arch/x86/boot/bzImage -initrd /spare2/initrd.img -append 'root=/dev/ram0 rw' -cpu core2duo Additional info on this bug can be found here: http://marc.info/?l=kvm&m=128746013906820&w=2. Note: this is how I discovered the bug, using 32-bit Slackware install CDs. I'm attaching the initrd I used in my tests: I created two different-sized fake CDROM images by dd'ing from /dev/zero. In my tests, cd1.img is smaller that cd2.img. In the monitor I executed 'change ide1-cd0 /spare2/cd2.img' to load the new image. I checked the size by cat'ing /sys/block/sr0/size in the guest after reading the CDROM. Reading the CDROM was done by typing 'dd if=/dev/sr0 of=/dev/null bs=512 count=3'
Please note that until this bug is fixed, one cannot successfully install a guest OS from a set of CD-ROMS where the first disk image is smaller than subsequent ones.
Signature · 20 lines
CDROM size not updated when changing image files https://bugs.launchpad.net/bugs/670769 You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. Status in QEMU: New Bug description: I'm using qemu 13.0 with a plain Linux kernel using the ata_piix driver as the guest, and an initrd that starts a shell. When changing the image in the monitor and reading from the CDROM in the guest, the size is not updated. I'm using LInux 2.6.32.24 as the host and I've tested 2.6.32.24, 2.6.35, and 2.6.36 as guests. Both host and guest are 64-bit. Here is the command used to start the guest using the initrd: ./x86_64-softmmu/qemu-system-x86_64 -cdrom /spare2/cd1.img -kernel /sources/linux-2.6.32.24-test/arch/x86/boot/bzImage -initrd /spare2/initrd.img -append 'root=/dev/ram0 rw' -cpu core2duo Additional info on this bug can be found here: http://marc.info/?l=kvm&m=128746013906820&w=2. Note: this is how I discovered the bug, using 32-bit Slackware install CDs. I'm attaching the initrd I used in my tests: I created two different-sized fake CDROM images by dd'ing from /dev/zero. In my tests, cd1.img is smaller that cd2.img. In the monitor I executed 'change ide1-cd0 /spare2/cd2.img' to load the new image. I checked the size by cat'ing /sys/block/sr0/size in the guest after reading the CDROM. Reading the CDROM was done by typing 'dd if=/dev/sr0 of=/dev/null bs=512 count=3'
Quoted 25 lines · Alex Davis
Please note that until this bug is fixed, one cannot successfully install a guest OS from a set of CD-ROMS where the first disk image is smaller than subsequent ones.
Signature · 20 lines
CDROM size not updated when changing image files https://bugs.launchpad.net/bugs/670769 You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. Status in QEMU: New Bug description: I'm using qemu 13.0 with a plain Linux kernel using the ata_piix driver as the guest, and an initrd that starts a shell. When changing the image in the monitor and reading from the CDROM in the guest, the size is not updated. I'm using LInux 2.6.32.24 as the host and I've tested 2.6.32.24, 2.6.35, and 2.6.36 as guests. Both host and guest are 64-bit. Here is the command used to start the guest using the initrd: ./x86_64-softmmu/qemu-system-x86_64 -cdrom /spare2/cd1.img -kernel /sources/linux-2.6.32.24-test/arch/x86/boot/bzImage -initrd /spare2/initrd.img -append 'root=/dev/ram0 rw' -cpu core2duo Additional info on this bug can be found here: http://marc.info/?l=kvm&m=128746013906820&w=2. Note: this is how I discovered the bug, using 32-bit Slackware install CDs. I'm attaching the initrd I used in my tests: I created two different-sized fake CDROM images by dd'ing from /dev/zero. In my tests, cd1.img is smaller that cd2.img. In the monitor I executed 'change ide1-cd0 /spare2/cd2.img' to load the new image. I checked the size by cat'ing /sys/block/sr0/size in the guest after reading the CDROM. Reading the CDROM was done by typing 'dd if=/dev/sr0 of=/dev/null bs=512 count=3'
Just to clarify, the contents of the image do change, but the reported size does not?
Alex
Signature · 20 lines
CDROM size not updated when changing image files https://bugs.launchpad.net/bugs/670769 You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. Status in QEMU: New Bug description: I'm using qemu 13.0 with a plain Linux kernel using the ata_piix driver as the guest, and an initrd that starts a shell. When changing the image in the monitor and reading from the CDROM in the guest, the size is not updated. I'm using LInux 2.6.32.24 as the host and I've tested 2.6.32.24, 2.6.35, and 2.6.36 as guests. Both host and guest are 64-bit. Here is the command used to start the guest using the initrd: ./x86_64-softmmu/qemu-system-x86_64 -cdrom /spare2/cd1.img -kernel /sources/linux-2.6.32.24-test/arch/x86/boot/bzImage -initrd /spare2/initrd.img -append 'root=/dev/ram0 rw' -cpu core2duo Additional info on this bug can be found here: http://marc.info/?l=kvm&m=128746013906820&w=2. Note: this is how I discovered the bug, using 32-bit Slackware install CDs. I'm attaching the initrd I used in my tests: I created two different-sized fake CDROM images by dd'ing from /dev/zero. In my tests, cd1.img is smaller that cd2.img. In the monitor I executed 'change ide1-cd0 /spare2/cd2.img' to load the new image. I checked the size by cat'ing /sys/block/sr0/size in the guest after reading the CDROM. Reading the CDROM was done by typing 'dd if=/dev/sr0 of=/dev/null bs=512 count=3'
I code, therefore I am
Quoted 48 lines · agraf
From: agraf <[email protected]>
Subject: Re: [Qemu-devel] [Bug 670769] Re: CDROM size not updated when changing image files
To: [email protected]
Date: Tuesday, November 9, 2010, 10:47 PMQuoted 1 line · Alex Davis
Please note that until this bug is fixed, one cannot
successfully
Quoted 1 line
install a guest OS from a set of CD-ROMS where the
first disk image is
Quoted 6 lines
smaller than subsequent ones.
Signature · 3 lines
CDROM size not updated when changing image files https://bugs.launchpad.net/bugs/670769 You received this bug notification because you are amember of qemu-
Quoted 6 lines
devel-ml, which is subscribed to QEMU.
Status in QEMU: New
Bug description:
I'm using qemu 13.0 with a plain Linux kernel usingthe
ata_piixdriver as the guest, and an initrd that starts a shell. When changing the image in the monitor and reading from the CDROM in the guest, the size is not updated. I'm using LInux 2.6.32.24Quoted 1 line
as the host and I've tested 2.6.32.24, 2.6.35, and
2.6.36 as guests. Both host and guest are 64-bit. Here is the command used to start the guest using the initrd:
Quoted 2 lines
./x86_64-softmmu/qemu-system-x86_64 -cdrom
/spare2/cd1.img -kernel /sources/linux-2.6.32.24-test/arch/x86/boot/bzImage -initrd /spare2/initrd.img -append 'root=/dev/ram0 rw' -cpu core2duo
Quoted 2 lines
Additional info on this bug can be found here: http://marc.info/?l=kvm&m=128746013906820&w=2. Note:
this is how I discovered
Quoted 3 lines
the bug, using 32-bit Slackware install CDs.
I'm attaching the initrd I used in my tests: I created
two different-sized fake CDROM images by dd'ing from
/dev/zero. In my tests,Quoted 1 line
cd1.img is smaller that cd2.img. In the monitor I
executed 'change ide1-cd0 /spare2/cd2.img' to load the new image. I checked
Quoted 8 lines
Quoted 1 line
the size by cat'ing
/sys/block/sr0/sizein the guestafter reading the CDROM. Reading the CDROM was done by typing
Quoted 1 line
'dd if=/dev/sr0 of=/dev/null bs=512 count=3'
Just to clarify, the contents of the image do change, but the reported
size does not?
Correct?
Signature · 20 lines
CDROM size not updated when changing image files https://bugs.launchpad.net/bugs/670769 You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. Status in QEMU: New Bug description: I'm using qemu 13.0 with a plain Linux kernel using the ata_piix driver as the guest, and an initrd that starts a shell. When changing the image in the monitor and reading from the CDROM in the guest, the size is not updated. I'm using LInux 2.6.32.24 as the host and I've tested 2.6.32.24, 2.6.35, and 2.6.36 as guests. Both host and guest are 64-bit. Here is the command used to start the guest using the initrd: ./x86_64-softmmu/qemu-system-x86_64 -cdrom /spare2/cd1.img -kernel /sources/linux-2.6.32.24-test/arch/x86/boot/bzImage -initrd /spare2/initrd.img -append 'root=/dev/ram0 rw' -cpu core2duo Additional info on this bug can be found here: http://marc.info/?l=kvm&m=128746013906820&w=2. Note: this is how I discovered the bug, using 32-bit Slackware install CDs. I'm attaching the initrd I used in my tests: I created two different-sized fake CDROM images by dd'ing from /dev/zero. In my tests, cd1.img is smaller that cd2.img. In the monitor I executed 'change ide1-cd0 /spare2/cd2.img' to load the new image. I checked the size by cat'ing /sys/block/sr0/size in the guest after reading the CDROM. Reading the CDROM was done by typing 'dd if=/dev/sr0 of=/dev/null bs=512 count=3'
Quoted 51 lines · Alex Davis
Quoted 49 lines · agraf
From: agraf <[email protected]>
Subject: Re: [Qemu-devel] [Bug 670769] Re: CDROM size not updated when changing image files
To: [email protected]
Date: Tuesday, November 9, 2010, 10:47 PMQuoted 1 line · Alex Davis
Please note that until this bug is fixed, one cannot
successfully
Quoted 1 line
install a guest OS from a set of CD-ROMS where the
first disk image is
Quoted 6 lines
smaller than subsequent ones.
Signature · 3 lines
CDROM size not updated when changing image files https://bugs.launchpad.net/bugs/670769 You received this bug notification because you are amember of qemu-
Quoted 6 lines
devel-ml, which is subscribed to QEMU.
Status in QEMU: New
Bug description:
I'm using qemu 13.0 with a plain Linux kernel usingthe
ata_piixdriver as the guest, and an initrd that starts a shell. When changing the image in the monitor and reading from the CDROM in the guest, the size is not updated. I'm using LInux 2.6.32.24Quoted 1 line
as the host and I've tested 2.6.32.24, 2.6.35, and
2.6.36 as guests. Both host and guest are 64-bit. Here is the command used to start the guest using the initrd:
Quoted 2 lines
./x86_64-softmmu/qemu-system-x86_64 -cdrom
/spare2/cd1.img -kernel /sources/linux-2.6.32.24-test/arch/x86/boot/bzImage -initrd /spare2/initrd.img -append 'root=/dev/ram0 rw' -cpu core2duo
Quoted 2 lines
Additional info on this bug can be found here: http://marc.info/?l=kvm&m=128746013906820&w=2. Note:
this is how I discovered
Quoted 3 lines
the bug, using 32-bit Slackware install CDs.
I'm attaching the initrd I used in my tests: I created
two different-sized fake CDROM images by dd'ing from
/dev/zero. In my tests,Quoted 1 line
cd1.img is smaller that cd2.img. In the monitor I
executed 'change ide1-cd0 /spare2/cd2.img' to load the new image. I checked
Quoted 1 line
the size by cat'ing
/sys/block/sr0/sizein the guest
Quoted 8 lines
Quoted 7 lines
after reading the CDROM. Reading the CDROM was done by typing
Quoted 1 line
'dd if=/dev/sr0 of=/dev/null bs=512 count=3'
Just to clarify, the contents of the image do change, but the reported
size does not?Correct?
Sounds like a missing change event to the guest to me.
Kevin, are you aware of this bug?
Alex
Signature · 20 lines
CDROM size not updated when changing image files https://bugs.launchpad.net/bugs/670769 You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. Status in QEMU: New Bug description: I'm using qemu 13.0 with a plain Linux kernel using the ata_piix driver as the guest, and an initrd that starts a shell. When changing the image in the monitor and reading from the CDROM in the guest, the size is not updated. I'm using LInux 2.6.32.24 as the host and I've tested 2.6.32.24, 2.6.35, and 2.6.36 as guests. Both host and guest are 64-bit. Here is the command used to start the guest using the initrd: ./x86_64-softmmu/qemu-system-x86_64 -cdrom /spare2/cd1.img -kernel /sources/linux-2.6.32.24-test/arch/x86/boot/bzImage -initrd /spare2/initrd.img -append 'root=/dev/ram0 rw' -cpu core2duo Additional info on this bug can be found here: http://marc.info/?l=kvm&m=128746013906820&w=2. Note: this is how I discovered the bug, using 32-bit Slackware install CDs. I'm attaching the initrd I used in my tests: I created two different-sized fake CDROM images by dd'ing from /dev/zero. In my tests, cd1.img is smaller that cd2.img. In the monitor I executed 'change ide1-cd0 /spare2/cd2.img' to load the new image. I checked the size by cat'ing /sys/block/sr0/size in the guest after reading the CDROM. Reading the CDROM was done by typing 'dd if=/dev/sr0 of=/dev/null bs=512 count=3'
I code, therefore I am
Quoted 85 lines · agraf
From: agraf <[email protected]>
Subject: Re: [Qemu-devel] [Bug 670769] Re: CDROM size not updated when changing image files
To: [email protected]
Date: Wednesday, November 10, 2010, 8:11 AMQuoted 1 line · Alex Davis
--- On Tue, 11/9/10, agraf <[email protected]>
Quoted 3 lines · wrote:
Quoted 3 lines
From: agraf <[email protected]>
Subject: Re: [Qemu-devel] [Bug 670769] Re: CDROMsize not updated when changing image files
Quoted 6 lines
Quoted 6 lines
To: [email protected]
Date: Tuesday, November 9, 2010, 10:47 PMQuoted 1 line · Alex Davis
Please note that until this bug is fixed, one
cannot
Quoted 2 lines
Quoted 2 lines
successfully
Quoted 1 line
install a guest OS from a set of CD-ROMS where
the
Quoted 5 lines
Quoted 5 lines
first disk image is
Quoted 4 lines
smaller than subsequent ones.
Signature · 1 line
CDROM size not updated when changing imagefiles
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
https://bugs.launchpad.net/bugs/670769
You received this bug notification because youare a
Quoted 7 lines
Quoted 7 lines
member of qemu-
Quoted 6 lines
devel-ml, which is subscribed to QEMU.
Status in QEMU: New
Bug description:
I'm using qemu 13.0 with a plain Linux kernelusing
Quoted 1 line
Quoted 1 line
the
ata_piixdriver as the guest, and an initrdthat starts
Quoted 1 line
Quoted 1 line
a shell. When changing the image in the monitor
and reading
Quoted 1 line
Quoted 1 line
from the CDROM in the guest, the size is not
updated. I'm
Quoted 2 lines
Quoted 2 lines
using LInux 2.6.32.24
Quoted 1 line
as the host and I've tested 2.6.32.24, 2.6.35,
and
Quoted 1 line
Quoted 1 line
2.6.36 as guests. Both host and guest are
64-bit. Here
Quoted 1 line
Quoted 1 line
is the command used to start the guest using the
initrd:
Quoted 4 lines
Quoted 4 lines
Quoted 2 lines
./x86_64-softmmu/qemu-system-x86_64 -cdrom
/spare2/cd1.img -kernel
/sources/linux-2.6.32.24-test/arch/x86/boot/bzImage -initrd
Quoted 1 line
Quoted 1 line
/spare2/initrd.img -append 'root=/dev/ram0 rw'
-cpu
Quoted 3 lines
Quoted 3 lines
core2duo
Quoted 2 lines
Additional info on this bug can be found here:
http://marc.info/?l=kvm&m=128746013906820&w=2. Note:
Quoted 4 lines
Quoted 4 lines
this is how I discovered
Quoted 3 lines
the bug, using 32-bit Slackware install CDs.
I'm attaching the initrd I used in my tests: I
created
Quoted 1 line
Quoted 1 line
two different-sized fake CDROM images by dd'ing
from
Quoted 2 lines
Quoted 2 lines
/dev/zero. In my tests,Quoted 1 line
cd1.img is smaller that cd2.img. In the
monitor I
Quoted 1 line
Quoted 1 line
executed 'change ide1-cd0 /spare2/cd2.img' to load
the new
Quoted 2 lines
Quoted 2 lines
image. I checked
Quoted 1 line
the size by cat'ing
/sys/block/sr0/sizein theguest
Quoted 1 line
Quoted 1 line
after reading the CDROM. Reading the CDROM was
done by
Quoted 4 lines
Quoted 4 lines
typing
Quoted 1 line
'dd if=/dev/sr0 of=/dev/null bs=512 count=3'
Just to clarify, the contents of the image do
Quoted 9 lines
change, but
Quoted 3 lines
Quoted 2 lines
the reported
size does not?Correct?
Sounds like a missing change event to the guest to me.
Kevin, are you aware of this bug?
I looks like change event is being sent, but it's being eaten by the error recovery in the guest.
Signature · 23 lines
You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/670769 Title: CDROM size not updated when changing image files Status in QEMU: New Bug description: I'm using qemu 13.0 with a plain Linux kernel using the ata_piix driver as the guest, and an initrd that starts a shell. When changing the image in the monitor and reading from the CDROM in the guest, the size is not updated. I'm using LInux 2.6.32.24 as the host and I've tested 2.6.32.24, 2.6.35, and 2.6.36 as guests. Both host and guest are 64-bit. Here is the command used to start the guest using the initrd: ./x86_64-softmmu/qemu-system-x86_64 -cdrom /spare2/cd1.img -kernel /sources/linux-2.6.32.24-test/arch/x86/boot/bzImage -initrd /spare2/initrd.img -append 'root=/dev/ram0 rw' -cpu core2duo Additional info on this bug can be found here: http://marc.info/?l=kvm&m=128746013906820&w=2. Note: this is how I discovered the bug, using 32-bit Slackware install CDs. I'm attaching the initrd I used in my tests: I created two different-sized fake CDROM images by dd'ing from /dev/zero. In my tests, cd1.img is smaller that cd2.img. In the monitor I executed 'change ide1-cd0 /spare2/cd2.img' to load the new image. I checked the size by cat'ing /sys/block/sr0/size in the guest after reading the CDROM. Reading the CDROM was done by typing 'dd if=/dev/sr0 of=/dev/null bs=512 count=3'
** Changed in: qemu
Assignee: (unassigned) => John Snow (jnsnow)
Signature · 28 lines
You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/670769 Title: CDROM size not updated when changing image files Status in QEMU: New Bug description: I'm using qemu 13.0 with a plain Linux kernel using the ata_piix driver as the guest, and an initrd that starts a shell. When changing the image in the monitor and reading from the CDROM in the guest, the size is not updated. I'm using LInux 2.6.32.24 as the host and I've tested 2.6.32.24, 2.6.35, and 2.6.36 as guests. Both host and guest are 64-bit. Here is the command used to start the guest using the initrd: ./x86_64-softmmu/qemu-system-x86_64 -cdrom /spare2/cd1.img -kernel /sources/linux-2.6.32.24-test/arch/x86/boot/bzImage -initrd /spare2/initrd.img -append 'root=/dev/ram0 rw' -cpu core2duo Additional info on this bug can be found here: http://marc.info/?l=kvm&m=128746013906820&w=2. Note: this is how I discovered the bug, using 32-bit Slackware install CDs. I'm attaching the initrd I used in my tests: I created two different-sized fake CDROM images by dd'ing from /dev/zero. In my tests, cd1.img is smaller that cd2.img. In the monitor I executed 'change ide1-cd0 /spare2/cd2.img' to load the new image. I checked the size by cat'ing /sys/block/sr0/size in the guest after reading the CDROM. Reading the CDROM was done by typing 'dd if=/dev/sr0 of=/dev/null bs=512 count=3' To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/670769/+subscriptions
Looking through old bug tickets... can you still reproduce this issue with the latest version of QEMU? Or could we close this ticket nowadays?
** Changed in: qemu
Status: New => Incomplete
** Changed in: qemu
Assignee: John Snow (jnsnow) => (unassigned)
Signature · 28 lines
You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/670769 Title: CDROM size not updated when changing image files Status in QEMU: Incomplete Bug description: I'm using qemu 13.0 with a plain Linux kernel using the ata_piix driver as the guest, and an initrd that starts a shell. When changing the image in the monitor and reading from the CDROM in the guest, the size is not updated. I'm using LInux 2.6.32.24 as the host and I've tested 2.6.32.24, 2.6.35, and 2.6.36 as guests. Both host and guest are 64-bit. Here is the command used to start the guest using the initrd: ./x86_64-softmmu/qemu-system-x86_64 -cdrom /spare2/cd1.img -kernel /sources/linux-2.6.32.24-test/arch/x86/boot/bzImage -initrd /spare2/initrd.img -append 'root=/dev/ram0 rw' -cpu core2duo Additional info on this bug can be found here: http://marc.info/?l=kvm&m=128746013906820&w=2. Note: this is how I discovered the bug, using 32-bit Slackware install CDs. I'm attaching the initrd I used in my tests: I created two different-sized fake CDROM images by dd'ing from /dev/zero. In my tests, cd1.img is smaller that cd2.img. In the monitor I executed 'change ide1-cd0 /spare2/cd2.img' to load the new image. I checked the size by cat'ing /sys/block/sr0/size in the guest after reading the CDROM. Reading the CDROM was done by typing 'dd if=/dev/sr0 of=/dev/null bs=512 count=3' To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/670769/+subscriptions
[Expired for QEMU because there has been no activity for 60 days.]
** Changed in: qemu
Status: Incomplete => Expired
Signature · 28 lines
You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/670769 Title: CDROM size not updated when changing image files Status in QEMU: Expired Bug description: I'm using qemu 13.0 with a plain Linux kernel using the ata_piix driver as the guest, and an initrd that starts a shell. When changing the image in the monitor and reading from the CDROM in the guest, the size is not updated. I'm using LInux 2.6.32.24 as the host and I've tested 2.6.32.24, 2.6.35, and 2.6.36 as guests. Both host and guest are 64-bit. Here is the command used to start the guest using the initrd: ./x86_64-softmmu/qemu-system-x86_64 -cdrom /spare2/cd1.img -kernel /sources/linux-2.6.32.24-test/arch/x86/boot/bzImage -initrd /spare2/initrd.img -append 'root=/dev/ram0 rw' -cpu core2duo Additional info on this bug can be found here: http://marc.info/?l=kvm&m=128746013906820&w=2. Note: this is how I discovered the bug, using 32-bit Slackware install CDs. I'm attaching the initrd I used in my tests: I created two different-sized fake CDROM images by dd'ing from /dev/zero. In my tests, cd1.img is smaller that cd2.img. In the monitor I executed 'change ide1-cd0 /spare2/cd2.img' to load the new image. I checked the size by cat'ing /sys/block/sr0/size in the guest after reading the CDROM. Reading the CDROM was done by typing 'dd if=/dev/sr0 of=/dev/null bs=512 count=3' To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/670769/+subscriptions