Ubuntu 12.04 LTS, LVM, KVM, and Fun

Occasionally my job affords me the opportunity to do some really cool stuff. For a myriad of reasons I am building myself a Linux KVM host using Ubuntu 12.04 LTS. I hurried through the install prompts and didn’t pay enough attention to the partitioning. Therefore I ended up with 96GB of swap space and a 40GB root partition.

My goal was to have no swap, a small root, and a large partition for the KVM guests. I disabled swap and destroyed the swap LVM partition.  I then rebooted into the always handy Rescue Is Possible (RIP) using PXE and resized the root partition and root logical volume, crossed my fingers and rebooted. Voila! It all came back up perfectly configured for my uses.

Now onto creating KVM guests…