Linux KVM Notes

KVM and Storage

  1. /var/lib/libvrt/images/image-name will contain links to the mulipath device
  2. From this, run multipath -l too see which disk corresponds to the multipath device
  3. virsh dumpxml image-name dumps out the kvm config showing what the device name will be within the VM

NOTE: The bus type should be virtio as this is the most performant

The KVM GUI is called virt-manager

To add disks to an existing KVM

  1. partition the new disk with fdisk starting from block 2049
  2. create a link to /dev/mapper/mpathn in /var/lib/libvirt/images/image-name - Use virt-manager GUI to add hardware

    ===Recent Changes===

    Contribute to this wiki

    Why not help others by sharing your knowledge? Contribute something to this wiki and join out hall of fame!
    Contact us for a user name and password