From: Alex Davis <alex14641@yahoo.com>
To: kvm@vger.kernel.org
Subject: CD-ROM size not updated when switching CD-ROM images.
Date: Mon, 18 Oct 2010 20:43:36 -0700 (PDT) [thread overview]
Message-ID: <793151.2095.qm@web50203.mail.re2.yahoo.com> (raw)
Steps to reproduce:
) Download the first two Slackware-13.1 32-bit CD-ROM ISO images.
) Start KVM with the following command
qemu-system-x86_64 -m 1024M \
-cdrom < full path of 1st install disk > \
-boot d
) Hit return when prompted for extra boot parameters.
) Hit return when asked to select a keyboard map.
) Hit return at the login prompt.
) cat /sys/block/sr0/size: this should return 1209360.
) Press Alt-Ctrl-2 to access the monitor
) eject ide1-cd0
) change ide1-cd0 < full path name of 2nd install disk >
) Press Alt-Ctrl-1 to return to the guest.
) dd if=/dev/sr0 of=/dev/null bs=512 skip=1209360 count=3
this should return
3+0 records in
3+0 records out.
instead it returns 0+0....
) cat /sys/block/sr0/size: this still returns 1209360; it should return 1376736.
Oddly, when "mount /dev/sr0 ...." is executed in the guest, ls of the mounted directory shows the correct contents for the 2nd CD.
KVM version is kvm-qemu-0.13.0
Host CPU model name : Intel(R) Core(TM)2 Duo CPU E8600 @ 3.33GHz
Host kernel is 2.6.32.12
Host arch is x86_64
Guest is Slackware 13.1 32-bit
Guest kernel version is 2.6.33.4
Start command:
qemu-system-x86_64 -m 1024M \
-cdrom /spare2/slackware-13.1-install-d1.iso \
-boot d
Not affected by -no-kvm-irqchip
Not affected by -no-kvm-pit
Not affected by -no-kvm
I can test patches.
Built with:
bash-3.2$ ./configure --prefix=/usr/kvm-qemu-0.13.0 --extra-ldflags="-L/usr/X11R7.4/lib"
Install prefix /usr/kvm-qemu-0.13.0
BIOS directory /usr/kvm-qemu-0.13.0/share/qemu
binary directory /usr/kvm-qemu-0.13.0/bin
config directory /usr/kvm-qemu-0.13.0/etc
Manual directory /usr/kvm-qemu-0.13.0/share/man
ELF interp prefix /usr/gnemul/qemu-%M
Source path /sources/qemu-kvm-0.13.0
C compiler gcc
Host C compiler gcc
CFLAGS -O2 -g
QEMU_CFLAGS -m64 -fstack-protector-all -Wold-style-definition -I. -I$(SRC_PATH) -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wstrict-prototypes -Wredundant-decls -Wall -Wundef -Wendif-labels -Wwrite-strings -Wmissing-prototypes -fno-strict-aliasing
LDFLAGS -Wl,--warn-common -m64 -g -L/usr/X11R7.4/lib
make make
install install
host CPU x86_64
host big endian no
target list x86_64-softmmu
tcg debug enabled no
Mon debug enabled no
gprof enabled no
sparse enabled no
strip binaries yes
profiler no
static build no
-Werror enabled no
SDL support yes
curses support yes
curl support yes
check support no
mingw32 support no
Audio drivers oss
Extra audio cards ac97 es1370 sb16
Block whitelist
Mixer emulation no
VNC TLS support no
VNC SASL support yes
VNC JPEG support yes
VNC PNG support yes
VNC thread no
xen support no
CPU emulation yes
brlapi support no
bluez support no
Documentation yes
NPTL support yes
GUEST_BASE yes
PIE user targets no
vde support no
IO thread no
Linux AIO support no
ATTR/XATTR support yes
Install blobs yes
KVM support yes
KVM PIT support yes
KVM device assig. yes
fdt support no
preadv support no
fdatasync yes
uuid support yes
vhost-net support yes
I code, therefore I am
next reply other threads:[~2010-10-19 3:48 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-19 3:43 Alex Davis [this message]
2010-10-19 8:31 ` CD-ROM size not updated when switching CD-ROM images Stefan Hajnoczi
2010-10-20 0:03 ` Alex Davis
2010-10-20 16:44 ` David Ahern
2010-10-20 23:28 ` Alex Davis
2010-10-30 20:32 ` Alex Davis
-- strict thread matches above, loose matches on Subject: below --
2010-10-20 12:50 Alex Davis
2010-10-30 21:24 Alex Davis
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=793151.2095.qm@web50203.mail.re2.yahoo.com \
--to=alex14641@yahoo.com \
--cc=kvm@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox