Switch ubuntu16-qemu to use qcow2 cloud disk
* Remove long and usless step with installing system from iso
* Misc refactor changes
* requirement: cloud-localds
Change-Id: If5fe43104d71c53ab5f510d3efa529ed40c4e9c3
diff --git a/ubuntu-16.04/config-drive/user-data.yaml b/ubuntu-16.04/config-drive/user-data.yaml
new file mode 100644
index 0000000..32a896e
--- /dev/null
+++ b/ubuntu-16.04/config-drive/user-data.yaml
@@ -0,0 +1,13 @@
+#cloud-config
+debug: True
+ssh_pwauth: True
+disable_root: false
+chpasswd:
+ list: |
+ root:ho5uo7Uome5d
+# cloud-user:ho5uo7Uome5d
+ expire: False
+output: {all: '| tee -a /var/log/cloud-init-output.log'}
+runcmd:
+ - sed -i'.orig' -e's/PermitRootLogin.*/PermitRootLogin yes/g' -e's/PasswordAuthentication.*/PasswordAuthentication yes/g' /etc/ssh/sshd_config
+ - service sshd restart