Created
May 17, 2014 23:04
-
-
Save rtomaszewski/2f56a09403ed0dfa69bf to your computer and use it in GitHub Desktop.
create more vms using the import functions from xenserver
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
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