In this guide I will explain how to install and use KVM to create and run virtual machines on a Debian Squeeze Server.
In this tutorial I will show how to create image-based virtual machines.
KVM makes use of hardware virtualization. For that you need a CPU that supports hardware virtualization such as Intel VT or AMD-V.

Step 1. Check if your CPU supports hardware virtualization using the following command:

egrep ‘(vmx|svm)’ –color=always /proc/cpuinfo

If your result is nothing, then your processor doesn’t support hardware virtualization.

Step 2. Install KVM and virtinst :

apt-get install kvm qemu-kvm libvirt-bin virtinst

Step 3. Now we need to add the user as which we’re currently logged in to the groups libvirt and kvm. Run the following commands:

adduser `id -un` libvirt
adduser `id -un` kvm

Step 4. You also  need to set up a network bridge on our server.  You need that for virtual machines to can be accessed from outside.
For that you need to  install the package bridge-utils.

apt-get install bridge-utils

Continue Reading…

Page 1 of 11