diff --git a/builder/qemu/builder.go b/builder/qemu/builder.go index f03329947..6d85d2654 100644 --- a/builder/qemu/builder.go +++ b/builder/qemu/builder.go @@ -149,10 +149,11 @@ type Config struct { // one of the other listed interfaces. Using the `scsi` interface under // these circumstances will cause the build to fail. DiskInterface string `mapstructure:"disk_interface" required:"false"` - // The size in bytes, suffixes of the first letter of common byte types - // like "k" or "K", "M" for megabytes, G for gigabytes, T for terabytes. - // Will create the of the hard disk of the VM. By default, this is - // `40960M` (40 GB). + // The size in bytes of the hard disk of the VM. Suffix with the first + // letter of common byte types. Use "k" or "K" for kilobytes, "M" for + // megabytes, G for gigabytes, and T for terabytes. If no value is provided + // for disk_size, Packer uses a default of `40960M` (40 GB). If a disk_size + // number is provided with no units, Packer will default to Megabytes. DiskSize string `mapstructure:"disk_size" required:"false"` // The cache mode to use for disk. Allowed values include any of // `writethrough`, `writeback`, `none`, `unsafe` or `directsync`. By diff --git a/website/source/partials/builder/qemu/_Config-not-required.html.md b/website/source/partials/builder/qemu/_Config-not-required.html.md index b0b3922cc..7c4b56b02 100644 --- a/website/source/partials/builder/qemu/_Config-not-required.html.md +++ b/website/source/partials/builder/qemu/_Config-not-required.html.md @@ -47,10 +47,11 @@ one of the other listed interfaces. Using the `scsi` interface under these circumstances will cause the build to fail. -- `disk_size` (string) - The size in bytes, suffixes of the first letter of common byte types - like "k" or "K", "M" for megabytes, G for gigabytes, T for terabytes. - Will create the of the hard disk of the VM. By default, this is - `40960M` (40 GB). +- `disk_size` (string) - The size in bytes of the hard disk of the VM. Suffix with the first + letter of common byte types. Use "k" or "K" for kilobytes, "M" for + megabytes, G for gigabytes, and T for terabytes. If no value is provided + for disk_size, Packer uses a default of `40960M` (40 GB). If a disk_size + number is provided with no units, Packer will default to Megabytes. - `disk_cache` (string) - The cache mode to use for disk. Allowed values include any of `writethrough`, `writeback`, `none`, `unsafe` or `directsync`. By