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
Code: Select all
adduser `id -un` libvirt
adduser `id -un` kvm
3) Create a network bridge:
Code: Select all
$ apt-get install bridge-utils
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
- --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: