From 585638d06384dacffd9bd1163460430661764299 Mon Sep 17 00:00:00 2001 From: Bob Kuo Date: Tue, 28 Jul 2015 17:21:37 -0500 Subject: [PATCH] Do not require exclusive VNC access while buildling An additional client can be connected during build time for inspection. We can manually connect and set our VNC clients to ignore all input or we can connect with vnc2flv to record the build session for later verification. --- builder/qemu/step_type_boot_command.go | 2 +- builder/vmware/common/step_type_boot_command.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/builder/qemu/step_type_boot_command.go b/builder/qemu/step_type_boot_command.go index e42903f55..b97241b0b 100644 --- a/builder/qemu/step_type_boot_command.go +++ b/builder/qemu/step_type_boot_command.go @@ -52,7 +52,7 @@ func (s *stepTypeBootCommand) Run(state multistep.StateBag) multistep.StepAction } defer nc.Close() - c, err := vnc.Client(nc, &vnc.ClientConfig{Exclusive: true}) + c, err := vnc.Client(nc, &vnc.ClientConfig{Exclusive: false}) if err != nil { err := fmt.Errorf("Error handshaking with VNC: %s", err) state.Put("error", err) diff --git a/builder/vmware/common/step_type_boot_command.go b/builder/vmware/common/step_type_boot_command.go index b23ede1da..3959e5517 100644 --- a/builder/vmware/common/step_type_boot_command.go +++ b/builder/vmware/common/step_type_boot_command.go @@ -57,7 +57,7 @@ func (s *StepTypeBootCommand) Run(state multistep.StateBag) multistep.StepAction } defer nc.Close() - c, err := vnc.Client(nc, &vnc.ClientConfig{Exclusive: true}) + c, err := vnc.Client(nc, &vnc.ClientConfig{Exclusive: false}) if err != nil { err := fmt.Errorf("Error handshaking with VNC: %s", err) state.Put("error", err)