#!/bin/bash # configure locale wget -q http://www.panticz.de/sites/default/files/scripts/configure_locale.sh -O - | bash - # update repository apt-get update # install debian xen kernel apt-get install -y kvm libvirt-bin virtinst # configure network bridge virsh net-autostart default # configure LVM mkdir /etc/libvirt/storage cat < /etc/libvirt/storage/vg0.xml vg0 /dev/vg0 EOF virsh pool-define /etc/libvirt/storage/vg0.xml virsh pool-autostart vg0