I'm using XenServer as a host for disposable QA machines for our application development. I'd like to write a script that automatically creates a new VM from a template, starts it, logs into it, fetches the latest application build and deploys it.
What I'd like my script to do is install the VM using 'xe vm-install', start it using 'xe vm-start', wait until it's finished booting, SSH into it, then perform the app installation procedure.
Problem is, the 'xe vm-start' command does not block the shell. Meaning, the command returns before the machine has completely loaded.
Anyone knows if and how I can query Xen for the machine boot status?
Thanks