[Libguestfs] Python bindings : 'GuestFS' object has no attribute 'disk_create'
Pino Toscano
ptoscano at redhat.com
Thu Mar 20 14:30:23 UTC 2014
Hello,
On Thursday 20 March 2014 15:25:48 Safa Rekik wrote:
> I tried to create a disk image using the python-guestfs
> documentatoin<http://libguestfs.org/guestfs-python.3.html#description>
> but when i come across "g.disk_create (output, "raw", 512 * 1024 *
> 1024)" i get an error saying that this function does not exist !
The disk-create API has been added quite recently in the development
serie 1.25, and to be precise it is available in >= 1.25.30.
So if you are running a stable serie of libguestfs (say 1.24, 1.22, etc)
you do not have that API available.
--
Pino Toscano
More information about the Libguestfs
mailing list