I have been unable to use the latest version of VirtualBox (Version 5.1.26 r117224 (Qt5.6.2)) on my MacBook Pro (Retina, 15-inch, Mid 2015) with the latest patches (10.12.6 (16G29)).
I had been using VB as part of our Chef/Test Kitchen/Vagrant development for several months without any issues.
If I revert to 5.1.18, everything works like a charm.
So far, what I can find is that the very VM that can't start with
kitchen converge, can start just fine in normal mode. However, even using VB's GUI, I can't start that VM in headless mode.
I also tried to create a plain/blank VM and it shows the same issues. Here is what I did:
- New VM (name: test, Type: Linux, Version: Ubuntu (64-bit), RAM: 1024MB, Create VHD now, VDI, Dynamically Allocated, 10GB, create)
- normal start the VM
- it prompts me to insert a media, which is fine, I don't care
- do the same steps as above, but:
- headless start the VM
- I get the following error:
Result Code: NS_ERROR_FAILURE (0x80004005) Component: MachineWrap Interface: IMachine {b2547866-a0a1-4391-8b86-6952d82efaa0}
Code: Select all
-----> Starting Kitchen (v1.15.0)
WARN: Unresolved specs during Gem::Specification.reset:
ffi (>= 1.0.1)
WARN: Clearing out unresolved specs.
Please report a bug if this causes problems.
-----> Creating <default-ubuntu-1404>...
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Checking if box 'bento/ubuntu-14.04' is up to date...
==> default: Clearing any previously set forwarded ports...
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
==> default: Forwarding ports...
default: 3003 (guest) => 4004 (host) (adapter 1)
default: 22 (guest) => 2222 (host) (adapter 1)
==> default: Booting VM...
There was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.
Command: ["startvm", "38818bc5-f59e-4d4c-ab7d-645b2a620891", "--type", "headless"]
Stderr: VBoxManage: error: The virtual machine 'kitchen-access_tool_api-default-ubuntu-1404_default_1502996132995_50117' has terminated unexpectedly during startup with exit code 1 (0x1)
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component MachineWrap, interface IMachine
>>>>>> ------Exception-------
>>>>>> Class: Kitchen::ActionFailed
>>>>>> Message: 1 actions failed.
>>>>>> Failed to complete #create action: [Expected process to exit with [0], but received '1'
---- Begin output of vagrant up --no-provision --provider virtualbox ----
STDOUT: Bringing machine 'default' up with 'virtualbox' provider...
==> default: Checking if box 'bento/ubuntu-14.04' is up to date...
==> default: Clearing any previously set forwarded ports...
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
==> default: Forwarding ports...
default: 3003 (guest) => 4004 (host) (adapter 1)
default: 22 (guest) => 2222 (host) (adapter 1)
==> default: Booting VM...
STDERR: There was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.
Command: ["startvm", "38818bc5-f59e-4d4c-ab7d-645b2a620891", "--type", "headless"]
Stderr: VBoxManage: error: The virtual machine 'kitchen-access_tool_api-default-ubuntu-1404_default_1502996132995_50117' has terminated unexpectedly during startup with exit code 1 (0x1)
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component MachineWrap, interface IMachine
---- End output of vagrant up --no-provision --provider virtualbox ----
Ran vagrant up --no-provision --provider virtualbox returned 1] on default-ubuntu-1404
>>>>>> ----------------------
>>>>>> Please see .kitchen/logs/kitchen.log for more details
>>>>>> Also try running `kitchen diagnose --all` for configuration