Skip to content

Instantly share code, notes, and snippets.

@archerslaw
Created April 28, 2014 07:03
Show Gist options
  • Save archerslaw/11363782 to your computer and use it in GitHub Desktop.
Save archerslaw/11363782 to your computer and use it in GitHub Desktop.
create disk image via qemu-img.
i=1
while [ $i -lt 1024 ]
do
qemu-img create -f qcow2 /home/disk/disk$i.qcow2 1G
i=$(($i+1))
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment