For URL-based patching, the vCenter Server appliance is preset with a default VMware repository URL for the build profile of the appliance. You can use the update.set command to configure the appliance to use the default or a custom repository URL as the current source of patches and enable automatic checks for patches.

By default the current repository for URL-based patching is the default VMware repository URL.

Note: You can use the proxy.set command to configure a proxy server for the connection between vCenter Server and the repository URL. For more information about the API commands in the appliance shell, see vCenter Server Configuration.

If vCenter Server is not connected to the Internet or if your security policy requires it, you can build and configure a custom repository. The custom patching repository runs on a local Web server within your data center and replicates the data from the default repository. Optionally, you can set up an authentication policy for accessing the Web server that hosts the custom patching repository.

Procedure

  1. If you want to configure a custom repository URL, build the repository on your local web server.
    1. Log in to VMware Customer Connect at https://customerconnect.vmware.com/downloads/#all_products.
    2. Select Download Product under VMware vSphere.
    3. Select the vCenter Server version from the Select Version drop-down.
    4. Against your license type, click GO TO DOWNLOADS in the row for VMware vCenter Server.
    5. Download the VMware vCenter Server Appliance Update Bundle ZIP file.
    6. Confirm that the md5sum is correct by using an MD5 checksum tool.
    7. On your Web server, create a repository directory under the root.
      For example, create the vc_update_repo directory.
    8. Extract the ZIP file into the repository directory.
      The extracted files are in the manifest and package-pool subdirectories.
  2. Access the appliance shell and log in as a user who has a super administrator role.
    The default user with a super administrator role is root.
  3. To see information about the current URL-based patching settings, run the update.get command.
    You can see information about the current repository URL, the default repository URL, the time at which the appliance last checked for patches, the time at which the appliance last installed patches, and the current configuration of automatic checks for patches.
  4. Configure the current repository for URL-based patching.
    • To configure the appliance to use the default VMware repository URL, run the following command:
      update.set --currentURL default
    • To configure the appliance to use a custom repository URL, run the following command:
      update.set --currentURL https://web_server_name.your_company.com/vc_update_repo [--username username] [--password password]
      The square brackets [] enclose the command options.

      If the custom repository requires authentication, use the --username username and --password password options.

  5. To activate automatic checks for vCenter Server appliance patches in the current repository URL at regular intervals, run the following command:
    update.set	--CheckUpdates enabled [--day	day] [--time	HH:MM:SS]
    The square brackets [] enclose the command options.

    Use the --day day option to set the day for performing the regular checks for patches. You can set a particular day of the week, for example, Monday, or Everyday. The default value is Everyday.

    Use the --time HH:MM:SS option to set the time in UTC for performing the regular checks for patches. The default value is 00:00:00.

    The appliance performs regular checks for available patches in the current repository URL.
  6. To deactivate automatic checks for vCenter Server patches, run the following command:
    update.set	--CheckUpdates disabled

What to do next

If you configured the appliance to perform automatic checks for available patches, you can regularly view the vCenter Server appliance health status for notifications about available patches. See vCenter Server Configuration.