Skip to content

Instantly share code, notes, and snippets.

@rtomaszewski
Created May 17, 2014 23:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rtomaszewski/2f56a09403ed0dfa69bf to your computer and use it in GitHub Desktop.
Save rtomaszewski/2f56a09403ed0dfa69bf to your computer and use it in GitHub Desktop.
create more vms using the import functions from xenserver
xe vm-export filename=vm-label1-export1.xva vm=vm-label
for i in $(seq 2 10); do
name="vm-$i"
echo -n "creating vm $name "
uuid=$(xe vm-import filename=vm-label1-export1.xva preserve=false)
xe vm-param-set name-label=$name uuid=$uuid
xe vm-start vm=$name
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment