This creates an 8 GB dynamically expanding image. For better performance on modern SSDs, add the -o preallocation=metadata option.