builder/vmware: Stop the run properly

This commit is contained in:
Mitchell Hashimoto 2013-06-05 15:19:25 -07:00
parent 334fd4e154
commit cd3523fd4f
1 changed files with 1 additions and 1 deletions

View File

@ -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))
}