{"id":9258,"date":"2024-03-04T06:03:58","date_gmt":"2024-03-04T06:03:58","guid":{"rendered":"https:\/\/cheapwindowsvps.com\/blog\/step-by-step-guide-how-to-add-an-esxi-host-to-vmware-vcenter-server-vcsa\/"},"modified":"2025-01-20T11:29:02","modified_gmt":"2025-01-20T11:29:02","slug":"step-by-step-guide-how-to-add-an-esxi-host-to-vmware-vcenter-server-vcsa","status":"publish","type":"post","link":"https:\/\/cheapwindowsvps.com\/blog\/step-by-step-guide-how-to-add-an-esxi-host-to-vmware-vcenter-server-vcsa\/","title":{"rendered":"Step-by-step Guide: How to Add an ESXi Host to VMware vCenter Server (vCSA)"},"content":{"rendered":"<p>Let\u2019s examine how to incorporate a standalone host with an ESXi hypervisor into the VMware vCenter Server (vCSA) for administrative centralization and utilization in cluster setups.<\/p>\n<p>Establish a connection to the vCenter Server by launching the vSphere Client URL in your internet browser (<code>https:\/\/vcenter_server_fqdg_or_ip\/ui<\/code>).<\/p>\n<p>Choose the datacenter, folder, or cluster where you intend to introduce the new ESXi host:<\/p>\n<ol>\n<li>Right-click on the Datacenter and select <strong>Add Host<\/strong>.<\/li>\n<li>Specify the FQDN name (preferred) or IP address of your ESXi host.<\/li>\n<li>Enter the root credentials.<\/li>\n<li>vCenter Server connects to the ESXi host through <strong>902 TCP\/UDP ports<\/strong>. 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).<\/li>\n<li>If you <a href=\"https:\/\/woshub.com\/enable-ssh-vmware-esxi\/\" target=\"_blank\" rel=\"nofollow noopener\">connect to the ESXi console using SSH<\/a>, you can check the current SHA1 certificate fingerprint:<\/li>\n<\/ol>\n<p><code># openssl x509 -in \/etc\/vmware\/ssl\/rui.crt -fingerprint -sha1 -noout <\/code><\/p>\n<ul>\n<li>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.<\/li>\n<li>Select whether to use vSphere Lifecycle Manager for ESXi image management.<\/li>\n<li>At the <strong>Assign License<\/strong> stage, you must select one of the ESXi licenses available in the vCenter Server. By default, a 60-day Evaluation License is used.<\/li>\n<li>vCenter cannot manage <a href=\"https:\/\/woshub.com\/using-free-vmware-esxi-hypervisor\/\" target=\"_blank\" rel=\"nofollow noopener\">VMware Hypervisor hosts with a free license<\/a>.<\/li>\n<li>You can enable <strong>Lockdown Mode<\/strong> to restrict direct local access to ESXi from the console.<\/li>\n<li>Click Next -&gt; Ready to complete.<\/li>\n<\/ul>\n<div>The <strong>vpxa<\/strong> 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).<\/div>\n<p>The new ESXi host appears in the vCenter inventory after a few seconds.<\/p>\n<div>On an ESXi host, you can use the CLI to check which vCenter it is connected to:<\/div>\n<p><code># configstorecli config current get -c esx -g services -k vpxa_solution_user_config |grep -i server_ip<\/code><\/p>\n<p>If you have multiple ESXi hosts that require adding to vCenter all at once, automating this process with PowerShell can be a significant help.<\/p>\n<p><a href=\"https:\/\/woshub.com\/vmware-powercli-install-manage-vsphere-esxi\/\" target=\"_blank\" rel=\"nofollow noopener\"> Install the VMware.PowerCLI<\/a> module on the computer of the administrator:<\/p>\n<p><code>Install-Module -Name VMware.PowerCLI<br \/>\n# Bypass self-signed certificates:<br \/>\nSet-PowerCLIConfiguration -Scope AllUsers -InvalidCertificateAction Warn<\/code><\/p>\n<p>Establish a connection to vCenter:<\/p>\n<p><code>connect-viserver -server vcsa1.woshub.loc<\/code><\/p>\n<p>To add an ESXi host to the vCenter Server, use the command:<\/p>\n<p><code>Add-VMHost -Name 192.168.11.95 -Location HQDC -Force<\/code><\/p>\n<p>Type the ESXi host root password:<\/p>\n<p><a href=\"https:\/\/woshub.com\/reset-password-vmware-esxi\/\" target=\"_blank\" rel=\"nofollow noopener\">Resetting the root password on VMware ESXi<\/a>.<\/p>\n<p>Check that the host is connected to vCenter:<\/p>\n<p>Get-VMHost<\/p>\n<div>\n<p>Use this script if you need to add multiple ESXi hosts to vCenter at once:<\/p>\n<p><code><\/code><\/p>\n<p>$ESXiHosts = &#8220;esxi1.woshub.loc&#8221;, &#8220;esxi2.woshub.loc&#8221;<\/p>\n<p>$Location = &#8220;HQDC&#8221;<\/p>\n<p>$credentials = Get-Credential -UserName root -Message &#8220;Enter ESXi password&#8221;<\/p>\n<p>Foreach ($ESXiHost in $ESXiHosts) {<\/p>\n<p>Add-VMHost -Name $ESXiHost -Location $Location -User $credentials.UserName -Password $credentials.GetNetworkCredential().Password -RunAsync -force<\/p>\n<p>Write-Host -ForegroundColor GREEN &#8220;Adding $ESXiHost to vCenter&#8221;<br \/>\n}<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Let\u2019s examine how to incorporate a standalone host with an ESXi hypervisor into the VMware vCenter Server (vCSA) for administrative centralization and utilization in cluster setups. Establish a connection to the vCenter Server by launching the vSphere Client URL in your internet browser (https:\/\/vcenter_server_fqdg_or_ip\/ui). Choose the datacenter, folder, or cluster where you intend to introduce [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":9259,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[117,141],"tags":[],"class_list":["post-9258","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-powershell","category-vmware"],"_links":{"self":[{"href":"https:\/\/cheapwindowsvps.com\/blog\/wp-json\/wp\/v2\/posts\/9258","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cheapwindowsvps.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cheapwindowsvps.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cheapwindowsvps.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cheapwindowsvps.com\/blog\/wp-json\/wp\/v2\/comments?post=9258"}],"version-history":[{"count":1,"href":"https:\/\/cheapwindowsvps.com\/blog\/wp-json\/wp\/v2\/posts\/9258\/revisions"}],"predecessor-version":[{"id":10433,"href":"https:\/\/cheapwindowsvps.com\/blog\/wp-json\/wp\/v2\/posts\/9258\/revisions\/10433"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cheapwindowsvps.com\/blog\/wp-json\/wp\/v2\/media\/9259"}],"wp:attachment":[{"href":"https:\/\/cheapwindowsvps.com\/blog\/wp-json\/wp\/v2\/media?parent=9258"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cheapwindowsvps.com\/blog\/wp-json\/wp\/v2\/categories?post=9258"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cheapwindowsvps.com\/blog\/wp-json\/wp\/v2\/tags?post=9258"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}