KVM Guest Disk Layout

The KVM Guests usually only runs one service. Many services does not require that much diskspace to run. Today filesystems can do online growing and shrinking, so the disksize can always be adjusted later on.

Hardware

One 4G virtual disk

Partitions

vda    4G
vda1 256M
vda2   4G 

LVM

vda2 LVM

LVM Volumes

vg1 root 2G (/dev/vg1/root) vg1 swap 512M (/dev/vg1/swap)

Filesystems and Mountpoints

/dev/vg1/root / (btrfs) /dev/md0 /boot (btrfs) /dev/vg1/swap (swap)

lvm-root 2G btrfs lvm-swap swappartition