Virtualization with KVM – Helper Scripts

This will be the final article on “Virtualization with KVM” topic. Up till now I covered the topics on how to install and configure KVM, how to customize it a bit more and finally how to create a first guest machines. In this article I will present a set of BASH scripts one can use to ease up the general management of your virtual infrastructure built on top of KVM.


Opting for a “quick start” method will actually install KVM hypervisor on your computer. Be absolutely sure this is what you want, because KVM can be resource intensive.

You should have your virtualization platform ready. If this is not the case, please skip to the first article in this series and get yourself familiar with the topic at hand. If you are lazy and don’t want to read, well here is a quick start method if you are using a Debain based Linux distribution. Open your terminal and download and execute my KVM Auto-Install script:

# wget -c
# ./

Please use sudo command if you’re not using a root user. This will set you up with KVM virtualization infrastructure in a minute or two. Once ready, you can try my super duper simple scripts I’m about to present in this article. Continue reading “Virtualization with KVM – Helper Scripts”

Virtualization with KVM – Creating Guest Machines

This is the third article on topic of virtualization with KVM, and in this one attention will be on how to create first guest machines (virtual machines). So far I covered an installation of KVM core infrastructure virtualization itself and I talked a bit about post-install settings and configuration. Please check those two articles to introduce yourself with the topic at hand.


Now that we have a KVM core virtualization infrastructure installed and configured, we can start building our first guest machines. Ubuntu wise, there are several tools that can help us with that task. Most common is virt-install, a python-based script developed by RedHat. If you opted for desktop setup, and prefer a GUI over CLI, you can use virt-manager. There is also an ubuntu-vm-builder CLI tool developed by Canonical, and to be honest I never used it, so I will skip it in this guide. If you followed my previous guides, all tools should be in place. Let us get started and build our first guest machine. Continue reading “Virtualization with KVM – Creating Guest Machines”