Comment 6 for bug 1768085

Revision history for this message
Gonéri Le Bouder (goneri) wrote :

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'