I'm totally new to vagrant AND I'm using a utility that depends on vagrant, so there is a layer of abstraction I'm dealing with to figure out why things aren't working.
At this point, I don't know if the error is with Vagrant or with DetectionLab, so I beg your indulgence while I try to determine where the issue is.
I have a Windows 10 laptop with 16GB RAM and VMware Workstation 15.x and everything is done under the admin account via an admin cli.
Vagrant is installed on C: but the vagrantfile is located on E: (which has a ton of space).
To prep, I downloaded and installed vagrant and purchased the vmware plugin as well. But when I ran the command to build the Detectionlab machines I got the following error:
<snip>
[preflight_checks] Checking for bad packer version..
[preflight_checks] Checking if Vagrant is installed
[preflight_checks] Checking for pre-existing boxes..
[preflight_checks] Checking for vagrant instances..
Vagrant encountered an error while attempting to load the utility
service key file. This error can occur if the Vagrant VMware Utility
has not yet been installed, or if it was installed incorrectly. If
this error persists after running the Vagrant VMware Utility installer
again, please contact support at: support email for
hashicorp.comInformation about the Vagrant VMware Utility, including installation
instruction, can be found here:
https://www.vagrantup.com/docs/vmware/vagrant-vmware-utility.html Path: C:/ProgramData/hashicorp/vagrant-vmware-desktop/certificates/vagrant-utility.client.crt
Error: No such file or directory @ rb_sysopen - C:/ProgramData/hashicorp/vagrant-vmware-desktop/certificates/vagrant-utility.client.crt
preflight_checks : You appear to have already created at least one Vagrant instance. This script
does not support already created instances. Please either destroy the existing instances or follow
the build steps in the README to continue.
At E:\DetectionLab-master\build.ps1:391 char:1
+ preflight_checks
+ ~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,preflight_checks
E:\>
So I started checking vagrant to figure out if I did that part right:
E:\DetectionLab-master>vagrant -v
Vagrant 2.2.6
C:\>vagrant plugin list
vagrant-reload (0.0.1, global)
vagrant-vmware-desktop (2.0.3, global)
E:\DetectionLab-master>vagrant global-status
id name provider state directory
--------------------------------------------------------------------
There are no active Vagrant environments on this computer! Or,
you haven't destroyed and recreated Vagrant environments that were
started with an older version of Vagrant.
E:\DetectionLab-master>vagrant destroy
Vagrant encountered an error while attempting to load the utility
service key file. This error can occur if the Vagrant VMware Utility
has not yet been installed, or if it was installed incorrectly. If
this error persists after running the Vagrant VMware Utility installer
again, please contact support at: support email for
hashicorp.comInformation about the Vagrant VMware Utility, including installation
instruction, can be found here:
https://www.vagrantup.com/docs/vmware/vagrant-vmware-utility.html Path: C:/ProgramData/hashicorp/vagrant-vmware-desktop/certificates/vagrant-utility.client.crt
Error: No such file or directory @ rb_sysopen - C:/ProgramData/hashicorp/vagrant-vmware-desktop/certificates/vagrant-utility.client.crt
E:\DetectionLab-master>vagrant box list
There are no installed boxes! Use `vagrant box add` to add some.
E:\DetectionLab-master>vagrant box prune
There are no installed boxes! Use `vagrant box add` to add some.
I uninstalled vagrant, rebooted, and re-installed Vagrant and got the exact same error. I've googled "Vagrant encountered an error while attempting to load the utility service key file." and only got one hit and that was for a permission denied issue. My Error is: "No such file or directory @ rb_sysopen"
I had tried to do the DetectionLab install some months ago without purchasing the vmware plugin license, but it didn't work. I deleted that directory when I started anew. But it seems that Vagrant is still seeing that previous attempt?
So my question is this: Is there some process I should try to clean up Vagrant or do these errors point to something with DetectionLab?
Thanks
Craig