diff --git a/builder/qemu/builder.go b/builder/qemu/builder.go index fb8ad621a..1535eda86 100644 --- a/builder/qemu/builder.go +++ b/builder/qemu/builder.go @@ -76,9 +76,9 @@ var diskDiscard = map[string]bool{ } var diskDZeroes = map[string]bool{ - "unmap": true, - "on": true, - "off": true, + "unmap": true, + "on": true, + "off": true, } type Builder struct { diff --git a/website/source/docs/builders/qemu.html.md.erb b/website/source/docs/builders/qemu.html.md.erb index 962b85c41..768a94a49 100644 --- a/website/source/docs/builders/qemu.html.md.erb +++ b/website/source/docs/builders/qemu.html.md.erb @@ -150,6 +150,9 @@ Linux server and have not enabled X11 forwarding (`ssh -X`). - `disk_discard` (string) - The discard mode to use for disk. Allowed values include any of `unmap` or `ignore`. By default, this is set to `ignore`. +- `disk_detect_zeroes` (string) - The detect-zeroes mode to use for disk. + Allowed values include any of `unmap`, `on` or `off`. Defaults to `off`. + - `disk_image` (boolean) - Packer defaults to building from an ISO file, this parameter controls whether the ISO URL supplied is actually a bootable QEMU image. When this value is set to `true`, the machine will either clone