XenProject PV Guest tutorial
sda1 - /boot 200MB
sda2 - / 15GB
sda3 - swap
sda4 - reserved for LVM
aptitude install lvm2 xen-linux-system xen-tools
pvcreate /dev/sda4
vgcreate vg0 /dev/sda4
lvcreate -n<name of the volume> -L<size, you can use G and M here> <volume group>
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet manual
auto xenbr0
iface xenbr0 inet dhcp
bridge_ports eth0
dpkg-divert –divert /etc/grub.d/08_linux_xen –rename /etc/grub.d/20_linux_xen
update-grub
xm info
xm list
xm top
xen-create-image –hostname=tutorial-pv-guest \
–memory=512mb \
–vcpus=2 \
–lvm=vg0 \
–dhcp \
–pygrub \
–dist=wheezy
xm create -c /etc/xen/tutorial-pv-guest.cfg
xm create /etc/xen/tutorial-pv-guest.cfg && xm console tutorial-pv-guest
xm shutdown tutorial-pv-guest