From b99dd26ea6a9abae5f226a1141213050efd16e78 Mon Sep 17 00:00:00 2001 From: Billy O'Mahony Date: Fri, 15 Apr 2016 16:27:10 +0100 Subject: ubuntu_cloud_img: Allow pwd console access Currently if there is a port bind failure it is impossible to access a VM based on Ubuntu server cloud image to debug. This change allows access on the console for user ubuntu by was of a password that is printed to the console during start up; The same way as VMs based on the cirros image do. Change-Id: Iac242ba1f3f14ae77a7b00cf2befd6fa4b65af09 Signed-off-by: Billy O'Mahony Reviewed-by: Ana Cunha Reviewed-by: Jorgen Karlsson Reviewed-by: Jonas Bjurel Reviewed-by: Daniel Smith Reviewed-by: Mark D. Gray --- tools/ubuntu-server-cloudimg-modify.sh | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tools') diff --git a/tools/ubuntu-server-cloudimg-modify.sh b/tools/ubuntu-server-cloudimg-modify.sh index 11e6051cd..78bf098dc 100755 --- a/tools/ubuntu-server-cloudimg-modify.sh +++ b/tools/ubuntu-server-cloudimg-modify.sh @@ -35,8 +35,12 @@ grep trusty /etc/apt/sources.list && \ echo 'Acquire::ForceIPv4 "true";' > /etc/apt/apt.conf.d/99force-ipv4 # Add hostname to /etc/hosts. +# Allow console access via pwd cat </etc/cloud/cloud.cfg.d/10_etc_hosts.cfg manage_etc_hosts: True +password: RANDOM +chpasswd: { expire: False } +ssh_pwauth: True EOF apt-get update -- cgit 1.2.3-korg