new packer for 16.04
diff --git a/http/ubuntu-16.04/preseed.cfg b/http/ubuntu-16.04/preseed.cfg
new file mode 100644
index 0000000..900e55a
--- /dev/null
+++ b/http/ubuntu-16.04/preseed.cfg
@@ -0,0 +1,40 @@
+choose-mirror-bin mirror/http/proxy string
+d-i base-installer/kernel/override-image string linux-server
+d-i clock-setup/utc boolean true
+d-i clock-setup/utc-auto boolean true
+d-i finish-install/reboot_in_progress note
+d-i grub-installer/only_debian boolean true
+d-i grub-installer/with_other_os boolean true
+d-i partman-basicfilesystems/no_swap boolean false
+d-i partman-auto/expert_recipe string \
+ myroot :: \
+ 1000 50 -1 ext4 \
+ $primary{ } $bootable{ } \
+ method{ format } format{ } \
+ use_filesystem{ } filesystem{ ext4 } \
+ mountpoint{ / } \
+ .
+d-i partman-auto/choose_recipe select myroot
+d-i partman-auto/method string regular
+d-i partman/choose_partition select finish
+d-i partman/confirm boolean true
+d-i partman/confirm_nooverwrite boolean true
+d-i partman/confirm_write_new_label boolean true
+d-i passwd/user-fullname string asf999
+d-i passwd/user-uid string 999
+d-i passwd/user-gid string 999
+d-i passwd/user-password password asf999
+d-i passwd/user-password-again password asf999
+d-i passwd/username string asf999
+d-i pkgsel/install-language-support boolean false
+d-i pkgsel/update-policy select none
+d-i pkgsel/upgrade select full-upgrade
+d-i time/zone string UTC
+d-i user-setup/allow-password-weak boolean true
+d-i user-setup/encrypt-home boolean false
+d-i mirror/country string manual
+d-i mirror/http/hostname string ubuntu.osuosl.org
+d-i mirror/http/directory string /ubuntu
+tasksel tasksel/first multiselect standard, ubuntu-server
+d-i pkgsel/include string openssh-server cryptsetup build-essential libssl-dev libreadline-dev zlib1g-dev linux-source dkms nfs-common haveged vim git puppet cloud-initramfs-growroot
+d-i pkgsel/upgrade select full-upgrade
diff --git a/ubuntu-1604-amd64.json b/ubuntu-1604-amd64.json
new file mode 100644
index 0000000..a7a8fc8
--- /dev/null
+++ b/ubuntu-1604-amd64.json
@@ -0,0 +1,96 @@
+{
+ "builders":
+ [
+ {
+ "type": "qemu",
+ "qemuargs": [ [ "-m", "3096" ], [ "-smp", "3"] ],
+ "http_directory": "http",
+ "iso_checksum": "{{user `iso_checksum`}}",
+ "iso_checksum_type": "{{user `iso_checksum_type`}}",
+ "iso_url": "{{user `mirror`}}/{{user `mirror_directory`}}/{{user `iso_name`}}",
+ "output_directory": "packer-{{user `template`}}-qemu",
+ "disk_size": 10000,
+ "format": "qcow2",
+ "headless": false,
+ "accelerator": "kvm",
+ "shutdown_command": "echo 'asf999' | sudo -S shutdown -P now",
+ "ssh_password": "asf999",
+ "ssh_port": 22,
+ "ssh_username": "asf999",
+ "ssh_wait_timeout": "10000s",
+ "vm_name": "tdhtest",
+ "net_device": "virtio-net",
+ "disk_interface": "virtio",
+ "boot_wait": "5s",
+ "boot_command": [
+ "<esc><wait>",
+ "<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>",
+ " locale=en_US<wait>",
+ " netcfg/get_domain=apache.org<wait>",
+ " netcfg/get_hostname=base<wait>",
+ " noapic<wait>",
+ " preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/{{user `preseed_path`}}<wait>",
+ " -- <wait>",
+ "<enter><wait>"
+ ]
+ }
+ ],
+ "provisioners": [
+ {
+ "destination": "/tmp/bento-metadata.json",
+ "source": "{{user `metadata`}}",
+ "type": "file"
+ },
+ {
+ "environment_vars": [
+ "HOME_DIR=/home/asf999",
+ "http_proxy={{user `http_proxy`}}",
+ "https_proxy={{user `https_proxy`}}",
+ "no_proxy={{user `no_proxy`}}"
+ ],
+ "execute_command": "echo 'asf999' | {{.Vars}} sudo -S -E sh -eux '{{.Path}}'",
+ "scripts": [
+ "scripts/ubuntu/update.sh",
+ "scripts/ubuntu/networking.sh",
+ "scripts/ubuntu/bootstrap.sh",
+ "scripts/ubuntu/cleanup.sh",
+ "scripts/common/minimize.sh"
+ ],
+ "type": "shell"
+ }
+ ],
+
+ "variables": {
+ "box_basename": "ubuntu16",
+ "build_timestamp": "{{isotime \"20060102150405\"}}",
+ "git_revision": "__unknown_git_revision__",
+ "headless": "",
+ "http_proxy": "{{env `http_proxy`}}",
+ "https_proxy": "{{env `https_proxy`}}",
+ "iso_checksum": "b8b172cbdf04f5ff8adc8c2c1b4007ccf66f00fc6a324a6da6eba67de71746f6",
+ "iso_checksum_type": "sha256",
+ "iso_name": "ubuntu-16.04-server-amd64.iso",
+ "metadata": "floppy/dummy_metadata.json",
+ "mirror": "http://ubuntu.osuosl.org/releases",
+ "mirror_directory": "16.04.1",
+ "name": "ubuntu-16.04.1",
+ "no_proxy": "{{env `no_proxy`}}",
+ "preseed_path": "ubuntu-16.04/preseed.cfg",
+ "template": "ubuntu-16.04-amd64",
+ "version": "2.1.TIMESTAMP"
+ }
+
+}