Retrieving ESXi host BIOS UUID (uuid_bios) in VMware Cloud Foundation environments
search cancel

Retrieving ESXi host BIOS UUID (uuid_bios) in VMware Cloud Foundation environments

book

Article ID: 434170

calendar_today

Updated On:

Products

VMware Cloud Foundation

Issue/Introduction

  • Attempting to retrieve the BIOS UUID (uuid_bios) information for ESXi hosts in a VMware Cloud Foundation (VCF) environment.
  • This information is required for specific administrative tasks, such as composite image workflows.
  • Attempting to fetch this data directly via the VCF REST API fails or does not return the uuid_bios value.

Environment

VMware Cloud Foundation 9.x

Cause

Currently, VMware Cloud Foundation (VCF) APIs do not provide a direct endpoint or output method to retrieve the uuid_bios property for managed ESXi hosts.

Resolution

Workaround

Because the VCF API does not expose this specific metric, you must retrieve the BIOS UUIDs directly from the vCenter Server managing the hosts. You can achieve this using one of the following three methods:

Method 1: vCenter Server Database (VCDB) Query

You can query the vCenter Server PostgreSQL database directly to extract the host DNS names and their corresponding BIOS UUIDs.

  1. Connect to the vCenter Server Appliance (VCSA) via SSH and log in as root.

  2. Connect to the PostgreSQL database and execute the following query:

    SQL

    select dns_name,uuid_bios from vpx_host;
    
Method 2: VMware PowerCLI

You can use standard vSphere PowerCLI cmdlets to connect to the vCenter Server and extract the host hardware information.

  1. Connect to the vCenter Server using Connect-VIServer.

  2. Query the host hardware system information. For example:

    PowerShell

    Get-VMHost | Select Name, @{N="BIOS UUID";E={$_.ExtensionData.Hardware.SystemInfo.Uuid}}
    
Method 3: RVTools Export

If you prefer a graphical utility, you can use RVTools to extract the environment data.

  1. Connect RVTools to your vCenter Server.
  2. Navigate to the vHost or vInfo tab to view the host hardware details.
  3. Export the data to a CSV or Excel file to easily copy the BIOS UUIDs for all hosts in the environment.