Increase 'ip_wait_timeout' default value to 30 minutes
Often copying VM (vsphere-clone) takes more than 5 minutes. Creating VM from scratch (vsphere-iso) time expensive too.
This commit is contained in:
parent
b8ed1bd576
commit
4cf9ff78a2
|
@ -109,7 +109,7 @@ See complete Ubuntu, Windows, and macOS templates in the [examples folder](https
|
|||
### Provision
|
||||
|
||||
* `communicator` - `ssh` (default), `winrm`, or `none` (create/clone, customize hardware, but do not boot).
|
||||
* `ip_wait_timeout`(string) - Amount of time to wait for VM's IP, similar to 'ssh_timeout'. Defaults to 5m (5 minutes). See the Go Lang [ParseDuration](https://golang.org/pkg/time/#ParseDuration) documentation for full details.
|
||||
* `ip_wait_timeout`(string) - Amount of time to wait for VM's IP, similar to 'ssh_timeout'. Defaults to 30m (30 minutes). See the Go Lang [ParseDuration](https://golang.org/pkg/time/#ParseDuration) documentation for full details.
|
||||
* `ip_settle_timeout`(string) - Amount of time to wait for VM's IP to settle down, sometimes VM may report incorrect IP initially, then its recommended to set that parameter to apx. 2 minutes. Examples 45s and 10m. Defaults to 5s(5 seconds). See the Go Lang [ParseDuration](https://golang.org/pkg/time/#ParseDuration) documentation for full details.
|
||||
* `ssh_username`(string) - Username in guest OS.
|
||||
* `ssh_password`(string) - Password to access guest OS. Only specify `ssh_password` or `ssh_private_key_file`, but not both.
|
||||
|
|
|
@ -28,8 +28,7 @@ func (c *WaitIpConfig) Prepare() []error {
|
|||
c.SettleTimeout = 5 * time.Second
|
||||
}
|
||||
if c.WaitTimeout == 0 {
|
||||
// Same default value as default timeout for 'ssh_timeout' in StepConnect
|
||||
c.WaitTimeout = 5 * time.Minute
|
||||
c.WaitTimeout = 30 * time.Minute
|
||||
}
|
||||
|
||||
return errs
|
||||
|
|
Loading…
Reference in New Issue