From bb847371cf77f1fac6579d0444d6168b5b43c2a0 Mon Sep 17 00:00:00 2001 From: Carsten Koester Date: Mon, 13 Jun 2016 06:39:40 -0400 Subject: CSIT-156: DPDK support for Nested VM image Change-Id: Iefa9ec90d1b243c9e1108f63a182c3d9ef6e6474 Signed-off-by: Carsten Koester --- .../disk-image-builder/nested/image-patches/05-ssh-hostkeys | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 resources/tools/disk-image-builder/nested/image-patches/05-ssh-hostkeys (limited to 'resources/tools/disk-image-builder/nested/image-patches/05-ssh-hostkeys') diff --git a/resources/tools/disk-image-builder/nested/image-patches/05-ssh-hostkeys b/resources/tools/disk-image-builder/nested/image-patches/05-ssh-hostkeys new file mode 100755 index 0000000000..de8be15798 --- /dev/null +++ b/resources/tools/disk-image-builder/nested/image-patches/05-ssh-hostkeys @@ -0,0 +1,11 @@ +#!/bin/sh + +# Generate host keys here. This will speed up first boot time ever so slightly. +# It does however mean that keys are not unique across installations -- which +# shouldn't be an issue for our use case though. + +sudo mkdir -m 0775 -p etc/ssh +for a in rsa ecdsa ed25519 dsa +do + sudo ssh-keygen -f etc/ssh/ssh_host_${a}_key -N "" -t ${a} +done -- cgit 1.2.3-korg