From 8cc2ed7d6ee7c8bed9d35d21cd5e1473463705bb Mon Sep 17 00:00:00 2001 From: Matthew Hooker Date: Tue, 28 Feb 2017 22:21:19 -0800 Subject: [PATCH] vmware/esx: try for longer to connect to vnc port --- builder/vmware/iso/driver_esx5.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builder/vmware/iso/driver_esx5.go b/builder/vmware/iso/driver_esx5.go index 90b7e11b4..80dc1878d 100644 --- a/builder/vmware/iso/driver_esx5.go +++ b/builder/vmware/iso/driver_esx5.go @@ -205,7 +205,7 @@ func (d *ESX5Driver) VNCAddress(_ string, portMin, portMax uint) (string, uint, } address := fmt.Sprintf("%s:%d", d.Host, port) log.Printf("Trying address: %s...", address) - l, err := net.DialTimeout("tcp", address, 5*time.Second) + l, err := net.DialTimeout("tcp", address, 30*time.Second) if err != nil { if e, ok := err.(*net.OpError); ok {