summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFatih Degirmenci <fdegir@gmail.com>2018-03-07 16:02:20 +0000
committerGerrit Code Review <gerrit@opnfv.org>2018-03-07 16:02:20 +0000
commit92f89a5d2028675cf03d8b828da1fd7233f77115 (patch)
tree0ba1210a68dd450dd608f2a7f0cb93b5e482cab8
parent05a97682f57a62169eb0760c1d4a2e8599f7873d (diff)
parent9a485ae5d2cb2bc40b9721830cb6ec4db24e83be (diff)
Merge "Remove opnfv vm from known_hosts"
-rwxr-xr-xxci/scripts/vm/start-new-vm.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/xci/scripts/vm/start-new-vm.sh b/xci/scripts/vm/start-new-vm.sh
index c4b40b96..59d1ee2e 100755
--- a/xci/scripts/vm/start-new-vm.sh
+++ b/xci/scripts/vm/start-new-vm.sh
@@ -26,6 +26,9 @@ export XCI_BUILD_CLEAN_VM_OS=${XCI_BUILD_CLEAN_VM_OS:-true}
# ones.
export XCI_UPDATE_CLEAN_VM_OS=${XCI_UPDATE_CLEAN_VM_OS:-false}
+# IP of OPNFV VM so we remove it from known_hosts
+OPNFV_VM_IP=192.168.122.2
+
grep -q -i ^Y$ /sys/module/kvm_intel/parameters/nested || { echo "Nested virtualization is not enabled but it's needed for XCI to work"; exit 1; }
destroy_vm_on_failures() {
@@ -250,6 +253,7 @@ chmod 600 ${BASE_PATH}/xci/scripts/vm/id_rsa_for_dib*
# Remove it from known_hosts
ssh-keygen -R $_ip || true
ssh-keygen -R ${VM_NAME} || true
+ssh-keygen -R ${OPNFV_VM_IP} || true
# Initial ssh command until we setup everything
vm_ssh="ssh -o StrictHostKeyChecking=no -i ${BASE_PATH}/xci/scripts/vm/id_rsa_for_dib -l devuser"