All of lore.kernel.org
 help / color / mirror / Atom feed
From: "David S. Ahern" <daahern@cisco.com>
To: adnan@khaleel.us
Cc: Qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Problems changing dvdrom iso during execution
Date: Thu, 20 May 2010 14:44:17 -0600	[thread overview]
Message-ID: <4BF59F21.5000809@cisco.com> (raw)
In-Reply-To: <20100520202903.2a9a8095@shadowfax.no-ip.com>



On 05/20/2010 02:29 PM, Adnan Khaleel wrote:
> 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
> x86_64-softmmu/qemu-system-x86_64 -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=hd removable=0 file../../OSImages/sles11.qcow2 ro=0
> drv=dcow2 encrypted=0
> ide1-cd0: type=cdrom removable=1 locked=1 file=../../ISOz/mydvd.iso ro=0
> drv=raw encrypted=0
> floppy0: type=floppy removable=1 locked=0 [not inserted]
> sd0: type=floppy removable=1 locked=0 [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=hd removable=0 file../../OSImages/sles11.qcow2 ro=0
> drv=dcow2 encrypted=0
> ide1-cd0: type=cdrom removable=1 locked=1 [not inserted]
> floppy0: type=floppy removable=1 locked=0 [not inserted]
> sd0: type=floppy removable=1 locked=0 [not inserted]
> 
> I change the iso image with (or so it seems)
> 
> (qemu) change ide1-cd0 ../../ISOz/mydvd2_rom.iso
> (qemu) info block
> ide0-hd0: type=hd removable=0 file../../OSImages/sles11.qcow2 ro=0
> drv=dcow2 encrypted=0
> ide1-cd0: type=cdrom removable=1 locked=1 file=../../ISOz/mydvd2.iso
> ro=0 drv=raw encrypted=0
> floppy0: type=floppy removable=1 locked=0 [not inserted]
> sd0: type=floppy removable=1 locked=0 [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 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?

Does it work if the guest uses ide based CD's:
rmmod ide-scsi
modprobe ide-cd

David


> 
> Thanks
> 
> AK

  reply	other threads:[~2010-05-20 20:44 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-20 20:29 [Qemu-devel] Problems changing dvdrom iso during execution Adnan Khaleel
2010-05-20 20:44 ` David S. Ahern [this message]
  -- strict thread matches above, loose matches on Subject: below --
2010-05-20 21:48 Adnan Khaleel
2010-05-20 22:45 ` David S. Ahern
2010-05-21 16:10 Adnan Khaleel
2010-05-21 18:47 ` David S. Ahern
2010-05-21 19:42 Adnan Khaleel
2010-05-21 22:37 ` Natalia Portillo
2010-05-21 23:45   ` Adnan Khaleel
2010-05-22  4:35     ` Natalia Portillo

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=4BF59F21.5000809@cisco.com \
    --to=daahern@cisco.com \
    --cc=Qemu-devel@nongnu.org \
    --cc=adnan@khaleel.us \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.