summaryrefslogtreecommitdiffstats
path: root/xci/scripts
diff options
context:
space:
mode:
authorVictor Morales <victor.morales@intel.com>2017-11-03 09:35:14 -0700
committerMarkos Chandras <mchandras@suse.de>2017-11-22 15:20:37 +0000
commit71618d89c38daea7b97d14d40a31c7cb00bc69f5 (patch)
tree8f0fb139a7e92270af73eb6fd5093fa23de6ca1a /xci/scripts
parent782379df78dd954b9746b9cfedce2c7f589a43b7 (diff)
Add the libvirt DNS to resolv.conf
This change adds the gateway into the resolv.conf for helping to resolve some routes faster during the execution of start-new-vm.sh main script. Change-Id: I08f361f5e55589f388e6ff6613d213eb79bbbce9 Signed-off-by: Victor Morales <victor.morales@intel.com>
Diffstat (limited to 'xci/scripts')
-rwxr-xr-xxci/scripts/vm/start-new-vm.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/xci/scripts/vm/start-new-vm.sh b/xci/scripts/vm/start-new-vm.sh
index a6942746..9c3672e0 100755
--- a/xci/scripts/vm/start-new-vm.sh
+++ b/xci/scripts/vm/start-new-vm.sh
@@ -288,8 +288,7 @@ echo "Preparing test environment..."
# *_xci_vm hostname is invalid. Letst just use distro name
$vm_ssh ${VM_NAME} "sudo hostname ${VM_NAME/_xci*}"
# Start with good dns
-$vm_ssh ${VM_NAME} 'sudo bash -c "echo nameserver 8.8.8.8 > /etc/resolv.conf"'
-$vm_ssh ${VM_NAME} 'sudo bash -c "echo nameserver 8.8.4.4 >> /etc/resolv.conf"'
+$vm_ssh ${VM_NAME} 'sudo bash -c "echo nameserver 192.168.140.1 > /etc/resolv.conf"'
cat > ${BASE_PATH}/vm_hosts.txt <<EOF
127.0.0.1 localhost ${VM_NAME/_xci*}
::1 localhost ipv6-localhost ipv6-loopback