2 This script shows how you might generate a whole virtual
3 machine, or a disk image for a virtual machine, starting
4 with a tarball that contains the content for the machine.
12 tar2vm.sh input.tar.gz output.img 100M
16 where (for example) <code>100M</code> is the size of the output
17 disk image. You have to specify a size that is large enough to contain all
18 the contents of the tarball, but not too large that there is too much
19 wasted space (unless you want to give the VM extra working space of
24 Alternatively use <a href="#squashfs">a squashfs</a>.