Skip to contentSkip to conversation

exporting a single partition?

DISCUSSION Andy Smith 3 participants 3 messages Jul 1, 2008 – Jul 7, 2008 KVM

lore
Share & tools
lore

Andy Smith

author
#0 lore raw

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

#1 lore raw
Quoted 5 lines · Andy Smith

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.

Signature · 1 line
Javier
#2 lore raw
In reply to Andy Smith
Quoted 10 lines · Andy Smith

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

Quoted 3 lines

Cheers,
Andy