Added the --ro option (readonly) to guestfish.
[libguestfs.git] / recipes / tar2vm.html
1 <p>
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.
5 </p>
6
7 <p>
8 The usage is:
9 </p>
10
11 <pre>
12 tar2vm.sh input.tar.gz output.img 100M
13 </pre>
14
15 <p>
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
20 course).
21 </p>