On Thu, Nov 23, 2017 at 06:26:37PM +0000, ANDRES POZO MUNOZ wrote:
Hi,
A quick question about a problem I’m facing.
I want to customize some image running a customization script with
virt-customize.
Everything works fine, except the fact that I don’t have a DHCP
server in the network (virt-customize relies on DHCP to assign the
IP when it boots the image, right?) and all the commands accessing
the network are failing.
Is there any option (via config or something like that) to configure
an static IP in the image?
I suspect you're actually hitting one of several bugs in dhclient,
because virt-customize should never ask for an IP address from your
public DHCP server. See also:
https://bugs.launchpad.net/ubuntu/+source/libguestfs/+bug/1632405
https://bugzilla.redhat.com/show_bug.cgi?id=1503507
Can you run ‘guestfish -a /dev/null --network run -v -x’ and attach
the complete output?
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