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.
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/bd4e99cc13 4dd20cb1f16ac11 e44810de30b973a /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.