From cd3523fd4f607091030fc03235a3eebb19bd0a01 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Wed, 5 Jun 2013 15:19:25 -0700 Subject: [PATCH] builder/vmware: Stop the run properly --- builder/vmware/step_run.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builder/vmware/step_run.go b/builder/vmware/step_run.go index 35eaa578a..5aac8cc7a 100644 --- a/builder/vmware/step_run.go +++ b/builder/vmware/step_run.go @@ -46,7 +46,7 @@ func (s *stepRun) Cleanup(state map[string]interface{}) { // If we started the machine... stop it. if s.vmxPath != "" { ui.Say("Stopping virtual machine...") - cmd := exec.Command(vmrun_path, "-T", "fusion", "start", s.vmxPath, "gui") + cmd := exec.Command(vmrun_path, "-T", "fusion", "stop", s.vmxPath, "hard") if err := cmd.Run(); err != nil { ui.Error(fmt.Sprintf("Error stopping VM: %s", err)) }