From mboxrd@z Thu Jan 1 00:00:00 1970 From: paolo pedaletti Subject: Re: how to assign partition as partition for KVM? Date: Thu, 15 Jan 2009 09:05:38 +0100 Message-ID: <496EEE52.1040007@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: kvm@vger.kernel.org To: =?UTF-8?B?0KLQvtC70Y8=?= Return-path: Received: from mailgw2.si.unimib.it ([149.132.2.30]:54194 "EHLO mailgw2.si.unimib.it" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756054AbZAOIOP convert rfc822-to-8bit (ORCPT ); Thu, 15 Jan 2009 03:14:15 -0500 In-Reply-To: Sender: kvm-owner@vger.kernel.org List-ID: Ciao =D0=A2=D0=BE=D0=BB=D1=8F, > Is there any way to assign single partition to KVM virtual machine (f= or example, i need to assign /dev/sda1 on my host as /dev/hda1 on VM) > In XEN this assignment looks like disk=3D[ 'phy:/dev/lvm_dg-vol1,xvda= 1,w',]. with LVM, you can do that: kvm ..... -drive file=3D/dev/mapper/vm-root,if=3Dscsi,index=3D0,boot=3D= on ...... I think it should work even without LVM, for example: kvm ..... -drive file=3D/dev/sda1,if=3Dscsi,index=3D0,boot=3Don ...... --=20 Paolo Pedaletti