Comment 4 for bug 1768085

Revision history for this message
Richard Jones (rjones-redhat) wrote :

The difference with and without --network is in the qemu command line, basically whether
we set up a user network or not:

https://github.com/libguestfs/libguestfs/blob/bd4e99cc134dd20cb1f16ac11e44810de30b973a/lib/launch-direct.c#L674

I'm guessing that ‘dhclient eth0’ only "works" without the network because it fails to find eth0.

Fairly sure this will be some problem with the Ubuntu dhclient program.

One thing you could do (building from libguestfs source) is edit `appliance/init` and `appliance/packagelist.in`. In the first file put `strace` in front of the `dhclient` line. In the second file, add `strace` so the strace package gets added to the appliance.