Advertisement
Guest User

Untitled

a guest
Feb 11th, 2016
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. #!/bin/bash
  2. set -x
  3.  
  4. create_vzctl() {
  5.  
  6. vzctl create $vzcounter --ostemplate ubuntu-14.10-x86_64
  7.  
  8. # Ensure that it starts:
  9. vzctl start $vzcounter --wait
  10. vzctl stop $vzcounter
  11.  
  12. #Add second hdd with custom mount point:
  13. #mkdir /cust
  14. vzctl set $vzcounter --device-add hdd --device-uuid `uuidgen` --mnt /cust --save --size 1048576
  15. vzctl start $vzcounter --wait
  16. vzctl stop $vzcounter
  17. vzctl delete $vzcounter
  18. }
  19.  
  20.  
  21. for vzcounter in {1..50}
  22. do
  23. create_vzctl
  24. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement