After a recent upgrade, my Vagrant box for Kali Linux stopped working!
% vagrant up
Bringing machine ‘default’ up with ‘virtualbox’ provider…
==> default: Checking if box ‘droberson/kali-2016.2-amd64’ 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: 22 (guest) => 2222 (host) (adapter 1)
==> default: Running ‘pre-boot’ VM customizations…
==> 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”, “e8204e33-7808-4852-93af-5bfc9a2568a7”, “–type”, “gui”]
Stderr: VBoxManage: error: The device helper structure version has changed.
VBoxManage: error: If you have upgraded VirtualBox recently, please make sure you have terminated all VMs and upgraded any extension packs. If this error persists, try re-installing VirtualBox. (VERR_PDM_DEVHLPR3_VERSION_MISMATCH)
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component ConsoleWrap, interface IConsole
As you can see, it was red and yucky looking! This can’t be good!
I am running VirtualBox 5.1.10 as indicated by Help -> About VirtualBox from within VirtualBox’s GUI. I didn’t find a quick way to see which version of the extension pack I was running through the GUI, but knew of the following command:
% VBoxManage list extpacks
Extension Packs: 1
Pack no. 0: Oracle VM VirtualBox Extension Pack
Version: 5.1.8
Revision: 111374
Edition:
Description: USB 2.0 and USB 3.0 Host Controller, Host Webcam, VirtualBox RDP, PXE ROM, Disk Encryption.
VRDE Module: VBoxVRDP
Usable: true
Why unusable:
Well, there’s the problem clear as day. I am still using the 5.1.8 extension pack for some reason. I went to VirtualBox’s website and downloaded the new extension pack that matched my 5.1.10 version. When it was done downloading, I installed it:
% VBoxManage extpack install --replace ~/Downloads/Oracle_VM_VirtualBox_Extension_Pack-5.1.10-112026.vbox-extpack
0%…10%…20%…30%…40%…50%…60%…70%…80%…90%…100%
Successfully installed “Oracle VM VirtualBox Extension Pack”.
I double checked that the version numbers match:
% VBoxManage list extpacks
Extension Packs: 1
Pack no. 0: Oracle VM VirtualBox Extension Pack
Version: 5.1.10
Revision: 112026
Edition:
Description: USB 2.0 and USB 3.0 Host Controller, Host Webcam, VirtualBox RDP, PXE ROM, Disk Encryption.
VRDE Module: VBoxVRDP
Usable: true
Why unusable:
Success! I am now able to “vagrant up” my VM.