UUID=`xe vm-install template=mytemplate new-name-label=newvm`
xe vm-param-set uuid=$UUID xenstore-data:vm-data/ip=192.168.1.20
xe vm-param-set uuid=$UUID xenstore-data:vm-data/gw=192.168.1.254
xe vm-param-set uuid=$UUID xenstore-data:vm-data/nm=255.255.255.0
xe vm-param-set uuid=$UUID xenstore-data:vm-data/ns=192.168.1.254
xe vm-param-set uuid=$UUID xenstore-data:vm-data/dm=mydomain.com
xe vm-param-set uuid=$UUID xenstore-data:vm-data/password=mypassw0rd
xe vm-start uuid=$UUID
Copy usr/sbin/xe-set-* into /usr/sbin/ and chmod +x
Copy etc/init/xe-automate.conf into /etc/init/
mkdir /root/.xe-automator