Skip to content
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 5.1.x regression #10

Closed
obilodeau opened this issue Aug 5, 2016 · 3 comments
Closed

Virtualbox 5.1.x regression #10

obilodeau opened this issue Aug 5, 2016 · 3 comments
Labels

Comments

@obilodeau
Copy link
Member

Since I upgraded to virtualbox 5.1.0 (from 5.0.x) packer now fails with:

==> virtualbox-iso: Gracefully halting virtual machine...
    virtualbox-iso: Removing floppy drive...
==> virtualbox-iso: Error removing floppy controller: VBoxManage error: VBoxManage: error: The machine 'packer-virtualbox-iso-1470421601' is already locked for a session (or being unlocked)
==> virtualbox-iso: VBoxManage: error: Details: code VBOX_E_INVALID_OBJECT_STATE (0x80bb0007), component MachineWrap, interface IMachine, callee nsISupports
==> virtualbox-iso: VBoxManage: error: Context: "LockMachine(a->session, LockType_Write)" at line 1030 of file VBoxManageStorageController.cpp
==> virtualbox-iso: Unregistering and deleting virtual machine...
==> virtualbox-iso: Deleting output directory...
Build 'virtualbox-iso' errored: Error removing floppy controller: VBoxManage error: VBoxManage: error: The machine 'packer-virtualbox-iso-1470421601' is already locked for a session (or being unlocked)
VBoxManage: error: Details: code VBOX_E_INVALID_OBJECT_STATE (0x80bb0007), component MachineWrap, interface IMachine, callee nsISupports
VBoxManage: error: Context: "LockMachine(a->session, LockType_Write)" at line 1030 of file VBoxManageStorageController.cpp

I've found a workaround here (hashicorp/packer#2401), it works and I will implement it.

@obilodeau obilodeau changed the title Virtualbox 5.1.0 regression Virtualbox 5.1.x regression Aug 8, 2016
@obilodeau
Copy link
Member Author

Can reproduce with vbox 5.1.2

ColinNg added a commit to ColinNg/packer-windows that referenced this issue Nov 22, 2016
    virtualbox-iso: Removing floppy drive...
==> virtualbox-iso: Error removing floppy controller: VBoxManage error: VBoxManage: error: The machine 'packer-virtualbox-iso-1479795526' is already locked for a session (or being unlocked)
==> virtualbox-iso: VBoxManage: error: Details: code VBOX_E_INVALID_OBJECT_STATE (0x80bb0007), component MachineWrap, interface IMachine, callee nsISupports
==> virtualbox-iso: VBoxManage: error: Context: "LockMachine(a->session, LockType_Write)" at line 1038 of file VBoxManageStorageController.cpp
==> virtualbox-iso: Unregistering and deleting virtual machine...

References:
GoSecure/malboxes#10
hashicorp/packer#2401
hashicorp/packer#3952 (comment)
https://www.virtualbox.org/ticket/16063
ColinNg added a commit to ColinNg/packer-windows that referenced this issue Nov 26, 2016
…e modifications:

1. Installs my favorite dev tools.
2. A workaround for “Error removing floppy controller”:
	virtualbox-iso: Removing floppy drive...
	==> virtualbox-iso: Error removing floppy controller: VBoxManage error: VBoxManage: error: The machine 'packer-virtualbox-	iso-1479795526' is already locked for a session (or being unlocked)
	==> virtualbox-iso: VBoxManage: error: Details: code VBOX_E_INVALID_OBJECT_STATE (0x80bb0007), component MachineWrap, 	interface IMachine, callee nsISupports
	==> virtualbox-iso: VBoxManage: error: Context: "LockMachine(a->session, LockType_Write)" at line 1038 of file 	VBoxManageStorageController.cpp
	==> virtualbox-iso: Unregistering and deleting virtual machine...

	References:
	GoSecure/malboxes#10
	hashicorp/packer#2401
	hashicorp/packer#3952 (comment)
	https://www.virtualbox.org/ticket/16063
ColinNg added a commit to ColinNg/packer-windows that referenced this issue Nov 26, 2016
    virtualbox-iso: Removing floppy drive...
==> virtualbox-iso: Error removing floppy controller: VBoxManage error: VBoxManage: error: The machine 'packer-virtualbox-iso-1479795526' is already locked for a session (or being unlocked)
==> virtualbox-iso: VBoxManage: error: Details: code VBOX_E_INVALID_OBJECT_STATE (0x80bb0007), component MachineWrap, interface IMachine, callee nsISupports
==> virtualbox-iso: VBoxManage: error: Context: "LockMachine(a->session, LockType_Write)" at line 1038 of file VBoxManageStorageController.cpp
==> virtualbox-iso: Unregistering and deleting virtual machine...

References:
GoSecure/malboxes#10
hashicorp/packer#2401
hashicorp/packer#3952 (comment)
https://www.virtualbox.org/ticket/16063
ColinNg added a commit to ColinNg/packer-windows that referenced this issue Dec 2, 2016
…e modifications:

1. Installs my favorite dev tools.
2. A workaround for “Error removing floppy controller”:
	virtualbox-iso: Removing floppy drive...
	==> virtualbox-iso: Error removing floppy controller: VBoxManage error: VBoxManage: error: The machine 'packer-virtualbox-	iso-1479795526' is already locked for a session (or being unlocked)
	==> virtualbox-iso: VBoxManage: error: Details: code VBOX_E_INVALID_OBJECT_STATE (0x80bb0007), component MachineWrap, 	interface IMachine, callee nsISupports
	==> virtualbox-iso: VBoxManage: error: Context: "LockMachine(a->session, LockType_Write)" at line 1038 of file 	VBoxManageStorageController.cpp
	==> virtualbox-iso: Unregistering and deleting virtual machine...

	References:
	GoSecure/malboxes#10
	hashicorp/packer#2401
	hashicorp/packer#3952 (comment)
	https://www.virtualbox.org/ticket/16063
@obilodeau
Copy link
Member Author

A work-around has been integrated in packer 0.11: hashicorp/packer#3952

Would require us to do a config change.

ColinNg added a commit to ColinNg/packer-windows that referenced this issue Dec 18, 2016
…e modifications:

1. Installs my favorite dev tools.
2. A workaround for “Error removing floppy controller”:
	virtualbox-iso: Removing floppy drive...
	==> virtualbox-iso: Error removing floppy controller: VBoxManage error: VBoxManage: error: The machine 'packer-virtualbox-	iso-1479795526' is already locked for a session (or being unlocked)
	==> virtualbox-iso: VBoxManage: error: Details: code VBOX_E_INVALID_OBJECT_STATE (0x80bb0007), component MachineWrap, 	interface IMachine, callee nsISupports
	==> virtualbox-iso: VBoxManage: error: Context: "LockMachine(a->session, LockType_Write)" at line 1038 of file 	VBoxManageStorageController.cpp
	==> virtualbox-iso: Unregistering and deleting virtual machine...

	References:
	GoSecure/malboxes#10
	hashicorp/packer#2401
	hashicorp/packer#3952 (comment)
	https://www.virtualbox.org/ticket/16063
ColinNg added a commit to ColinNg/packer-windows that referenced this issue Feb 13, 2017
…e modifications:

1. Installs my favorite dev tools.
2. A workaround for “Error removing floppy controller”:
	virtualbox-iso: Removing floppy drive...
	==> virtualbox-iso: Error removing floppy controller: VBoxManage error: VBoxManage: error: The machine 'packer-virtualbox-	iso-1479795526' is already locked for a session (or being unlocked)
	==> virtualbox-iso: VBoxManage: error: Details: code VBOX_E_INVALID_OBJECT_STATE (0x80bb0007), component MachineWrap, 	interface IMachine, callee nsISupports
	==> virtualbox-iso: VBoxManage: error: Context: "LockMachine(a->session, LockType_Write)" at line 1038 of file 	VBoxManageStorageController.cpp
	==> virtualbox-iso: Unregistering and deleting virtual machine...

	References:
	GoSecure/malboxes#10
	hashicorp/packer#2401
	hashicorp/packer#3952 (comment)
	https://www.virtualbox.org/ticket/16063
ColinNg added a commit to ColinNg/packer-windows that referenced this issue May 1, 2017
…e modifications:

1. Installs my favorite dev tools.
2. A workaround for “Error removing floppy controller”:
	virtualbox-iso: Removing floppy drive...
	==> virtualbox-iso: Error removing floppy controller: VBoxManage error: VBoxManage: error: The machine 'packer-virtualbox-	iso-1479795526' is already locked for a session (or being unlocked)
	==> virtualbox-iso: VBoxManage: error: Details: code VBOX_E_INVALID_OBJECT_STATE (0x80bb0007), component MachineWrap, 	interface IMachine, callee nsISupports
	==> virtualbox-iso: VBoxManage: error: Context: "LockMachine(a->session, LockType_Write)" at line 1038 of file 	VBoxManageStorageController.cpp
	==> virtualbox-iso: Unregistering and deleting virtual machine...

	References:
	GoSecure/malboxes#10
	hashicorp/packer#2401
	hashicorp/packer#3952 (comment)
	https://www.virtualbox.org/ticket/16063
ColinNg added a commit to ColinNg/packer-windows that referenced this issue May 1, 2017
…e modifications:

1. Installs my favorite dev tools.
2. A workaround for “Error removing floppy controller”:
	virtualbox-iso: Removing floppy drive...
	==> virtualbox-iso: Error removing floppy controller: VBoxManage error: VBoxManage: error: The machine 'packer-virtualbox-	iso-1479795526' is already locked for a session (or being unlocked)
	==> virtualbox-iso: VBoxManage: error: Details: code VBOX_E_INVALID_OBJECT_STATE (0x80bb0007), component MachineWrap, 	interface IMachine, callee nsISupports
	==> virtualbox-iso: VBoxManage: error: Context: "LockMachine(a->session, LockType_Write)" at line 1038 of file 	VBoxManageStorageController.cpp
	==> virtualbox-iso: Unregistering and deleting virtual machine...

	References:
	GoSecure/malboxes#10
	hashicorp/packer#2401
	hashicorp/packer#3952 (comment)
	https://www.virtualbox.org/ticket/16063
ColinNg added a commit to ColinNg/packer-windows that referenced this issue Jun 12, 2017
…e modifications:

1. Installs my favorite dev tools.
2. A workaround for “Error removing floppy controller”:
	virtualbox-iso: Removing floppy drive...
	==> virtualbox-iso: Error removing floppy controller: VBoxManage error: VBoxManage: error: The machine 'packer-virtualbox-	iso-1479795526' is already locked for a session (or being unlocked)
	==> virtualbox-iso: VBoxManage: error: Details: code VBOX_E_INVALID_OBJECT_STATE (0x80bb0007), component MachineWrap, 	interface IMachine, callee nsISupports
	==> virtualbox-iso: VBoxManage: error: Context: "LockMachine(a->session, LockType_Write)" at line 1038 of file 	VBoxManageStorageController.cpp
	==> virtualbox-iso: Unregistering and deleting virtual machine...

	References:
	GoSecure/malboxes#10
	hashicorp/packer#2401
	hashicorp/packer#3952 (comment)
	https://www.virtualbox.org/ticket/16063
ColinNg added a commit to ColinNg/packer-windows that referenced this issue Jul 1, 2017
…e modifications:

1. Installs my favorite dev tools.
2. A workaround for “Error removing floppy controller”:
	virtualbox-iso: Removing floppy drive...
	==> virtualbox-iso: Error removing floppy controller: VBoxManage error: VBoxManage: error: The machine 'packer-virtualbox-	iso-1479795526' is already locked for a session (or being unlocked)
	==> virtualbox-iso: VBoxManage: error: Details: code VBOX_E_INVALID_OBJECT_STATE (0x80bb0007), component MachineWrap, 	interface IMachine, callee nsISupports
	==> virtualbox-iso: VBoxManage: error: Context: "LockMachine(a->session, LockType_Write)" at line 1038 of file 	VBoxManageStorageController.cpp
	==> virtualbox-iso: Unregistering and deleting virtual machine...

	References:
	GoSecure/malboxes#10
	hashicorp/packer#2401
	hashicorp/packer#3952 (comment)
	https://www.virtualbox.org/ticket/16063
ColinNg added a commit to ColinNg/packer-windows that referenced this issue Dec 12, 2017
…e modifications:

1. Installs my favorite dev tools.
2. A workaround for “Error removing floppy controller”:
	virtualbox-iso: Removing floppy drive...
	==> virtualbox-iso: Error removing floppy controller: VBoxManage error: VBoxManage: error: The machine 'packer-virtualbox-	iso-1479795526' is already locked for a session (or being unlocked)
	==> virtualbox-iso: VBoxManage: error: Details: code VBOX_E_INVALID_OBJECT_STATE (0x80bb0007), component MachineWrap, 	interface IMachine, callee nsISupports
	==> virtualbox-iso: VBoxManage: error: Context: "LockMachine(a->session, LockType_Write)" at line 1038 of file 	VBoxManageStorageController.cpp
	==> virtualbox-iso: Unregistering and deleting virtual machine...

	References:
	GoSecure/malboxes#10
	hashicorp/packer#2401
	hashicorp/packer#3952 (comment)
	https://www.virtualbox.org/ticket/16063
ColinNg added a commit to ColinNg/packer-windows that referenced this issue Dec 28, 2017
…e modifications:

1. Installs my favorite dev tools.
2. A workaround for “Error removing floppy controller”:
	virtualbox-iso: Removing floppy drive...
	==> virtualbox-iso: Error removing floppy controller: VBoxManage error: VBoxManage: error: The machine 'packer-virtualbox-	iso-1479795526' is already locked for a session (or being unlocked)
	==> virtualbox-iso: VBoxManage: error: Details: code VBOX_E_INVALID_OBJECT_STATE (0x80bb0007), component MachineWrap, 	interface IMachine, callee nsISupports
	==> virtualbox-iso: VBoxManage: error: Context: "LockMachine(a->session, LockType_Write)" at line 1038 of file 	VBoxManageStorageController.cpp
	==> virtualbox-iso: Unregistering and deleting virtual machine...

	References:
	GoSecure/malboxes#10
	hashicorp/packer#2401
	hashicorp/packer#3952 (comment)
	https://www.virtualbox.org/ticket/16063
ColinNg added a commit to ColinNg/packer-windows that referenced this issue Feb 19, 2018
…e modifications:

1. Installs my favorite dev tools.
2. A workaround for “Error removing floppy controller”:
	virtualbox-iso: Removing floppy drive...
	==> virtualbox-iso: Error removing floppy controller: VBoxManage error: VBoxManage: error: The machine 'packer-virtualbox-	iso-1479795526' is already locked for a session (or being unlocked)
	==> virtualbox-iso: VBoxManage: error: Details: code VBOX_E_INVALID_OBJECT_STATE (0x80bb0007), component MachineWrap, 	interface IMachine, callee nsISupports
	==> virtualbox-iso: VBoxManage: error: Context: "LockMachine(a->session, LockType_Write)" at line 1038 of file 	VBoxManageStorageController.cpp
	==> virtualbox-iso: Unregistering and deleting virtual machine...

	References:
	GoSecure/malboxes#10
	hashicorp/packer#2401
	hashicorp/packer#3952 (comment)
	https://www.virtualbox.org/ticket/16063
ColinNg added a commit to ColinNg/packer-windows that referenced this issue Oct 30, 2018
…e modifications:

1. Installs my favorite dev tools.
2. A workaround for “Error removing floppy controller”:
	virtualbox-iso: Removing floppy drive...
	==> virtualbox-iso: Error removing floppy controller: VBoxManage error: VBoxManage: error: The machine 'packer-virtualbox-	iso-1479795526' is already locked for a session (or being unlocked)
	==> virtualbox-iso: VBoxManage: error: Details: code VBOX_E_INVALID_OBJECT_STATE (0x80bb0007), component MachineWrap, 	interface IMachine, callee nsISupports
	==> virtualbox-iso: VBoxManage: error: Context: "LockMachine(a->session, LockType_Write)" at line 1038 of file 	VBoxManageStorageController.cpp
	==> virtualbox-iso: Unregistering and deleting virtual machine...

	References:
	GoSecure/malboxes#10
	hashicorp/packer#2401
	hashicorp/packer#3952 (comment)
	https://www.virtualbox.org/ticket/16063
ColinNg added a commit to ColinNg/packer-windows that referenced this issue Nov 3, 2018
…e modifications:

1. Installs my favorite dev tools.
2. A workaround for “Error removing floppy controller”:
	virtualbox-iso: Removing floppy drive...
	==> virtualbox-iso: Error removing floppy controller: VBoxManage error: VBoxManage: error: The machine 'packer-virtualbox-	iso-1479795526' is already locked for a session (or being unlocked)
	==> virtualbox-iso: VBoxManage: error: Details: code VBOX_E_INVALID_OBJECT_STATE (0x80bb0007), component MachineWrap, 	interface IMachine, callee nsISupports
	==> virtualbox-iso: VBoxManage: error: Context: "LockMachine(a->session, LockType_Write)" at line 1038 of file 	VBoxManageStorageController.cpp
	==> virtualbox-iso: Unregistering and deleting virtual machine...

	References:
	GoSecure/malboxes#10
	hashicorp/packer#2401
	hashicorp/packer#3952 (comment)
	https://www.virtualbox.org/ticket/16063
ColinNg added a commit to ColinNg/packer-windows that referenced this issue Feb 14, 2019
…e modifications:

1. Installs my favorite dev tools.
2. A workaround for “Error removing floppy controller”:
	virtualbox-iso: Removing floppy drive...
	==> virtualbox-iso: Error removing floppy controller: VBoxManage error: VBoxManage: error: The machine 'packer-virtualbox-	iso-1479795526' is already locked for a session (or being unlocked)
	==> virtualbox-iso: VBoxManage: error: Details: code VBOX_E_INVALID_OBJECT_STATE (0x80bb0007), component MachineWrap, 	interface IMachine, callee nsISupports
	==> virtualbox-iso: VBoxManage: error: Context: "LockMachine(a->session, LockType_Write)" at line 1038 of file 	VBoxManageStorageController.cpp
	==> virtualbox-iso: Unregistering and deleting virtual machine...

	References:
	GoSecure/malboxes#10
	hashicorp/packer#2401
	hashicorp/packer#3952 (comment)
	https://www.virtualbox.org/ticket/16063
ColinNg added a commit to ColinNg/packer-windows that referenced this issue Jul 16, 2019
…e modifications:

1. Installs my favorite dev tools.
2. A workaround for “Error removing floppy controller”:
	virtualbox-iso: Removing floppy drive...
	==> virtualbox-iso: Error removing floppy controller: VBoxManage error: VBoxManage: error: The machine 'packer-virtualbox-	iso-1479795526' is already locked for a session (or being unlocked)
	==> virtualbox-iso: VBoxManage: error: Details: code VBOX_E_INVALID_OBJECT_STATE (0x80bb0007), component MachineWrap, 	interface IMachine, callee nsISupports
	==> virtualbox-iso: VBoxManage: error: Context: "LockMachine(a->session, LockType_Write)" at line 1038 of file 	VBoxManageStorageController.cpp
	==> virtualbox-iso: Unregistering and deleting virtual machine...

	References:
	GoSecure/malboxes#10
	hashicorp/packer#2401
	hashicorp/packer#3952 (comment)
	https://www.virtualbox.org/ticket/16063
@obilodeau
Copy link
Member Author

The workaround has been working for a while. I see little reason to remove it or re-evaluate it so I'm closing this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant