OK. I will give it a try. Thanks for the response. On Mon, Oct 31, 2011 at 8:11 PM, Richard W.M. Jones <rjones@redhat.com>wrote:
On Mon, Oct 31, 2011 at 02:32:40PM +0530, vipul borikar wrote:
Is there Python Binding for Resizing the Image just like "virt-resize" does?
Not directly.
virt-resize makes lots of libguestfs API calls. While all of those API calls are available through the Python API, the trick would be knowing what calls to make :-)
I think you would be best to run virt-resize as an external program.
Luckily virt-resize in 1.14 contains several enhancements designed to make it easier to run it as an external program. See:
http://libguestfs.org/virt-resize.1.html#machine_readable_output
Rich.
-- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones New in Fedora 11: Fedora Windows cross-compiler. Compile Windows programs, test, and build Windows installers. Over 70 libraries supprt'd http://fedoraproject.org/wiki/MinGW http://www.annexia.org/fedora_mingw
-- Thanks Vipul Borikar "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."