Multiply updates
* Fix output processing
for predictable qemu artifact naming
* install-recommends=false for ubuntu16
* add zerofree for lvm case
* Fix PACKER_ARGS pass
Change-Id: I023b73963aeb7c1d562dbc6b1e414363de913d90
diff --git a/day01-image/template.json b/day01-image/template.json
index 485a4a9..455ed14 100644
--- a/day01-image/template.json
+++ b/day01-image/template.json
@@ -122,17 +122,17 @@
["-object","rng-random,id=objrng0,filename=/dev/urandom"],
["-device", "virtio-rng-pci,rng=objrng0,id=rng0,bus=pci.0,addr=0x10" ]
],
- "vm_name": "{{ user `image_name` }}-{{ isotime \"200601021504\" }}",
+ "vm_name": "{{ user `image_name` }}-{{ isotime \"200601021504\" }}.qcow2",
"output_directory": "images/{{ user `image_name` }}-qemu-{{ isotime \"200601021504\" }}",
- "format": "qcow2",
"disk_compression": true,
+ "disk_size": "{{ user `disk_size`}}",
+ "format": "qcow2",
"iso_checksum": "566efef1d6f12e7d3a994c2405bdb642",
"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",
"disk_image": true,
"accelerator": "kvm",
- "disk_size": "{{ user `disk_size`}}",
"headless": true,
"ssh_username": "{{user `user`}}",
"ssh_password": "{{user `password`}}",