Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

The question is, how do I know which LVM partition corresponds to which virtual KVM disc?

I am trying to install a KVM guest (Ubuntu server) on LVM logical volumes. I have used lvcreate to create partitions for boot, root, home, tmp, usr, var and swap. Boot is ext2, swap is swap and the rest is ext4.

However, using virt-install and connecting with spice from an external computer, the ubuntu installer shows the virtual discs vda, vdb, vdc, vdd, vde, vdf and vdg.

Since I used the filesystem ext2 on boot and that vda is recognized as ext2 I can map boot to vda. In a similar way I can map the swap to vdg. But how do this for the others? Where is this mapping located?

Also, is the above procedure to install KVM guest on LVM logical volumes the way to do it?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

The virtual disks are mapped in the order you created them in the virt-install command line.

To see the exact mapping, inspect the <disk> nodes in the XML definition for the guest:

virsh dumpxml guestname
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.