Re: [Qemu-devel] Problems changing dvdrom iso during execution
Would you please test on SLES11 with another kernel revision? Possible, with various one, both lower and upper? El 22/05/2010, a las 00:45, Adnan Khaleel escribió: > It works in ubuntu 9.10. When I mount the CDROM the first time it mounts > fine. After I change the iso file and mount, it spits out a bunch of messages > but it does mount the drive. I think this problem might be specific to > sles11. > > > > > > On May 21, 2010, at 5:37 PM, Natalia Portillo wrote: > >> Have you tried any other operating system or kernel revision? >> >> I have just changed the iso with change ide1-cd0 command in Windows XP >> Upgrade (it asks to insert a previous Windows CD and then reinsert the XP >> one) without any kind of problem, in QEMU 0.12.4. >> >> El 21/05/2010, a las 20:42, Adnan Khaleel escribió: >> >>> Tried that, still the same. >>> >>> My current workaround is to mount all the DVD iso files as separate hard >>> disks and mount those. This worked but its a workaround at best. Not sure >>> what I'd do if ever had to access more then 3 dvd's at a time - which I >>> doubt should happen anytime soon. >>> >>> >>> From: David S. Ahern [mailto:daah...@cisco.com] >>> To: ad...@khaleel.us >>> Cc: Qemu-devel@nongnu.org >>> Sent: Fri, 21 May 2010 13:47:00 -0500 >>> Subject: Re: [Qemu-devel] Problems changing dvdrom iso during execution >>> >>> >>> >>> On 05/21/2010 10:10 AM, Adnan Khaleel wrote: >>> > So do you have any idea whats causing the problem? Is there any other >>> > way I can mount a dvd in Qemu? >>> > >>> > Adnan >>> >>> have you tried ejecting the cd in the guest before changing the file in >>> the monitor? >>> >>> David >>
Re: [Qemu-devel] Problems changing dvdrom iso during execution
It works in ubuntu 9.10. When I mount the CDROM the first time it mounts fine. After I change the iso file and mount, it spits out a bunch of messages but it does mount the drive. I think this problem might be specific to sles11. On May 21, 2010, at 5:37 PM, Natalia Portillo wrote: Have you tried any other operating system or kernel revision? I have just changed the iso with change ide1-cd0 command in Windows XP Upgrade (it asks to insert a previous Windows CD and then reinsert the XP one) without any kind of problem, in QEMU 0.12.4. El 21/05/2010, a las 20:42, Adnan Khaleel escribió: Tried that, still the same. My current workaround is to mount all the DVD iso files as separate hard disks and mount those. This worked but its a workaround at best. Not sure what I'd do if ever had to access more then 3 dvd's at a time - which I doubt should happen anytime soon. From: David S. Ahern [mailto:daah...@cisco.com] To: ad...@khaleel.us Cc: Qemu-devel@nongnu.org Sent: Fri, 21 May 2010 13:47:00 -0500 Subject: Re: [Qemu-devel] Problems changing dvdrom iso during execution On 05/21/2010 10:10 AM, Adnan Khaleel wrote: > So do you have any idea whats causing the problem? Is there any other > way I can mount a dvd in Qemu? > > Adnan have you tried ejecting the cd in the guest before changing the file in the monitor? David
Re: [Qemu-devel] Problems changing dvdrom iso during execution
Have you tried any other operating system or kernel revision? I have just changed the iso with change ide1-cd0 command in Windows XP Upgrade (it asks to insert a previous Windows CD and then reinsert the XP one) without any kind of problem, in QEMU 0.12.4. El 21/05/2010, a las 20:42, Adnan Khaleel escribió: > Tried that, still the same. > > My current workaround is to mount all the DVD iso files as separate hard > disks and mount those. This worked but its a workaround at best. Not sure > what I'd do if ever had to access more then 3 dvd's at a time - which I doubt > should happen anytime soon. > > > From: David S. Ahern [mailto:daah...@cisco.com] > To: ad...@khaleel.us > Cc: Qemu-devel@nongnu.org > Sent: Fri, 21 May 2010 13:47:00 -0500 > Subject: Re: [Qemu-devel] Problems changing dvdrom iso during execution > > > > On 05/21/2010 10:10 AM, Adnan Khaleel wrote: > > So do you have any idea whats causing the problem? Is there any other > > way I can mount a dvd in Qemu? > > > > Adnan > > have you tried ejecting the cd in the guest before changing the file in > the monitor? > > David
Re: [Qemu-devel] Problems changing dvdrom iso during execution
Tried that, still the same. My current workaround is to mount all the DVD iso files as separate hard disks and mount those. This worked but its a workaround at best. Not sure what I'd do if ever had to access more then 3 dvd's at a time - which I doubt should happen anytime soon. _ From: David S. Ahern [mailto:daah...@cisco.com] To: ad...@khaleel.us Cc: Qemu-devel@nongnu.org Sent: Fri, 21 May 2010 13:47:00 -0500 Subject: Re: [Qemu-devel] Problems changing dvdrom iso during execution On 05/21/2010 10:10 AM, Adnan Khaleel wrote: > So do you have any idea whats causing the problem? Is there any other > way I can mount a dvd in Qemu? > > Adnan have you tried ejecting the cd in the guest before changing the file in the monitor? David
Re: [Qemu-devel] Problems changing dvdrom iso during execution
On 05/21/2010 10:10 AM, Adnan Khaleel wrote: > So do you have any idea whats causing the problem? Is there any other > way I can mount a dvd in Qemu? > > Adnan have you tried ejecting the cd in the guest before changing the file in the monitor? David
Re: [Qemu-devel] Problems changing dvdrom iso during execution
So do you have any idea whats causing the problem? Is there any other way I can mount a dvd in Qemu? Adnan _ From: David S. Ahern [mailto:daah...@cisco.com] To: ad...@khaleel.us Cc: Qemu-devel@nongnu.org Sent: Thu, 20 May 2010 17:45:11 -0500 Subject: Re: [Qemu-devel] Problems changing dvdrom iso during execution On 05/20/2010 03:48 PM, Adnan Khaleel wrote: > Thanks for your response. > > > Does it work if the guest uses ide based CD's: > rmmod ide-scsi > modprobe ide-cd > > There isn't an ide-scsi but there is a scsi_mod and when I try to remove > that it gives > ERROR: Module scsi_mod is in use by sr_mod,sg,sd_mod,libata > > modprobe ide-cd seems to work. Ok, I pulled those from a RHEL3 VM. Looks like SLES11 is using a newer 2.6 kernel. The idea I was poking at was to get the CD in the VM to go through the ide-cd layer and not the ata/scsi route. I had to do that for my RHEL3 guest to get some consistency with the DVD -- similar to the problem you are seeing. David > > However it doesn't fix the problem. > > Interestingly, before doing modprobe ide-cd, > linux> lsmod | grep ide > ide_pci_generic 46520 > ide_core 115068 2 ide_pci_generic, piix > > After the modprobe ide-cd, I get > ide_cd_mod 339840 > cdrom 362002 ide_cd_mod, sr_mod > ide_pci_generic 46520 > ide_core 115068 3 ide_cd_mod, ide_pci_generic, piix > > > >
Re: [Qemu-devel] Problems changing dvdrom iso during execution
On 05/20/2010 03:48 PM, Adnan Khaleel wrote: > Thanks for your response. > > > Does it work if the guest uses ide based CD's: > rmmod ide-scsi > modprobe ide-cd > > There isn't an ide-scsi but there is a scsi_mod and when I try to remove > that it gives > ERROR: Module scsi_mod is in use by sr_mod,sg,sd_mod,libata > > modprobe ide-cd seems to work. Ok, I pulled those from a RHEL3 VM. Looks like SLES11 is using a newer 2.6 kernel. The idea I was poking at was to get the CD in the VM to go through the ide-cd layer and not the ata/scsi route. I had to do that for my RHEL3 guest to get some consistency with the DVD -- similar to the problem you are seeing. David > > However it doesn't fix the problem. > > Interestingly, before doing modprobe ide-cd, > linux> lsmod | grep ide > ide_pci_generic 46520 > ide_core 115068 2 ide_pci_generic, piix > > After the modprobe ide-cd, I get > ide_cd_mod 339840 > cdrom 362002 ide_cd_mod, sr_mod > ide_pci_generic 46520 > ide_core 115068 3 ide_cd_mod, ide_pci_generic, piix > > > >
Re: [Qemu-devel] Problems changing dvdrom iso during execution
Thanks for your response. Does it work if the guest uses ide based CD's: rmmod ide-scsi modprobe ide-cd There isn't an ide-scsi but there is a scsi_mod and when I try to remove that it gives ERROR: Module scsi_mod is in use by sr_mod,sg,sd_mod,libata modprobe ide-cd seems to work. However it doesn't fix the problem. Interestingly, before doing modprobe ide-cd, linux> lsmod | grep ide ide_pci_generic 46520 ide_core 115068 2 ide_pci_generic, piix After the modprobe ide-cd, I get ide_cd_mod 339840 cdrom 362002 ide_cd_mod, sr_mod ide_pci_generic 46520 ide_core 115068 3 ide_cd_mod, ide_pci_generic, piix
Re: [Qemu-devel] Problems changing dvdrom iso during execution
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
[Qemu-devel] Problems changing dvdrom iso during execution
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? Thanks AK