http://www.zjyxh.com/archives/201306/xen-start-all-vm.html

在这里提供给大家一个xen 3.1.2 开机自动启动所有虚拟机的脚本

#!/bin/bash
# desc:this scripts start xen virtual machines;
#       testd in centos 5.8 x86_64
#       saved in /usr/local/bin/vmstart.sh
#       writen by coralzd@gmail.com
#       date:   2012.03.20 for xen 3.1.2
export PATH=/usr/sbin:$PATH
d=$(date +%F-%H-%M)
for host in  `seq -f '2.%02g' 92 98`;
do
  sleep 5
  xm create $host >/dev/null
 echo " xen started ${host} at ${d} " >>/var/log/xend-start.log
done

意思是每隔5秒钟启动2.1-2.20虚拟机。