[Libguestfs] libguestfs can't communicate over network while creating VM

Pino Toscano ptoscano at redhat.com
Thu Jun 16 16:03:05 UTC 2016


Hi,

On Thursday 16 June 2016 15:12:39 Mensik, Petr wrote:
> I tried installing the package and running the command, however
> nothing has changed :-/ This package should be installed as an
> addition to the dhcpcd5 or is a replacement?

Curiously enough, another user asked about this on our IRC channel
(#libguestfs on freenode) a couple of hours ago, and what came out is
that there is a bug in the Debian packaging, where the lack of a build
dependency made the appliance not use the right dhcp package.

To workaround locally, on the host where you are running the libguestfs
commands you can do:
1) install isc-dhcp-client
2) as root, `echo isc-dhcp-client > /usr/lib/x86_64-linux-gnu/guestfs/supermin.d/zzz-dhcp`
3) as the user who runs your Python script, run libguestfs-test-tool
   to update the appliance -- you should see the line:
supermin: build: visiting /usr/lib/x86_64-linux-gnu/guestfs/supermin.d/zzz-dhcp type uncompressed packages
in its output -- meaning that file was picked correctly (and thus
isc-dhcp-client hopefully copied)
4) now the network should work

There is a Debian bug about it: https://bugs.debian.org/775514 -- fixed
only in Stretch though.  Just left a comment there, should be an easy
fix for Jessie.

Thanks,
-- 
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/20160616/5940f9f8/attachment.sig>


More information about the Libguestfs mailing list