Adding a host to a VMware vCenter Server
The VMware vCenter Server provides a centralized platform to manage your VMware vSphere environments. In this section, you will learn how to add a host to a VMware vCenter Server.
Creating a datacenter
After deploying a new vCenter Server, you cannot add a host to a vCenter Server until you have created a datacenter. So we will start with creating a datacenter. To create a datacenter, you have to use the New-Datacenter
cmdlet. This cmdlet has the following syntax:
New-Datacenter [-Location] <VIContainer> [-Name] <String> [-Server <VIServer[]>] [-WhatIf] [-Confirm] [<CommonParameters>]
The –Location
and –Name
parameters are required.
When you create a datacenter, you have to specify a value for the location parameter. This location has to be a folder. You can create the datacenter in the root of your vCenter Server environment. This root is actually a folder called Datacenters
. You can also create a subfolder in the Datacenters...