Check if VirtualBox extension pack already installed
When running the installer script setup.sh
, it checks if VirtualBox is already installed and will skip installing it if it is already installed, however it does not check if the extension pack is already installed, and the script will fail.
Here is the error message received:
0%...
Progress state: NS_ERROR_FAILURE
VBoxManage: error: Failed to install "/private/tmp/Oracle_VM_VirtualBox_Extension_Pack-6.1.32.vbox-extpack"
VBoxManage: error: Extension pack 'Oracle VM VirtualBox Extension Pack' is already installed. In case of a reinstallation, please uninstall it first
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component ExtPackManagerWrap, interface IExtPackManager
VBoxManage: error: Context: "RTEXITCODE handleExtPack(HandlerArg *)" at line 1424 of file VBoxManageMisc.cpp
The following command will show installed extension packs, which could be used to detect this situation and skip the installation (Please ignore the message about the extension pack not being useable for this issue):
Poppy:minicoin kkyzivat$ VBoxManage list extpacks
Extension Packs: 1
Pack no. 0: Oracle VM VirtualBox Extension Pack
Version: 6.1.32
Revision: 149290
Edition:
Description: Oracle Cloud Infrastructure integration, USB 2.0 and USB 3.0 Host Controller, Host Webcam, VirtualBox RDP, PXE ROM, Disk Encryption, NVMe.
VRDE Module: VBoxVRDP
Usable: false
Why unusable: VBoxExtPackRegister returned VERR_VERSION_MISMATCH, pReg=0000000000000000 ErrInfo='Helper version mismatch - expected 0x3 got 0x30000'