Created
August 13, 2015 16:28
-
-
Save mb00g/3849c780c05cd04f3e05 to your computer and use it in GitHub Desktop.
cloning vm 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
| #!/bin/bash | |
| read -p "Template: " TEMPLATE | |
| read -p "Name Prefix: " NAME | |
| read -p "Quantity: " QUANTITY | |
| COUNT=1 | |
| while [ $COUNT -le $QUANTITY ] ; do | |
| xe vm-clone vm="$TEMPLATE" \ | |
| new-name-label="$NAME$COUNT"; | |
| let COUNT=COUNT+1 | |
| done | |
| exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment