Use vmrun to inject the VersionGopher™ collector into a guest VM, run a full filesystem scan, and pull the results back - all through VMware Tools, without SSH or network configuration.
vmrun on PATH.vmx file for the guest VM you want to scan.# Adjust the path to match your VM location VMXPATH="/Users/you/Virtual Machines.localized/CentOS 7 64-bit.vmwarevm/CentOS 7 64-bit.vmx" # Start the VM headless (skip if already running) vmrun start "$VMXPATH" nogui
copyFileFromHostToGuest to transfer the collector binary. No SCP or shared folders needed.vmrun -gu <username> -gp <password> \ copyFileFromHostToGuest "$VMXPATH" \ ./version_gopher-linux-x64 \ "/home/user/version_gopher" vmrun -gu <username> -gp <password> \ runProgramInGuest "$VMXPATH" -activeWindow /bin/bash -c \ "chmod +x /home/user/version_gopher"
vmrun -gu <username> -gp <password> \ runProgramInGuest "$VMXPATH" -activeWindow /bin/bash -c \ "cd /home/user && prefix=versiongopher-vmware-guest-linux-x64-directory-usr-schema-v3 && ./version_gopher -d /usr/bin -o $prefix -j"
/usr/bin with any directory path, or use -s when you need full-system coverage from inside the guest.
vmrun -gu <username> -gp <password> \ copyFileFromGuestToHost "$VMXPATH" \ "/home/user/versiongopher-vmware-guest-linux-x64-directory-usr-schema-v3.jsonl" \ /tmp/centos-scan.jsonl
# In the dashboard
Import > Upload File > choose /tmp/centos-scan.jsonl
copyFileFromGuestToHost to retrieve it. Always use runProgramInGuest -activeWindow, never runScriptInGuest (it hangs on some platforms).