Skip to content

Instantly share code, notes, and snippets.

@rickard-von-essen
Created June 6, 2014 09:12
Show Gist options
  • Save rickard-von-essen/ef722003439e939c4a7f to your computer and use it in GitHub Desktop.
Save rickard-von-essen/ef722003439e939c4a7f to your computer and use it in GitHub Desktop.
Packer Patches
diff --git a/builder/parallels/common/driver_9.go b/builder/parallels/common/driver_9.go
index e29c81b..6ef8787 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
@paul-palmer
Copy link

This patch resolved the problem I was seeing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment