Sophie

Sophie

distrib > Fedora > 14 > x86_64 > by-pkgid > e06d4e98b614307f16f37322afcfc998 > files > 33

guestfish-1.5.21-1.fc14.4.x86_64.rpm

<p>
This script shows how you might generate a whole virtual
machine, or a disk image for a virtual machine, starting
with a tarball that contains the content for the machine.
</p>

<p>
The usage is:
</p>

<pre>
tar2vm.sh input.tar.gz output.img 100M
</pre>

<p>
where (for example) <code>100M</code> is the size of the output
disk image.  You have to specify a size that is large enough to contain all
the contents of the tarball, but not too large that there is too much
wasted space (unless you want to give the VM extra working space of
course).
</p>

<p>
Alternatively use <a href="#squashfs">a squashfs</a>.
</p>