Last active
June 13, 2016 21:27
-
-
Save olivierpierre/62e9d401f91e18fb559bc1ff8b92ad92 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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