From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=60845 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OFCMf-0002C8-6S for Qemu-devel@nongnu.org; Thu, 20 May 2010 16:29:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OFCMd-0007wE-Fw for Qemu-devel@nongnu.org; Thu, 20 May 2010 16:29:09 -0400 Received: from smtp.mailix.net ([66.11.225.183]:12936) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OFCMd-0007w2-7i for Qemu-devel@nongnu.org; Thu, 20 May 2010 16:29:07 -0400 Received: from [70.124.59.51] (helo=shadowfax.no-ip.com) by smtp.mailix.net with asmtp (Exim 4.24-CA) id 1OFCMc-00021l-Gu for Qemu-devel@nongnu.org; Thu, 20 May 2010 13:29:06 -0700 Received: from [136.162.34.1] ([136.162.34.1]) by shadowfax.no-ip.com (Kerio MailServer 6.7.2) for Qemu-devel@nongnu.org; Thu, 20 May 2010 15:29:03 -0500 From: "Adnan Khaleel" Message-ID: <20100520202903.2a9a8095@shadowfax.no-ip.com> Date: Thu, 20 May 2010 15:29:03 -0500 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="-----------95571e881ab836402532bdcb2df5f3dd" Subject: [Qemu-devel] Problems changing dvdrom iso during execution Reply-To: adnan@khaleel.us List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Qemu-devel@nongnu.org This is a multi-part message in MIME format. -------------95571e881ab836402532bdcb2df5f3dd Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable I cannot change DVD roms during execution using the monitor. I can only = mount a cdrom/dvdrom if I specify the iso file in the command line=20 x86=5F64-softmmu/qemu-system-x86=5F64 -hda ../../OSImages/sles11.qcow2 -= cdrom ../../ISOz/mydvd.iso -m 2048 In the guest I can mount the iso image as you could normally expect mount /dev/cdrom /mnt mount: block device /dev/sr0 is write-protected, mounting read-only Info block in the monitor yields (qemu) info block ide0-hd0: type=3Dhd removable=3D0 file../../OSImages/sles11.qcow2 ro= =3D0 drv=3Ddcow2 encrypted=3D0 ide1-cd0: type=3Dcdrom removable=3D1 locked=3D1 file=3D../../ISOz/mydv= d.iso ro=3D0 drv=3Draw encrypted=3D0 floppy0: type=3Dfloppy removable=3D1 locked=3D0 [not inserted] sd0: type=3Dfloppy removable=3D1 locked=3D0 [not inserted] When I try to do a eject ide0-cd0, I get a device busy message so I have= to do a eject -f ide0-cd0 After which, an info block yields: (qemu) info block ide0-hd0: type=3Dhd removable=3D0 file../../OSImages/sles11.qcow2 ro=3D0= drv=3Ddcow2 encrypted=3D0 ide1-cd0: type=3Dcdrom removable=3D1 locked=3D1 [not inserted] floppy0: type=3Dfloppy removable=3D1 locked=3D0 [not inserted] sd0: type=3Dfloppy removable=3D1 locked=3D0 [not inserted] I change the iso image with (or so it seems) (qemu) change ide1-cd0 ../../ISOz/mydvd2=5From.iso (qemu) info block ide0-hd0: type=3Dhd removable=3D0 file../../OSImages/sles11.qcow2 ro=3D0= drv=3Ddcow2 encrypted=3D0 ide1-cd0: type=3Dcdrom removable=3D1 locked=3D1 file=3D../../ISOz/mydvd2= .iso ro=3D0 drv=3Draw encrypted=3D0 floppy0: type=3Dfloppy removable=3D1 locked=3D0 [not inserted] sd0: type=3Dfloppy removable=3D1 locked=3D0 [not inserted] I go back to the guest and when I try to mount: mount /dev/cdrom /mnt=20 mount: /dev/sr0 unknown device I'm running sles11 as guest and I think it may have something to do with= sles11 as it works fine with ubuntu9. Any ideas what might be happening=3F Thanks AK -------------95571e881ab836402532bdcb2df5f3dd Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable I cannot change DVD roms during execution using the monitor. I can only = mount a cdrom/dvdrom if I specify the iso file in the command line
<= span style=3D"font-family: Courier;">x86=5F64-softmmu/qemu-system-x86=5F= 64 -hda ../../OSImages/sles11.qcow2 -cdrom ../../ISOz/mydvd.iso -m 2048<= /span>

In the guest I can mount the iso image as you could normal= ly expect
mount /dev/cdrom /mnt=
mount: block device /dev/sr0 is write-protected, mounting read-= only

Info block in the monitor yields
(qemu) info block
ide0-hd0: type=3Dhd removable=3D0 file../../OSImages/sles11.qcow2 ro=3D0= =20 drv=3Ddcow2 encrypted=3D0
ide1-cd0: type=3Dcdrom removable=3D1 locked=3D1 file=3D../../ISOz/mydvd.= iso=20 ro=3D0 drv=3Draw encrypted=3D0
floppy0: type=3Dfloppy removable=3D1 locked=3D0 [not inserted] sd0: type=3Dfloppy removable=3D1 locked=3D0 [not inserted]
When I try to do a eject ide0-cd0, I get a device busy message so I hav= e to do a eject -f ide0-cd0

After which, an info block yields:(qemu) info block
ide0-hd= 0: type=3Dhd removable=3D0 file../../OSImages/sles11.qcow2 ro=3D0=20 drv=3Ddcow2 encrypted=3D0
ide1-cd0: type=3Dcdrom removable=3D1 locked=3D1 [not inserted] floppy0: type=3Dfloppy removable=3D1 locked=3D0 [not inserted] sd0: type=3Dfloppy removable=3D1 locked=3D0 [not inserted]
I change the iso image with (or so it seems)

(qemu) change ide1-cd0 ../../ISOz/mydvd2=5From.iso
(qemu) info block
ide0-hd0: type=3Dhd removable=3D0 file..= /../OSImages/sles11.qcow2 ro=3D0 drv=3Ddcow2 encrypted=3D0
ide1-= cd0: type=3Dcdrom removable=3D1 locked=3D1 file=3D../../ISOz/mydvd2.iso = ro=3D0 drv=3Draw encrypted=3D0
floppy0: type=3Dfloppy removable= =3D1 locked=3D0 [not inserted]
sd0: type=3Dfloppy removable=3D1 = locked=3D0 [not inserted]

I go back to the guest and when = I try to mount:

mount /dev/= cdrom /mnt
mount: /dev/sr0 unknown device

I'm run= ning sles11 as guest and I think it may have something to do with sles11= as it works fine with ubuntu9.

Any ideas what might be happening= =3F

Thanks

AK
-------------95571e881ab836402532bdcb2df5f3dd--