Please vote on this issue by adding a 👍 reaction 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
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
Overview of the Issue
Packer won't build a Virtualbox VM on an ISO image. Error is
Reproduction Steps
Packer version
Packer v1.8.3
Simplified Packer Template
Operating system and Environment details
macos-12
Log Fragments and crash.log files