[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [Libguestfs] Python API for Resizing the disk



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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]