From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paolo Bonzini Subject: Re: Attaching audio CD to VM instance Date: Fri, 03 Aug 2012 09:06:25 +0200 Message-ID: <501B7871.9010905@redhat.com> References: <501AE130.3030407@lotspeich.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: kvm@vger.kernel.org To: Erik Lotspeich Return-path: Received: from mail-wg0-f44.google.com ([74.125.82.44]:64557 "EHLO mail-wg0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751750Ab2HCHG2 (ORCPT ); Fri, 3 Aug 2012 03:06:28 -0400 Received: by wgbdr13 with SMTP id dr13so358010wgb.1 for ; Fri, 03 Aug 2012 00:06:27 -0700 (PDT) In-Reply-To: <501AE130.3030407@lotspeich.org> Sender: kvm-owner@vger.kernel.org List-ID: Il 02/08/2012 22:21, Erik Lotspeich ha scritto: > 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