6a063c66c5723fb7bb2aeb4ba3d0e4422853639d
[libguestfs.git] / recipes / tar2vm.html
1 <h2>Make a virtual machine out of a tarball</h2>
2
3 <p>
4 This script shows how you might generate a whole virtual
5 machine, or a disk image for a virtual machine, starting
6 with a tarball that contains the content for the machine.
7 </p>
8
9 <p>
10 The usage is:
11 </p>
12
13 <pre>
14 tar2vm.sh input.tar.gz output.img 100M
15 </pre>
16
17 <p>
18 where (for example) <code>100M</code> is the size of the output
19 disk image.  You have to specify a size that is large enough to contain all
20 the contents of the tarball, but not too large that there is too much
21 wasted space (unless you want to give the VM extra working space of
22 course).
23 </p>