Skip to contentSkip to conversation

Attaching audio CD to VM instance

DISCUSSION Erik Lotspeich 2 participants 2 messages Aug 2, 2012 – Aug 3, 2012 KVM

lore
Share & tools
lore
#0 lore raw

Hi,

I haven't seen this question asked before. Is it possible to mount an audio CD is a "raw" mode to that a VM instance can access the audio tracks as if it were a physical CD-ROM drive? It seems that the current implementation presents a CD-ROM to the VM, not CD-DA.

Thanks!

Regards

Erik

maintainer
#1 lore raw

Il 02/08/2012 22:21, Erik Lotspeich ha scritto:

Quoted 6 lines

Hi,

I haven't seen this question asked before. Is it possible to mount an audio CD is a "raw" mode to that a VM instance can access the audio tracks as if it were a physical CD-ROM drive? It seems that the current implementation presents a CD-ROM to the VM, not CD-DA.

You can do this with SCSI pass-through. With QEMU you can use this command line:

-device virtio-scsi-pci
-drive if=none,file=/dev/sr0,id=sr0
-device scsi-block,drive=sr0

if you have a new enough guest (Linux 3.4+ or Fedora 16 or RHEL6.3 or clones). Older guests can use "-device lsi" instead.

Paolo