Simply creating sparse files

for virtualization and such, on Linux, BSD, Mac OSX (Darwin), Unix:

dd if=/dev/zero of=some-qemu-vm.img bs=64G count=0 seek=1

Update: and resize / growing:

dd if=/dev/zero of=some-qemu-vm.img bs=1G count=0 seek=200

Leave a Reply

You must be logged in to post a comment.