<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span><br></span></div>thanks :)  <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div dir="ltr"> <font face="Arial" size="2"> <hr size="1">  <b><span style="font-weight:bold;">From:</span></b> Richard W.M. Jones <rjones@redhat.com><br> <b><span style="font-weight: bold;">To:</span></b> THO HUYNH <feeliwood@yahoo.com> <br><b><span style="font-weight: bold;">Cc:</span></b> libguestfs@redhat.com <br> <b><span style="font-weight: bold;">Sent:</span></b> Friday, 9 March 2012, 16:52<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: mounting using guestfish<br> </font> </div> <br>On Fri, Mar 09, 2012 at 01:11:23AM -0800, THO HUYNH wrote:<br>> Do you have any documentation about the
 implementation of mounting<br>> using guestfish.  I want to know how it works inside then write the<br>> script.<br><br>Libguestfs live access works slightly differently from ordinary use of<br>libguestfs, and all the examples only explain the ordinary way.<br><br>The main documentation is here:<br><br><a href="http://libguestfs.org/guestfs.3.html#api_overview" target="_blank">http://libguestfs.org/guestfs.3.html#api_overview</a><br><br>Once you've decided what language you want to use, you'll need to<br>follow one of these pages:<br><br><a href="http://libguestfs.org/guestfs-perl.3.html" target="_blank">http://libguestfs.org/guestfs-perl.3.html</a><br><a href="http://libguestfs.org/guestfs-python.3.html" target="_blank">http://libguestfs.org/guestfs-python.3.html</a><br><a href="http://libguestfs.org/guestfs-ocaml.3.html" target="_blank">http://libguestfs.org/guestfs-ocaml.3.html</a><br><a href="http://libguestfs.org/guestfs-ruby.3.html"
 target="_blank">http://libguestfs.org/guestfs-ruby.3.html</a><br><a href="http://libguestfs.org/guestfs-java.3.html" target="_blank">http://libguestfs.org/guestfs-java.3.html</a><br><br>Because it's live, you need to add the domain using the 'live' option,<br>see:<br><br><a href="http://libguestfs.org/guestfs.3.html#guestfs_add_domain" target="_blank">http://libguestfs.org/guestfs.3.html#guestfs_add_domain</a><br><br>To download and upload between handles, you'll need to use two<br>threads, a pipe between them, and the regular download/upload APIs:<br><br><a href="http://libguestfs.org/guestfs.3.html#guestfs_download" target="_blank">http://libguestfs.org/guestfs.3.html#guestfs_download</a><br><a href="http://libguestfs.org/guestfs.3.html#guestfs_upload" target="_blank">http://libguestfs.org/guestfs.3.html#guestfs_upload</a><br><a href="http://libguestfs.org/guestfs.3.html#guestfs_tar_out"
 target="_blank">http://libguestfs.org/guestfs.3.html#guestfs_tar_out</a><br><a href="http://libguestfs.org/guestfs.3.html#guestfs_tar_in" target="_blank">http://libguestfs.org/guestfs.3.html#guestfs_tar_in</a><br>(etc)<br><br>I suggest writing some code and reading the many programs in the<br>source of libguestfs, and if you get stuck, posting specific questions<br>on the mailing list.<br><br>Rich.<br><br>-- <br>Richard Jones, Virtualization Group, Red Hat <a href="http://people.redhat.com/%7Erjones" target="_blank">http://people.redhat.com/~rjones</a><br>New in Fedora 11: Fedora Windows cross-compiler. Compile Windows<br>programs, test, and build Windows installers. Over 70 libraries supprt'd<br><a href="http://fedoraproject.org/wiki/MinGW" target="_blank">http://fedoraproject.org/wiki/MinGW</a> <a href="http://www.annexia.org/fedora_mingw" target="_blank">http://www.annexia.org/fedora_mingw</a><br><br><br> </div> </div>  </div></body></html>