hashicorp / hashicorp/packer-plugin-virtualbox
VBoxManage: error: Details: code VBOX_E_INVALID_OBJECT_STATE (0x80bb0007), component MachineWrap, interface IMachine, callee nsISupports
- Dominant language
- Go
- Stars
- 29
- Forks
- 45
- PR merge metrics
- No merged PRs in 30d
Description
_This issue was originally opened by @Neudrino in https://github.com/hashicorp/packer/issues/12008 and has been migrated to this repository. The original issue description is below._
---
#### Community Note
* Please vote on this issue by adding a 👍 [reaction](https://blog.github.com/2016-03-10-add-reactions-to-pull-requests-issues-and-comments/) to the original issue to help the community and maintainers prioritize this request
* Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
* If you are interested in working on this issue or have submitted a pull request, please leave a comment
### Overview of the Issue
Packer won't build a Virtualbox VM on an ISO image. Error is
```
==> virtualbox-iso: Error starting VM: retry count exhausted. Last err: VBoxManage error: VBoxManage: error: The machine 'packer-virtualbox-iso-1663686568' is already locked by a session (or being locked or unlocked)
==> virtualbox-iso: VBoxManage: error: Details: code VBOX_E_INVALID_OBJECT_STATE (0x80bb0007), component MachineWrap, interface IMachine, callee nsISupports
==> virtualbox-iso: VBoxManage: error: Context: "LaunchVMProcess(a->session, sessionType.raw(), ComSafeArrayAsInParam(aBstrEnv), progress.asOutParam())" at line 727 of file VBoxManageMisc.cpp
```
### Reproduction Steps
- Configure and run the following Github action:
https://github.com/Neudrino/magma/blob/e5066cb59483d080dd72fc1da337c4cd9acee21d/.github/workflows/build-vm-dev.yml#L14-L48
### Packer version
`Packer v1.8.3`
### Simplified Packer Template
- See https://github.com/Neudrino/magma/blob/e5066cb59483d080dd72fc1da337c4cd9acee21d/.github/workflows/build-vm-dev.yml#L24-L43
### Operating system and Environment details
- Github Runner `macos-12`
### Log Fragments and crash.log files
- See run https://github.com/Neudrino/magma/actions/runs/3091413986/jobs/5001454092.
Contributor guide
Assessment
This issue has not been assessed yet.