[Pkg-libvirt-maintainers] Bug#775514: No networking running virt-builder scripts after upgrading from 1.26 to 1.28

Richard W.M. Jones rjones at redhat.com
Mon Jun 29 21:32:42 UTC 2015


I went through this with Adam and there are two bugs:

(1) isc-dhcp-client is not listed in
/usr/lib/x86_64-linux-gnu/guestfs/supermin.d/packages

As a result, dhclient is not loaded into the appliance, and
the dhclient command fails.

I thought this was strange, because upstream we have 'isc-dhcp-client'
listed in packagelist.in, but then I realized that the problem is
really that 'isc-dhcp-client' is a missing build dependency of
libguestfs on Debian.  It also needs to be a runtime dependency.

Because it's not a build-time dependency, it doesn't get pulled in to
the 'packages' file.  It also has to be a runtime dependency so that
users will have it installed on their machines.

(2) The second problem is that we run 'dhclient', but for some reason
this command cannot acquire an IP address unless you name a specific
interface (eg 'dhclient eth0').  This was already reported for Ubuntu:

https://bugzilla.redhat.com/show_bug.cgi?id=1224795

The workaround is just this patch (to appliance/init):

-      dhclient
+      dhclient eth0

but I don't know why that works.  I believe this to be a bug in
dhclient, not in libguestfs.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-top is 'top' for virtual machines.  Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
http://people.redhat.com/~rjones/virt-top



More information about the Pkg-libvirt-maintainers mailing list