public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* exporting a single partition?
@ 2008-07-01 15:38 Andy Smith
  2008-07-01 16:10 ` Javier Guerra
  2008-07-07 20:47 ` Anthony Liguori
  0 siblings, 2 replies; 3+ messages in thread
From: Andy Smith @ 2008-07-01 15:38 UTC (permalink / raw)
  To: kvm

[-- Attachment #1: Type: text/plain, Size: 343 bytes --]

Hi,

Is it possible at the moment to export a single partition to a kvm
guest as a virtio block device, like you can with Xen?  e.g. with
LVM on the host, /dev/somevg/somelv -> /dev/vda1 ?

As far as I can see at the moment this is possible but it would have
to be the whole of /dev/vda and therefore contain a partition
table..

Cheers,
Andy

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: exporting a single partition?
  2008-07-01 15:38 exporting a single partition? Andy Smith
@ 2008-07-01 16:10 ` Javier Guerra
  2008-07-07 20:47 ` Anthony Liguori
  1 sibling, 0 replies; 3+ messages in thread
From: Javier Guerra @ 2008-07-01 16:10 UTC (permalink / raw)
  To: Andy Smith; +Cc: kvm

On Tue, Jul 1, 2008 at 10:38 AM, Andy Smith <andy@lug.org.uk> wrote:
> Hi,
>
> Is it possible at the moment to export a single partition to a kvm
> guest as a virtio block device, like you can with Xen?  e.g. with
> LVM on the host, /dev/somevg/somelv -> /dev/vda1 ?

in Xen this is only possible for PV guests, non HVM.

KVM always uses what Xen calls HVM or 'full virtualization';
therefore, only export block devices, which (usually) contain
partition tables.


-- 
Javier

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: exporting a single partition?
  2008-07-01 15:38 exporting a single partition? Andy Smith
  2008-07-01 16:10 ` Javier Guerra
@ 2008-07-07 20:47 ` Anthony Liguori
  1 sibling, 0 replies; 3+ messages in thread
From: Anthony Liguori @ 2008-07-07 20:47 UTC (permalink / raw)
  To: Andy Smith; +Cc: kvm

Andy Smith wrote:
> Hi,
>
> Is it possible at the moment to export a single partition to a kvm
> guest as a virtio block device, like you can with Xen?  e.g. with
> LVM on the host, /dev/somevg/somelv -> /dev/vda1 ?
>
> As far as I can see at the moment this is possible but it would have
> to be the whole of /dev/vda and therefore contain a partition
> table..
>   

No, because you can always use /dev/vda when you would normally use 
/dev/vda1.

For instance, "root=/dev/vda" will do the Right Thing.

Regards,

Anthony Liguori

> Cheers,
> Andy
>   


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-07-07 20:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-01 15:38 exporting a single partition? Andy Smith
2008-07-01 16:10 ` Javier Guerra
2008-07-07 20:47 ` Anthony Liguori

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox