Some xen guest creating hints

lvcreate -L 500M -n vm22.swap vg

lvcreate -L 10G -n vm22.root vg

lvcreate -L 20G -n vm22.var vg

mkfs.ext3 /dev/vg/vm22.root

mkfs.ext3 /dev/vg/vm22.var

mkswap /dev/vg/vm22.swap

mkdir /mnt/var

mkdir /mnt/proc

mkdir /mnt/sys

mount /dev/vg/vm22.root /mnt/

mount /dev/vg/vm22.var /mnt/var

cd /mnt/

tar -zxvf /root/f11-x86_64-base.tar.gz

rm f11-x86_64-base.tar.gz

vim ./etc/sysconfig/network

vim ./etc/sysconfig/network-scripts/ifcfg-eth0

vim ./etc/fstab

vim ./etc/sysconfig/network-scripts/ifcfg-eth0:1

vim ./etc/hosts

umount /mnt/var/

cd /

umount /mnt/

cd /etc/xen/auto/

cp vm21 vm22

vim vm22

xm create -c /etc/xen/auto/vm22