Skip to content

Instantly share code, notes, and snippets.

@olivierpierre
Last active June 13, 2016 21:27
Show Gist options
  • Save olivierpierre/62e9d401f91e18fb559bc1ff8b92ad92 to your computer and use it in GitHub Desktop.
Save olivierpierre/62e9d401f91e18fb559bc1ff8b92ad92 to your computer and use it in GitHub Desktop.
# number of VMs to boot:
vm_num=10
for i in `seq 0 $vm_num`; do
# here we launch $vm_num `xl create` commands in parallel
( xl create /path/to/config/file$i.cfg &> out_$i.log) &
done
wait # wait for all the `xl create` commands to return before continuing further
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment