[Qemu-devel] Problems changing dvdrom iso during execution
From:
Adnan Khaleel
Subject:
[Qemu-devel] Problems changing dvdrom iso during execution
Date:
Thu, 20 May 2010 15:29:03 -0500
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]