Skip to contentSkip to conversation

QEMU and REAL media (CD's, DVD's, floppies)

Qemu-devel Hetz Ben Hamo 4 participants 4 messages May 26, 2004 – May 28, 2004

lore
Share & tools
lore
#0 lore raw

Hi,

Just a small question for my howto:

Does QEMU at the moment support real medias like floppies or CD's? if so, how to use it?

Thanks,
Hetz

#1 lore raw

El Wed, May 26, 2004 at 07:11:43PM +0300, Hetz Ben Hamo escribio:

Quoted 7 lines

Hi,

Just a small question for my howto:

Does QEMU at the moment support real medias like floppies or CD's? if so, how to use it?

Simple:

qemu -cdrom /dev/cdrom -fda /dev/fd0

You need read/write permisions to the cdrom/floppy devices (in Debian, it means add your user to groups "cdrom" and "floppy".

Daniel.

#2 lore raw
Quoted 10 lines

Simple:

qemu -cdrom /dev/cdrom -fda /dev/fd0

You need read/write permisions to the cdrom/floppy devices (in Debian, it means add your user to groups "cdrom" and "floppy".

It doesn't work. Because qemu tries to open them at startup and if there is no media it will simply give error. One way is showing some dummy images at startup and changing after boot.

#3 lore raw
In reply to Daniel Serpell
Quoted 6 lines · On Thu, 27 May 2004 09:58:44 -0400 Daniel Serpell <[email protected]>…

Simple:

qemu -cdrom /dev/cdrom -fda /dev/fd0

You need read/write permisions to the cdrom/floppy devices (in Debian, it means add your user to groups "cdrom" and "floppy".

CD-ROMs don't work on FreeBSD (I've mentioned this earlier, too). On FreeBSD one only can read CDs in 2048 byte blocks. QEMU tries to read a smaller blocks, at least when it tries to figure out whether the image is a COW image.

I had some patches lying around, but they fixed the problem only partially. CDs work with Bochs, however. So Bochs is aware of this restriction.

Markus