diff options
author | Fatih Degirmenci <fdegir@gmail.com> | 2018-03-07 16:02:20 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2018-03-07 16:02:20 +0000 |
commit | 92f89a5d2028675cf03d8b828da1fd7233f77115 (patch) | |
tree | 0ba1210a68dd450dd608f2a7f0cb93b5e482cab8 | |
parent | 05a97682f57a62169eb0760c1d4a2e8599f7873d (diff) | |
parent | 9a485ae5d2cb2bc40b9721830cb6ec4db24e83be (diff) |
Merge "Remove opnfv vm from known_hosts"
-rwxr-xr-x | xci/scripts/vm/start-new-vm.sh | 4 |
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" |