Commit cd3523fd authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

builder/vmware: Stop the run properly

parent 334fd4e1
...@@ -46,7 +46,7 @@ func (s *stepRun) Cleanup(state map[string]interface{}) { ...@@ -46,7 +46,7 @@ func (s *stepRun) Cleanup(state map[string]interface{}) {
// If we started the machine... stop it. // If we started the machine... stop it.
if s.vmxPath != "" { if s.vmxPath != "" {
ui.Say("Stopping virtual machine...") 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 { if err := cmd.Run(); err != nil {
ui.Error(fmt.Sprintf("Error stopping VM: %s", err)) ui.Error(fmt.Sprintf("Error stopping VM: %s", err))
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment