From 7bc3128e181c0903a5e9679ed05d3adfa940c73d Mon Sep 17 00:00:00 2001 From: Megan Marsh Date: Mon, 3 Dec 2018 15:56:35 -0800 Subject: [PATCH] update docs for detect-zero --- website/source/docs/builders/qemu.html.md.erb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/website/source/docs/builders/qemu.html.md.erb b/website/source/docs/builders/qemu.html.md.erb index 043c0ed46..0099f657f 100644 --- a/website/source/docs/builders/qemu.html.md.erb +++ b/website/source/docs/builders/qemu.html.md.erb @@ -145,8 +145,10 @@ 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. +- `disk_detect_zeroes` (string) - The detect-zeroes mode to use for disk. Allowed values include any of `unmap`, `on` or `off`. Defaults to `off`. + When the value is "off" we don't set the flag in the qemu command, so that + Packer still works with old versions of QEMU that don't have this option. - `disk_image` (boolean) - Packer defaults to building from an ISO file, this parameter controls whether the ISO URL supplied is actually a bootable