diff --git a/builder/virtualbox/iso/step_create_vm.go b/builder/virtualbox/iso/step_create_vm.go index e180f6b12..66cd75139 100644 --- a/builder/virtualbox/iso/step_create_vm.go +++ b/builder/virtualbox/iso/step_create_vm.go @@ -76,7 +76,7 @@ func (s *stepCreateVM) Cleanup(state multistep.StateBag) { ui.Say("Unregistering and deleting virtual machine...") var err error = nil for i := 0; i < 5; i++ { - err = driver.VBoxManage("unregistervm", s.vmName, "--delete") + err = driver.Delete(s.vmName) if err == nil { break }