Setting up Debian Wheezy as kvm host

Step-by-Step descriptions of how to do things.
Post Reply
User avatar
^rooker
Site Admin
Posts: 1481
Joined: Fri Aug 29, 2003 8:39 pm

Setting up Debian Wheezy as kvm host

Post 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:
Jumping out of an airplane is not a basic instinct. Neither is breathing underwater. But put the two together and you're traveling through space!
Post Reply