hashicorp / packer-plugin-virtualbox

Packer plugin for VritualBox Builder
https://www.packer.io/docs/builders/virtualbox
Mozilla Public License 2.0
22 stars 36 forks source link

VBoxManage: error: Details: code VBOX_E_INVALID_OBJECT_STATE (0x80bb0007), component MachineWrap, interface IMachine, callee nsISupports #85

Open hc-github-team-packer opened 2 years ago

hc-github-team-packer commented 2 years ago

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

==> 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

Packer version

Packer v1.8.3

Simplified Packer Template

Operating system and Environment details

Log Fragments and crash.log files