xci: scripts: start-new-vm.sh: Do not destroy user's configuration file 47/44447/5
authorMarkos Chandras <mchandras@suse.de>
Fri, 6 Oct 2017 09:29:28 +0000 (10:29 +0100)
committerMarkos Chandras <mchandras@suse.de>
Sat, 7 Oct 2017 15:08:16 +0000 (16:08 +0100)
commitbe2f84e1af4393eb74e2a542602b38d9e14b8e6a
tree8c3eae488da15605c0e16056c7ccfd1a50ae19fd
parent5aafda4cedcf64d8261df853d749a328ed309784
xci: scripts: start-new-vm.sh: Do not destroy user's configuration file

As we move towards making this script useful for developers, we
shouldn't destroy the existing ssh configuration file but rather
create a new one just for XCI. This also move the destruction of
previous instances sooner, even before building the OS image so we
can free resources as soon as possible. Finally, this also uses the
hostname to ssh to the new VM instead of its IP to ensure that
everything is setup up properly on the physical host.

Change-Id: I185befd8943fdb8ebcdb635aefb4d4b03473258b
Signed-off-by: Markos Chandras <mchandras@suse.de>
xci/scripts/vm/start-new-vm.sh