[Libguestfs] questions about python examples
Pino Toscano
ptoscano at redhat.com
Wed Jul 12 07:51:30 UTC 2017
Hi,
On Wednesday, 12 July 2017 05:16:19 CEST 陳培泓 wrote:
> I followed the examples 1 and 2 in
> http://libguestfs.org/guestfs-python.3.html
>
> I create disk img by example 1 and use example 2 to inspect the img.
>
> I got error in the line:
>
> > g.inspect_os() : no operating systems found.
>
>
> how could fix it? any examples to create os in python?
The first example shows how to create a simple disk image, not a
complete operating system. The second example will work if you use it
with the disk image of an installed OS, for example Debian, Fedora,
etc.
--
Pino Toscano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part.
URL: <http://listman.redhat.com/archives/libguestfs/attachments/20170712/86d284cc/attachment.sig>
More information about the Libguestfs
mailing list