summaryrefslogtreecommitdiffstats
path: root/xci/scripts/vm
diff options
context:
space:
mode:
authorFatih Degirmenci <fdegir@gmail.com>2018-03-01 18:05:17 +0000
committerFatih Degirmenci <fdegir@gmail.com>2018-03-01 18:05:36 +0000
commit9a485ae5d2cb2bc40b9721830cb6ec4db24e83be (patch)
tree2ccbc312a548cf8b0f795db963af5f00ba6a43d0 /xci/scripts/vm
parent79bc4163f96fd3d470fde2eac1597c0637ac7ac8 (diff)
Remove opnfv vm from known_hosts
Change-Id: I21998a31a26a201d767734d574ade8db7fd50c92 Signed-off-by: Fatih Degirmenci <fdegir@gmail.com>
Diffstat (limited to 'xci/scripts/vm')
-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"