diff --git a/builder/parallels/common/driver_9.go b/builder/parallels/common/driver_9.go index e29c81bc6..6ef8787c2 100644 --- a/builder/parallels/common/driver_9.go +++ b/builder/parallels/common/driver_9.go @@ -79,6 +79,8 @@ func (d *Parallels9Driver) IsRunning(name string) (bool, error) { return false, err } + log.Printf("Checking VM state: %s\n", strings.TrimSpace(stdout.String())) + for _, line := range strings.Split(stdout.String(), "\n") { if line == "running" { return true, nil @@ -90,6 +92,9 @@ func (d *Parallels9Driver) IsRunning(name string) (bool, error) { if line == "paused" { return true, nil } + if line == "stopping" { + return true, nil + } } return false, nil