qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: ching <lsching17@gmail.com>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] mask specific partition from guest
Date: Thu, 08 Nov 2012 06:19:13 +0800	[thread overview]
Message-ID: <509ADE61.8070201@gmail.com> (raw)

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

                 reply	other threads:[~2012-11-07 22:19 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=509ADE61.8070201@gmail.com \
    --to=lsching17@gmail.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).