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.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1768085

Title:
  virt-customize: dhclient can't get IP address

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libguestfs/+bug/1768085/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to