Switch ubuntu16 image to iso installation type

  * Implement LVM partitioning

Change-Id: I8bfeff1d0be0debd41eea62ab299a1e4697f515b
diff --git a/ubuntu-16.04/template.json b/ubuntu-16.04/template.json
index ef20aaa..1cfc211 100644
--- a/ubuntu-16.04/template.json
+++ b/ubuntu-16.04/template.json
@@ -279,10 +279,10 @@
       "vm_name": "{{ user `image_name` }}-{{ isotime \"200601021504\"  }}",
       "output_directory": "images/{{ user `image_name` }}-qemu-{{ isotime \"200601021504\"  }}",
       "format": "qcow2",
-      "iso_checksum": "566efef1d6f12e7d3a994c2405bdb642",
+      "iso_checksum": "c71d27a86a168f28097bc30004b54c1f",
       "iso_checksum_type": "md5",
-      "iso_url": "http://cloud-images.ubuntu.com/releases/xenial/release-20180306/ubuntu-16.04-server-cloudimg-amd64-disk1.img",
-      "iso_target_path": "{{ user `images_cache`}}/release-20180306_xenial-server-cloudimg-amd64-disk1.img",
+      "iso_url": "http://releases.ubuntu.com/16.04.5/ubuntu-16.04.5-server-amd64.iso",
+      "iso_target_path": "{{ user `images_cache`}}/ubuntu-16.04.5-server-amd64.iso",
       "disk_image": true,
       "disk_compression": true,
       "accelerator": "kvm",
@@ -294,7 +294,33 @@
       "ssh_host_port_max": 7050,
       "shutdown_command": "shutdown -P now",
       "boot_wait": "2s",
-      "ssh_wait_timeout": "360s"
+      "ssh_wait_timeout": "360s",
+      "boot_command": [
+        "<wait50ms>",
+        "<esc><wait>",
+        "<enter><wait>",
+        "/install/vmlinuz<wait>",
+        " auto<wait>",
+        " console-setup/ask_detect=false<wait>",
+        " console-setup/layoutcode=us<wait>",
+        " console-setup/modelcode=pc105<wait>",
+        " debconf/frontend=noninteractive<wait>",
+        " debian-installer=en_US<wait>",
+        " fb=false<wait>",
+        " initrd=/install/initrd.gz<wait>",
+        " kbd-chooser/method=us<wait>",
+        " keyboard-configuration/layout=USA<wait>",
+        " keyboard-configuration/variant=USA<wait>",
+        " passwd/root-password={{ user `password` }} ",
+        " passwd/root-password-again={{ user `password` }} ",
+        " locale=en_US<wait>",
+        " netcfg/get_hostname=ubuntu<wait>",
+        " netcfg/get_domain=local<wait>",
+        " noapic<wait>",
+        " preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed.cfg<wait>",
+        " -- <wait>",
+        "<enter><wait>"
+      ]
     },
     {
       "type": "openstack",