Windows OS Hub
  • Windows
    • Windows 11
    • Windows Server 2022
    • Windows 10
    • Windows Server 2019
    • Windows Server 2016
  • Microsoft
    • Active Directory (AD DS)
    • Group Policies (GPOs)
    • Exchange Server
    • Azure and Microsoft 365
    • Microsoft Office
  • Virtualization
    • VMware
    • Hyper-V
  • PowerShell
  • Linux
  • Home
  • About

Windows OS Hub

  • Windows
    • Windows 11
    • Windows Server 2022
    • Windows 10
    • Windows Server 2019
    • Windows Server 2016
  • Microsoft
    • Active Directory (AD DS)
    • Group Policies (GPOs)
    • Exchange Server
    • Azure and Microsoft 365
    • Microsoft Office
  • Virtualization
    • VMware
    • Hyper-V
  • PowerShell
  • Linux

 Windows OS Hub / Virtualization / VMware / Adding ESXi Host to VMware vCenter Server (vCSA)

March 12, 2024

Adding ESXi Host to VMware vCenter Server (vCSA)

Let’s look at how to add a standalone host with an ESXi hypervisor to the VMware vCenter Server (vCSA) for centralized management and use in clustered configurations.

Connect to the vCenter Server by opening the vSphere Client URL in your browser (https://vcenter_server_fqdg_or_ip/ui).

Select the datacenter, folder, or cluster to which you want to add the new ESXi host:

  1. Right-click on the Datacenter and select Add Host; VMware vCenter -> Add host
  2. Specify the FQDN name (preferred) or IP address of your ESXi host; Joining ESXi to vCenter Server
  3. Enter the root credentials;
  4. vCenter Server connects to the ESXi host through 902 TCP/UDP ports. The current SHA1 fingerprint of the ESXi host certificate appears in a window. Confirm the connection (the certificate will be replaced with the certificate issued by the vCenter Certificate Server); ESXi SHA thumbprint
    If you connect to the ESXi console using SSH, you can check the current SHA1 certificate fingerprint:
    # openssl x509 -in /etc/vmware/ssl/rui.crt -fingerprint -sha1 -noout
    ESXi cli - list certificate thumbprint
  5. A table with ESXi host information (version and registered VMs) appears. All virtual machines registered on the ESXi host will be added to the current vCenter inventory item;
  6. Select whether to use vSphere Lifecycle Manager for ESXi image management;
  7. At the Assign License stage, you must select one of the ESXi licenses available in the vCenter Server. By default, a 60-day Evaluation License is used; assign esxi license
    vCenter cannot manage VMware Hypervisor hosts with a free license.
  8. You can enable Lockdown Mode to restrict direct local access to ESXi from the console;
  9. Click Next -> Ready to complete.
The vpxa agent service is installed on ESXi for host management from the vCenter Server (the hostd service on the vCenter Server sends control commands to the vpxa, which in turn passes them on to the local hostd service).

The new ESXi host appears in the vCenter inventory after a few seconds.

new ESXI in vCSA invenrory

On an ESXi host, you can use the CLI to check which vCenter it is connected to:

# configstorecli config current get -c esx -g services -k vpxa_solution_user_config |grep -i server_ip

Get connected vCenter name from ESXi cli

If you need to add multiple ESXi hosts to vCenter at once, you can use PowerShell to help automate this.

Install VMware.PowerCLI module on the administrator’s computer:

Install-Module -Name VMware.PowerCLI
# Ignore self-signed certificates:
Set-PowerCLIConfiguration -Scope AllUsers -InvalidCertificateAction Warn

Connect to vCenter:

connect-viserver -server vcsa1.woshub.loc

To add an ESXi host to the vCenter Server, use the command:

Add-VMHost -Name 192.168.11.95 -Location HQDC -Force

Type the ESXi host root password:

Resetting the root password on VMware ESXi.

Add-VMHost - join vCenter using PowerShell

Check that the host is connected to vCenter:

Get-VMHost

Get-VMHost - list esxi host on vcsa

Use this script if you need to add multiple ESXi hosts to vCenter at once:

$ESXiHosts = "esxi1.woshub.loc", "esxi2.woshub.loc"
$Location = "HQDC"
$credentials = Get-Credential -UserName root -Message "Enter ESXi password"
Foreach ($ESXiHost in $ESXiHosts) {
Add-VMHost -Name $ESXiHost -Location $Location -User $credentials.UserName -Password $credentials.GetNetworkCredential().Password -RunAsync -force
Write-Host -ForegroundColor GREEN "Adding $ESXiHost to vCenter"
}

0 comment
8
Facebook Twitter Google + Pinterest
PowerShellVMware
previous post
Create a Custom Windows Image with Pre-installed Apps
next post
Upgrading to Windows 11 on Unsupported Hardware

Related Reading

How to Fix ‘An Operating System Wasn’t Found’...

August 24, 2023

Reset Root Password in VMware ESXi

October 6, 2023

Unmounting an NFS Datastore from VMware ESXi

March 12, 2024

How to Migrate (Import) VMs from VMware ESXi...

July 24, 2024

How to Increase Virtual Machine Disk Size in...

March 17, 2024

Managing VMware Infrastructure with Ansible

December 11, 2023

How to Create a Virtual Machine on VMWare...

March 12, 2024

How to Enable Copy and Paste for a...

March 12, 2024

Leave a Comment Cancel Reply

join us telegram channel https://t.me/woshub
Join WindowsHub Telegram channel to get the latest updates!

Recent Posts

  • Map a Network Drive over SSH (SSHFS) in Windows

    May 13, 2025
  • Configure NTP Time Source for Active Directory Domain

    May 6, 2025
  • Cannot Install Network Adapter Drivers on Windows Server

    April 29, 2025
  • Change BIOS from Legacy to UEFI without Reinstalling Windows

    April 21, 2025
  • How to Prefer IPv4 over IPv6 in Windows Networks

    April 9, 2025
  • Load Drivers from WinPE or Recovery CMD

    March 26, 2025
  • How to Block Common (Weak) Passwords in Active Directory

    March 25, 2025
  • Fix: The referenced assembly could not be found error (0x80073701) on Windows

    March 17, 2025
  • Exclude a Specific User or Computer from Group Policy

    March 12, 2025
  • AD Domain Join: Computer Account Re-use Blocked

    March 11, 2025

Follow us

  • Facebook
  • Twitter
  • Telegram
Popular Posts
  • How to Delete Old User Profiles in Windows
  • Fix: Remote Desktop Licensing Mode is not Configured
  • How to Install Remote Server Administration Tools (RSAT) on Windows
  • How to Create UEFI Bootable USB Drive to Install Windows
  • Configuring User Profile Disks (UPD) on Windows Server RDS
  • Wi-Fi (Internet) Disconnects After Sleep or Hibernation on Windows 10/11
  • How to Allow Non-Admin User to Start/Stop Service in Windows
Footer Logo

@2014 - 2024 - Windows OS Hub. All about operating systems for sysadmins


Back To Top