The networking is ok, but the /etc/resolv.conf is deleted before every command execution. As a workaround, you can rewrite it and chain a series of commands:
virt-sysprep -v -x -a CentOS-7-x86_64-GenericCloud.qcow2 --network --run-command 'echo "nameserver 169.254.2.3" > /etc/resolv.conf; yum update -y' -- 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