From 541a209f93a42f73d25e83c211ae224ef94515d6 Mon Sep 17 00:00:00 2001 From: Matthew Hooker Date: Mon, 28 Nov 2016 11:30:36 -0800 Subject: [PATCH] clarify docs for TRIM --- website/source/docs/builders/virtualbox-iso.html.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/website/source/docs/builders/virtualbox-iso.html.md b/website/source/docs/builders/virtualbox-iso.html.md index 7e1df023a..641cc0158 100644 --- a/website/source/docs/builders/virtualbox-iso.html.md +++ b/website/source/docs/builders/virtualbox-iso.html.md @@ -198,14 +198,16 @@ builder. - `hard_drive_nonrotational` (boolean) - Forces some guests (i.e. Windows 7+) to treat disks as SSDs and stops them from performing disk fragmentation. + Also set `hard_drive_Discard` to `true` to enable TRIM support. -- `hard_drive_discard` (boolean) - When this value is set to true, a VDI +- `hard_drive_discard` (boolean) - When this value is set to `true`, a VDI image will be shrunk in response to the trim command from the guest OS. - The size of the cleared area must be at least 1MB. + The size of the cleared area must be at least 1MB. Also set + `hard_drive_nonrotational` to `true` to enable TRIM support. - `headless` (boolean) - Packer defaults to building VirtualBox virtual machines by launching a GUI that shows the console of the machine - being built. When this value is set to true, the machine will start without + being built. When this value is set to `true`, the machine will start without a console. - `http_directory` (string) - Path to a directory to serve using an @@ -270,7 +272,7 @@ builder. Packer will choose a randomly available port in this range to use as the host port. By default this is 2222 to 4444. -- `ssh_skip_nat_mapping` (boolean) - Defaults to false. When enabled, Packer +- `ssh_skip_nat_mapping` (boolean) - Defaults to `false`. When enabled, Packer does not setup forwarded port mapping for SSH requests and uses `ssh_port` on the host to communicate to the virtual machine