document ESXi disk compaction & use verbose option
This commit is contained in:
parent
09c71f3810
commit
b51cd22b21
|
@ -47,7 +47,7 @@ func (d *ESX5Driver) Clone(dst, src string, linked bool) error {
|
|||
|
||||
func (d *ESX5Driver) CompactDisk(diskPathLocal string) error {
|
||||
diskPath := d.datastorePath(diskPathLocal)
|
||||
return d.sh("vmkfstools", "-K", diskPath)
|
||||
return d.sh("vmkfstools", "--punchzero", diskPath)
|
||||
}
|
||||
|
||||
func (d *ESX5Driver) CreateDisk(diskPathLocal string, size string, adapter_type string, typeId string) error {
|
||||
|
|
|
@ -147,7 +147,8 @@ builder.
|
|||
|
||||
For ESXi, this defaults to `zeroedthick`. The available options for ESXi
|
||||
are: `zeroedthick`, `eagerzeroedthick`, `thin`, `rdm:dev`, `rdmp:dev`,
|
||||
`2gbsparse`.
|
||||
`2gbsparse`. Due to default disk compaction processing, when using `thick`
|
||||
set `skip_compaction` to `true`.
|
||||
|
||||
For more information, please consult the [Virtual Disk Manager User's
|
||||
Guide](https://www.vmware.com/pdf/VirtualDiskManager.pdf) for desktop
|
||||
|
@ -326,10 +327,11 @@ builder.
|
|||
`5m` or five minutes.
|
||||
|
||||
- `skip_compaction` (boolean) - VMware-created disks are defragmented and
|
||||
compacted at the end of the build process using `vmware-vdiskmanager`. In
|
||||
certain rare cases, this might actually end up making the resulting disks
|
||||
slightly larger. If you find this to be the case, you can disable compaction
|
||||
using this configuration value. Defaults to `false`.
|
||||
compacted at the end of the build process using `vmware-vdiskmanager` or
|
||||
`vmkfstools` in ESXi. In certain rare cases, this might actually end up
|
||||
making the resulting disks slightly larger. If you find this to be the case,
|
||||
you can disable compaction using this configuration value. Defaults to
|
||||
`false`.
|
||||
|
||||
- `skip_export` (boolean) - Defaults to `false`. When enabled, Packer will
|
||||
not export the VM. Useful if the build output is not the resultant
|
||||
|
|
Loading…
Reference in New Issue