public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: paolo pedaletti <paolo.pedaletti@gmail.com>
To: Толя <tolik2525@mail.ru>
Cc: kvm@vger.kernel.org
Subject: Re: how to assign partition as partition for KVM?
Date: Thu, 15 Jan 2009 09:05:38 +0100	[thread overview]
Message-ID: <496EEE52.1040007@gmail.com> (raw)
In-Reply-To: <E1LNJI0-0000fJ-00.tolik2525-mail-ru@f160.mail.ru>

Ciao Толя,

> Is there any way to assign single partition to KVM virtual machine (for example, i need to assign /dev/sda1 on my host as /dev/hda1 on VM)
> In XEN this assignment looks like disk=[ 'phy:/dev/lvm_dg-vol1,xvda1,w',].

with LVM, you can do that:

kvm ..... -drive file=/dev/mapper/vm-root,if=scsi,index=0,boot=on ......

I think it should work even without LVM, for example:
kvm ..... -drive file=/dev/sda1,if=scsi,index=0,boot=on ......

-- 
Paolo Pedaletti



  reply	other threads:[~2009-01-15  8:14 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-15  3:53 how to assign partition as partition for KVM? Толя
2009-01-15  8:05 ` paolo pedaletti [this message]
2009-01-15 17:56   ` Javier Guerra

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=496EEE52.1040007@gmail.com \
    --to=paolo.pedaletti@gmail.com \
    --cc=kvm@vger.kernel.org \
    --cc=tolik2525@mail.ru \
    /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