From d7ec64650628a5da62a1b10ebbb9533adcafa29b Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Mon, 24 Jun 2013 09:32:08 -0700 Subject: [PATCH] builder/virtualbox: "stopping" is still running [GH-30] --- builder/virtualbox/driver.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/builder/virtualbox/driver.go b/builder/virtualbox/driver.go index 093338eff..856abcc32 100644 --- a/builder/virtualbox/driver.go +++ b/builder/virtualbox/driver.go @@ -53,6 +53,12 @@ func (d *VBox42Driver) IsRunning(name string) (bool, error) { if line == `VMState="running"` { return true, nil } + + // We consider "stopping" to still be running. We wait for it to + // be completely stopped or some other state. + if line == `VMState="stopping"` { + return true, nil + } } return false, nil