OK. I will give it a try. <br>Thanks for the response.<br><br><div class="gmail_quote">On Mon, Oct 31, 2011 at 8:11 PM, Richard W.M. Jones <span dir="ltr"><<a href="mailto:rjones@redhat.com">rjones@redhat.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">On Mon, Oct 31, 2011 at 02:32:40PM +0530, vipul borikar wrote:<br>
> Is there Python Binding for Resizing the Image just like "virt-resize" does?<br>
<br>
</div>Not directly.<br>
<br>
virt-resize makes lots of libguestfs API calls.  While all of those<br>
API calls are available through the Python API, the trick would be<br>
knowing what calls to make :-)<br>
<br>
I think you would be best to run virt-resize as an external program.<br>
<br>
Luckily virt-resize in 1.14 contains several enhancements designed to<br>
make it easier to run it as an external program.  See:<br>
<br>
<a href="http://libguestfs.org/virt-resize.1.html#machine_readable_output" target="_blank">http://libguestfs.org/virt-resize.1.html#machine_readable_output</a><br>
<br>
Rich.<br>
<font color="#888888"><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>
</font></blockquote></div><br><br clear="all"><br>-- <br><div>Thanks </div><div><br></div>Vipul Borikar <br><div>"Our task must be to free ourselves...by widening our circle of compassion to embrace all living creatures and the whole of nature and its beauty."</div>
<br>