From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MHGse-0003e3-CF for qemu-devel@nongnu.org; Thu, 18 Jun 2009 08:38:12 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MHGsY-0003bq-V1 for qemu-devel@nongnu.org; Thu, 18 Jun 2009 08:38:11 -0400 Received: from [199.232.76.173] (port=57793 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MHGsY-0003bO-Jp for qemu-devel@nongnu.org; Thu, 18 Jun 2009 08:38:06 -0400 Received: from mx2.redhat.com ([66.187.237.31]:46322) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MHGsY-0005p8-5Q for qemu-devel@nongnu.org; Thu, 18 Jun 2009 08:38:06 -0400 Date: Thu, 18 Jun 2009 13:37:59 +0100 From: "Richard W.M. Jones" Subject: Re: [Qemu-devel] Regression opening read-only cdroms Message-ID: <20090618123759.GA7041@amd.home.annexia.org> References: <4A37896C.8050208@redhat.com> <20090616143259.GA29040@shareable.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090616143259.GA29040@shareable.org> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jamie Lokier Cc: qemu-devel , Avi Kivity , Christoph Hellwig On Tue, Jun 16, 2009 at 03:33:00PM +0100, Jamie Lokier wrote: > Avi Kivity wrote: > > qemu used to be quite happy opening read-only cdrom images, and I was > > quite happy feeding kvm-autotest a library of read-only iso images. > > 1. While we're here, an _option_ to open an image read-only even when > you have write permission would be useful, for those occasions when > you want to boot from some valuable image and be certain you aren't > modifying it - without having to chmod back and forth in > Qemu-wrapper scripts, or copy the image first. FWIW we went round the houses on this one for libguestfs and settled on using '-drive ...,snapshot=on' instead. The guest sees the drive as writable, and any writes are discarded when libguestfs/qemu quits. Rich. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones virt-p2v converts physical machines to virtual machines. Boot with a live CD or over the network (PXE) and turn machines into Xen guests. http://et.redhat.com/~rjones/virt-p2v