1.官方文档
http://wiki.xenproject.org/wiki/Xen4CentOS
http://wiki.centos.org/zh/HowTos/Xen/Xen4QuickStart
http://wiki.centos.org/zh/Manuals/ReleaseNotes/Xen4-01
2.
yum install centos-release-xen -y
yum install xen -y
yum update -y
/usr/bin/grub-bootxen.sh
vim /boot/grub/grub.conf
module /initramfs-3.18.21-17.el6.x86_64.img
reboot
uname -r
/etc/init.d/xend restart
xl info
chkconfig xend on
yum install libvirt python-virtinst libvirt-daemon-xen -y
/etc/init.d/libvirtd restart
chkconfig libvirtd on
yum install virt-manager -y
cat /proc/xen/capabilities
lvcreate -L 40G -n /dev/vg_fzxen1/test2
http:
virt-install -d -n TestVM1 -r 2048 --vcpus=1 --disk /dev/vg_fzxen1/test --nographics -p -l "http://repo.aniu.co:8092/os/centos6.7/" --extra-args="text console=com1 utf8 console=hvc0"
nfs:
cd /home/wh/iso
mount –o loop CentOS-6.7-x86_64-bin-DVD1.iso /media/cdrom
mkdir -p /mnt/centos/
cp -r /media/cdrom/* /mnt/centos/
chmod 777 /mnt/centos/.treeinfo
vim /mnt/centos/.treeinfo
yum install nfs-utils -y
echo '/mnt/centos/ *(ro)'>>/etc/exports
/etc/init.d/rpcbind restart
/etc/init.d/nfs restart
showmount -e localhost
virt-install -n Dom2 -r 256 --vcpus=1 --prompt --disk=/dev/vg_xen/LogVo_Dom2 --nographics -l nfs:127.0.0.1:/mnt/centos/ --extra-args="text console=com1 utf8 console=hvc0"