clong / DetectionLab

Automate the creation of a lab environment complete with security tooling and logging best practices
MIT License
4.59k stars 979 forks source link

Exchange: An error occurred while executing `vmrun` #847

Closed xg5-simon closed 1 year ago

xg5-simon commented 1 year ago

Description of the issue:

When provisioning the Exchange server, the build will fail due to VMware Tools not running.

An error occurred while executing `vmrun`, a utility for controlling
VMware machines. The command and output are below:

Command: ["enableSharedFolders", "C:\\detectionlab\\DetectionLab\\Vagrant\\Exchange\\.vagrant\\machines\\exchange\\vmware_desktop\\7a256e42-392b-4d8a-a97e-2db72126d65c\\WindowsServer2016.vmx", {:notify=>[:stdout, :stderr]}]

Stdout: Error: The VMware Tools are not running in the virtual machine: C:\detectionlab\DetectionLab\Vagrant\Exchange\.vagrant\machines\exchange\vmware_desktop\7a256e42-392b-4d8a-a97e-2db72126d65c\WindowsServer2016.vmx

Fix:

When validating the if VMware Tools could be installed manually, the option VM > Install VMware Tools was greyed out. This is a common problem with VMware Tools.

To remediate:

  1. From VMware Workstation, login to the Exchange server and manually shutdown or Power Off the system.
  2. Open the Exchange Virtual Machine Settings. a. Select CD/DVD (SATA) and click Remove b. Click Add and Select CD/DVD (SATA) to a new drive. c. Click OK
  3. From the command prompt type vagrant reload exchange --provision and press ENTER
xg5-simon commented 1 year ago

Closing with recommendation actions that remediated the error.