From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MGcoZ-0001sb-PH for qemu-devel@nongnu.org; Tue, 16 Jun 2009 13:51:19 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MGcoV-0001qJ-A0 for qemu-devel@nongnu.org; Tue, 16 Jun 2009 13:51:19 -0400 Received: from [199.232.76.173] (port=34139 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MGcoV-0001q3-0L for qemu-devel@nongnu.org; Tue, 16 Jun 2009 13:51:15 -0400 Received: from mail2.shareable.org ([80.68.89.115]:48798) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MGcoU-0001Vt-GT for qemu-devel@nongnu.org; Tue, 16 Jun 2009 13:51:14 -0400 Date: Tue, 16 Jun 2009 18:51:12 +0100 From: Jamie Lokier Subject: Re: [Qemu-devel] Regression opening read-only cdroms Message-ID: <20090616175112.GB11893@shareable.org> References: <4A37896C.8050208@redhat.com> <20090616143259.GA29040@shareable.org> <4A37B756.6090008@redhat.com> <20090616155438.GL29040@shareable.org> <4A37C58C.3000003@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4A37C58C.3000003@redhat.com> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Avi Kivity Cc: Christoph Hellwig , qemu-devel Avi Kivity wrote: > On 06/16/2009 06:54 PM, Jamie Lokier wrote: > >read-only disk images don't make much sense. > > > > > >And yet "chmod 444 image; qemu ..." works. > >If you're booting from a disk you don't need to write to, obviously. > >Generally it'll need to be mounted read-only in the guest. > > > > It will eventually fail. Open the ext3 log, update atime, or > something. The guest expects the disk to be writeable. No. Obviously if you _want_ to run a guest with the disk mounted writable, you'll use snapshot=on instead because that's what it's for. Otherwise, a read-only disk should works fine using virtio/SCSI/USB, as the guest will mount it read-only, as those interfaces all have a read-only media flag which Linux guests (at least) look at. Which is the desired behaviour. -- Jamie