From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:53596) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TWDxw-00082K-0V for qemu-devel@nongnu.org; Wed, 07 Nov 2012 17:19:22 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TWDxu-00083W-79 for qemu-devel@nongnu.org; Wed, 07 Nov 2012 17:19:19 -0500 Received: from mail-da0-f45.google.com ([209.85.210.45]:61715) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TWDxu-00081y-0C for qemu-devel@nongnu.org; Wed, 07 Nov 2012 17:19:18 -0500 Received: by mail-da0-f45.google.com with SMTP id n15so857510dad.4 for ; Wed, 07 Nov 2012 14:19:17 -0800 (PST) Message-ID: <509ADE61.8070201@gmail.com> Date: Thu, 08 Nov 2012 06:19:13 +0800 From: ching MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] mask specific partition from guest List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Hi all, I am trying to boot a real Linux OS inside qemu. The OS resides on a real disk with a partition layout: 1. data 2. os 3. data Partiton 1 is being used by the host and i would like to hide it from guest. In virtualbox/vmware, this can be done by creating a vmdk file marking corresponding extent as "ZERO" and it will ignores all writes. e.g. version=1 encoding="UTF-8" CID=0510e33b parentCID=ffffffff isNativeSnapshot="no" createType="partitionedDevice" RW 34 FLAT "header" 0 RW 2014 ZERO RW 204800 ZERO RW 262144 ZERO RW 125364224 ZERO RW 1124425728 FLAT "/dev/sdc" 125833216 ... How can this be done in qemu/kvm? ching