-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
virtualbox-iso error: machine is already locked for a session (or being unlocked) #5424
Comments
I wonder if you need to increase the post_shutdown_delay to something like 2 minutes, which is generally around when these types of issues seem to go away. Otherwise, I think adding a retry as with #4432 would work. Can you reproduce this reliably? |
If it doesn't work on headless mode, then this is different from #1193 |
@mwhooker increasing it to 2min fixed the issue. Thank you! |
Error: ``` Error deleting port forwarding rule: VBoxManage error: VBoxManage.exe: error: The machine 'kernel-UbuntuServer-16.04.4-0.1.0_amd64' is already locked for a session (or being unlocked) VBoxManage.exe: error: Details: code VBOX_E_INVALID_OBJECT_STATE (0x80bb0007), component MachineWrap, interface IMachine, callee IUnknown VBoxManage.exe: error: Context: "LockMachine(a->session, LockType_Write)" at line 525 of file VBoxManageModifyVM.cpp ``` Fixed as stated in hashicorp/packer#5424
Error: ``` Error deleting port forwarding rule: VBoxManage error: VBoxManage.exe: error: The machine 'kernel-UbuntuServer-16.04.4-0.1.0_amd64' is already locked for a session (or being unlocked) VBoxManage.exe: error: Details: code VBOX_E_INVALID_OBJECT_STATE (0x80bb0007), component MachineWrap, interface IMachine, callee IUnknown VBoxManage.exe: error: Context: "LockMachine(a->session, LockType_Write)" at line 525 of file VBoxManageModifyVM.cpp ``` Fixed as stated in hashicorp/packer#5424
Error: ``` Error deleting port forwarding rule: VBoxManage error: VBoxManage.exe: error: The machine 'kernel-UbuntuServer-16.04.4-0.1.0_amd64' is already locked for a session (or being unlocked) VBoxManage.exe: error: Details: code VBOX_E_INVALID_OBJECT_STATE (0x80bb0007), component MachineWrap, interface IMachine, callee IUnknown VBoxManage.exe: error: Context: "LockMachine(a->session, LockType_Write)" at line 525 of file VBoxManageModifyVM.cpp ``` Fixed as stated in hashicorp/packer#5424
Error: ``` Error deleting port forwarding rule: VBoxManage error: VBoxManage.exe: error: The machine 'kernel-UbuntuServer-16.04.4-0.1.0_amd64' is already locked for a session (or being unlocked) VBoxManage.exe: error: Details: code VBOX_E_INVALID_OBJECT_STATE (0x80bb0007), component MachineWrap, interface IMachine, callee IUnknown VBoxManage.exe: error: Context: "LockMachine(a->session, LockType_Write)" at line 525 of file VBoxManageModifyVM.cpp ``` Fixed as stated in hashicorp/packer#5424
Error: ``` Error deleting port forwarding rule: VBoxManage error: VBoxManage.exe: error: The machine 'kernel-UbuntuServer-16.04.4-0.1.0_amd64' is already locked for a session (or being unlocked) VBoxManage.exe: error: Details: code VBOX_E_INVALID_OBJECT_STATE (0x80bb0007), component MachineWrap, interface IMachine, callee IUnknown VBoxManage.exe: error: Context: "LockMachine(a->session, LockType_Write)" at line 525 of file VBoxManageModifyVM.cpp ``` Fixed as stated in hashicorp/packer#5424
Error: ``` Error deleting port forwarding rule: VBoxManage error: VBoxManage.exe: error: The machine 'kernel-UbuntuServer-16.04.4-0.1.0_amd64' is already locked for a session (or being unlocked) VBoxManage.exe: error: Details: code VBOX_E_INVALID_OBJECT_STATE (0x80bb0007), component MachineWrap, interface IMachine, callee IUnknown VBoxManage.exe: error: Context: "LockMachine(a->session, LockType_Write)" at line 525 of file VBoxManageModifyVM.cpp ``` Fixed as stated in hashicorp/packer#5424
Error: ``` Error deleting port forwarding rule: VBoxManage error: VBoxManage.exe: error: The machine 'kernel-UbuntuServer-16.04.4-0.1.0_amd64' is already locked for a session (or being unlocked) VBoxManage.exe: error: Details: code VBOX_E_INVALID_OBJECT_STATE (0x80bb0007), component MachineWrap, interface IMachine, callee IUnknown VBoxManage.exe: error: Context: "LockMachine(a->session, LockType_Write)" at line 525 of file VBoxManageModifyVM.cpp ``` Fixed as stated in hashicorp/packer#5424
Error: ``` Error deleting port forwarding rule: VBoxManage error: VBoxManage.exe: error: The machine 'kernel-UbuntuServer-16.04.4-0.1.0_amd64' is already locked for a session (or being unlocked) VBoxManage.exe: error: Details: code VBOX_E_INVALID_OBJECT_STATE (0x80bb0007), component MachineWrap, interface IMachine, callee IUnknown VBoxManage.exe: error: Context: "LockMachine(a->session, LockType_Write)" at line 525 of file VBoxManageModifyVM.cpp ``` Fixed as stated in hashicorp/packer#5424
Error: ``` Error deleting port forwarding rule: VBoxManage error: VBoxManage.exe: error: The machine 'kernel-UbuntuServer-16.04.4-0.1.0_amd64' is already locked for a session (or being unlocked) VBoxManage.exe: error: Details: code VBOX_E_INVALID_OBJECT_STATE (0x80bb0007), component MachineWrap, interface IMachine, callee IUnknown VBoxManage.exe: error: Context: "LockMachine(a->session, LockType_Write)" at line 525 of file VBoxManageModifyVM.cpp ``` Fixed as stated in hashicorp/packer#5424
Error: ``` Error deleting port forwarding rule: VBoxManage error: VBoxManage.exe: error: The machine 'kernel-UbuntuServer-16.04.4-0.1.0_amd64' is already locked for a session (or being unlocked) VBoxManage.exe: error: Details: code VBOX_E_INVALID_OBJECT_STATE (0x80bb0007), component MachineWrap, interface IMachine, callee IUnknown VBoxManage.exe: error: Context: "LockMachine(a->session, LockType_Write)" at line 525 of file VBoxManageModifyVM.cpp ``` Fixed as stated in hashicorp/packer#5424
Error: ``` Error deleting port forwarding rule: VBoxManage error: VBoxManage.exe: error: The machine 'kernel-UbuntuServer-16.04.4-0.1.0_amd64' is already locked for a session (or being unlocked) VBoxManage.exe: error: Details: code VBOX_E_INVALID_OBJECT_STATE (0x80bb0007), component MachineWrap, interface IMachine, callee IUnknown VBoxManage.exe: error: Context: "LockMachine(a->session, LockType_Write)" at line 525 of file VBoxManageModifyVM.cpp ``` Fixed as stated in hashicorp/packer#5424
Error: ``` Error deleting port forwarding rule: VBoxManage error: VBoxManage.exe: error: The machine 'kernel-UbuntuServer-16.04.4-0.1.0_amd64' is already locked for a session (or being unlocked) VBoxManage.exe: error: Details: code VBOX_E_INVALID_OBJECT_STATE (0x80bb0007), component MachineWrap, interface IMachine, callee IUnknown VBoxManage.exe: error: Context: "LockMachine(a->session, LockType_Write)" at line 525 of file VBoxManageModifyVM.cpp ``` Fixed as stated in hashicorp/packer#5424
Error: ``` Error deleting port forwarding rule: VBoxManage error: VBoxManage.exe: error: The machine 'kernel-UbuntuServer-16.04.4-0.1.0_amd64' is already locked for a session (or being unlocked) VBoxManage.exe: error: Details: code VBOX_E_INVALID_OBJECT_STATE (0x80bb0007), component MachineWrap, interface IMachine, callee IUnknown VBoxManage.exe: error: Context: "LockMachine(a->session, LockType_Write)" at line 525 of file VBoxManageModifyVM.cpp ``` Fixed as stated in hashicorp/packer#5424
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
packer version: 1.1.0
VirtualBox: 5.1.28
OS: CentOS 7.4
"post_shutdown_delay": "30s" has no impact. headless/non-headless makes no difference.
When I ran packer in debug mode, it finished fine. It seems there is a timing issue and in debug mode things slow down enough that VirtualBox has enough time to remove the locks (or whatever it's trying to do).
The text was updated successfully, but these errors were encountered: