aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--vm/vmm/vmm.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/vm/vmm/vmm.go b/vm/vmm/vmm.go
index dcf417f17..97c83ffcf 100644
--- a/vm/vmm/vmm.go
+++ b/vm/vmm/vmm.go
@@ -115,6 +115,7 @@ func (pool *Pool) Create(workdir string, index int) (vmimpl.Instance, error) {
stop: make(chan bool),
diagnose: make(chan string),
}
+ inst.vmctl("stop", inst.vmName, "-f", "-w") // in case it's still running from the previous run
closeInst := inst
defer func() {
if closeInst != nil {