Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- set -x
- create_vzctl() {
- vzctl create $vzcounter --ostemplate ubuntu-14.10-x86_64
- # Ensure that it starts:
- vzctl start $vzcounter --wait
- vzctl stop $vzcounter
- #Add second hdd with custom mount point:
- #mkdir /cust
- vzctl set $vzcounter --device-add hdd --device-uuid `uuidgen` --mnt /cust --save --size 1048576
- vzctl start $vzcounter --wait
- vzctl stop $vzcounter
- vzctl delete $vzcounter
- }
- for vzcounter in {1..50}
- do
- create_vzctl
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement