From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HJDXU-0003ar-Ne for qemu-devel@nongnu.org; Mon, 19 Feb 2007 13:47:04 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HJDXQ-0003WF-Uf for qemu-devel@nongnu.org; Mon, 19 Feb 2007 13:47:04 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HJDXQ-0003WC-Qo for qemu-devel@nongnu.org; Mon, 19 Feb 2007 13:47:00 -0500 Received: from mu-out-0910.google.com ([209.85.134.188]) by monty-python.gnu.org with esmtp (Exim 4.52) id 1HJDXQ-0001dn-M4 for qemu-devel@nongnu.org; Mon, 19 Feb 2007 13:47:00 -0500 Received: by mu-out-0910.google.com with SMTP id w8so576390mue for ; Mon, 19 Feb 2007 10:46:58 -0800 (PST) Message-ID: Date: Mon, 19 Feb 2007 10:46:57 -0800 From: IdaRub MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: [Qemu-devel] loadvm on a read only image Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org I would like to be able to restore a snapshot from a disk image file with read only permissions, for example stored on a cdrom. QEMU checks if an image supports snapshots (bdrv_can_snapshot, etc) and will fail if the disk is read only. As a quick test, I patched out these checks and QEMU will boot the snapshot, but it will hang after a little while eating 100% cpu. My guess would be this is some timer to flush data back to disk, but I haven't looked into it at all. The -snapshot option does support snapshots on read only images, however when looking for snapshot it looks in the newly created temporary backing file. This is nice because you can create/delete snapshots in a sandbox, but you can't restore a snapshot stored in the original disk image. Any ideas on what would be easier/better, trying to restore snapshots in the base image with -snapshot, or trying to make QEMU support snapshots on a read only image? Thanks