From bf97557abfaff274c4c6fb540e6cef2ebd084ed9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?PORTE=20Lo=C3=AFc?= Date: Wed, 28 Nov 2018 17:40:22 +0100 Subject: [PATCH] Backport VNC log from vmware to qemu --- builder/qemu/step_type_boot_command.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/builder/qemu/step_type_boot_command.go b/builder/qemu/step_type_boot_command.go index 11ebf3621..86e838d25 100644 --- a/builder/qemu/step_type_boot_command.go +++ b/builder/qemu/step_type_boot_command.go @@ -65,7 +65,8 @@ func (s *stepTypeBootCommand) Run(ctx context.Context, state multistep.StateBag) } // Connect to VNC - ui.Say("Connecting to VM via VNC") + ui.Say(fmt.Sprintf("Connecting to VM via VNC (%s:%d)", vncIP, vncPort)) + nc, err := net.Dial("tcp", fmt.Sprintf("%s:%d", vncIP, vncPort)) if err != nil { err := fmt.Errorf("Error connecting to VNC: %s", err)