Page 1 of 1

Setting up Debian Wheezy as kvm host

Posted: Fri Aug 09, 2013 8:01 pm
by ^rooker
WARNING: This HowTo is still work in progress. Do not use it, yet. Sorry ;)

This HowTo is based on Falko Timme's tutorial for "Virtualization With KVM On A Debian Squeeze Server ".

1) Install the required packages for KVM virtualization:

Code: Select all

$ apt-get install screen kvm qemu-kvm libvirt-bin virtinst
2) Add your user to the groups "kvm" and "libvirt":

Code: Select all

adduser `id -un` libvirt
adduser `id -un` kvm
NOTE: This applies to the user you're currently logged in with.

3) Create a network bridge:

Code: Select all

$ apt-get install bridge-utils
TODO: network configuration

4) Create a virtual machine for the Debian client:

Code: Select all

$ virt-install --connect qemu:///system \
--name=ferry-vm-1 \
--ram 2048 \
--vcpus 2 \
--disk path=/srv/vm_images/ferry-vm-1.img,size=10 \
--cdrom ~/install/debian-7.1.0-amd64-netinst.iso \
--vnc \
--noautoconsole \
--os-type linux \
--os-variant debianwheezy \
--network bridge:br0 \
--hvm
Parameters are:
  • --name: Name of the virtual client
  • --ram: RAM. Memory (in MiB) for the virtual client
  • --vcpus: Number of virtual CPUs
  • --disk path=,size=:
  • --cdrom:
  • --vnc:
  • --noautoconsole:
  • --os-type:
  • --os-variant:
  • --network:
  • --hvm: