"FileNotFoundError: No such file or directory" error while executing vc-support command
search cancel

"FileNotFoundError: No such file or directory" error while executing vc-support command

book

Article ID: 422957

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

While executing vc-support, the command fails with the following error:
 
FileNotFoundError: No such file or directory: '/etc/vmware/vm-support/product.cfg'

Cause

The file /etc/vmware/vm-support/product.cfg does not exist on the vCenter appliance.

Resolution

Recreate the product.cfg file which is missing :

  • Create the product.cfg file :

vi /etc/vmware/vm-support/product.cfg

  • Below is the content which needs to be added inside the product.cfg file :

{
    "product" : "CIS",
    "productDescription" : "Cloud Infrastructure Suite",
    "bundlePrefix" : "vc",
    "bundleMaxCount" : 3
}

  • Change the permission of the file :

chmod 444 /etc/vmware/vm-support/product.cfg

Workaround :

  • Generate support bundles via the VAMI interface (https://<vcenter>:5480) >> Actions >> Create Support Bundle.