The version of the software I using are
Ventura 13.0.1
Virtualbox 7.0.2r154219
Vagrant 2.3.3
Chef
Chef Development Kit Version: 3.13.1
chef-client version: 14.14.29
kitchen version: 1.25.0
inspec version: 3.9.3
A normal Vagrant up is working as expected.
However a kitchen converge is failing with
STDERR: A customization command failed:
[“createhd”, “–filename”, “/tmp/kitchen-jira-data.vmdk”, “–size”, 10000]
The following error was experienced:
#<Vagrant::Errors::VBoxManageError: There was an error while executing VBoxManage
, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.
Command: [“createhd”, “–filename”, “/tmp/kitchen-jira-data.vmdk”, “–size”, “10000”]
Stderr: 0%…VBOX_E_FILE_ERROR
VBoxManage: error: Failed to create medium
VBoxManage: error: Could not create the medium storage unit ‘/tmp/kitchen-jira-data.vmdk’.
VBoxManage: error: VDI: cannot create image ‘/tmp/kitchen-jira-data.vmdk’ (VERR_ALREADY_EXISTS)
VBoxManage: error: Details: code VBOX_E_FILE_ERROR (0x80bb0004), component MediumWrap, interface IMedium
*VBoxManage: error: Context: "RTEXITCODE handleCreateMedium(HandlerArg )" at line 632 of file VBoxManageDisk.cpp
>
Please fix this customization and try again.
---- End output of vagrant up --no-provision --provider virtualbox ----
Ran vagrant up --no-provision --provider virtualbox returned 1] on default-centos7-cis
>>>>>> ----------------------
>>>>>> Please see .kitchen/logs/kitchen.log for more details
>>>>>> Also try running kitchen diagnose --all
for configuration
However the file is created in the location it is specified.
Any suggestions would be greatly appreciated.