How to add and config vCenter and ESXi hosts in SCVMM 2019

/, Hyper-V, Olher, Virtualization/How to add and config vCenter and ESXi hosts in SCVMM 2019

How to add and config vCenter and ESXi hosts in SCVMM 2019

Following the previous SCVMM 2019 Series article, Install and config System Center Virtual Machine Manager 2019, is this new article “How to add and config vCenter and ESXi hosts in SCVMM 2019”.

Adding your VMware environment to the System Center Virtual Machine Manager 2019 is not very difficult, is very straightforward to do it.

Unfortunately, there are still issues with SCVMM 2019 integrating with vCenter and vSphere 6.5 or even 6.7 (not supported yet by Microsoft).

In this article, I will show some of the issues that we may encounter and the possible solutions (when there is one), not only to integrate with VMware environment but also in the configuration.

Let start the process How to add and config vCenter and ESXi hosts in SCVMM 2019 by adding vCenter to SCVMM 2019.

How to add vCenter to SCVMM 2019.

Open your SCVMM 2019 Console and select Fabric and then in vCenter Server right click and “add VMware vCenter Server”.

How to add and config vCenter and ESXi hosts in SCVMM 2019

Next, enter your vCenter IP or FQDN.

In the credentials option you have two options, select a “Run as account” that you have already create previously or create one now and add here.

For this case, we will create a new “Run as account”. For that, we click “Browser.”

How to add and config vCenter and ESXi hosts in SCVMM 2019

When open Run as account board, shows all the accounts that already exists (the default ones and the ones created by the administrator).

In this case, we create a new one, so click “Create Run As Account”.

Next, add credentials for your vCenter. You can add a vCenter user (like administrator@vsphere.local), or a Domain User if your vCenter is connected to your AD and you have AD users in your vCenter.

For our case, we only create an account for the default vCenter local administrator.

Note: The option “Validate Domain credentials” is only needed to be enabled if you are using an AD account. For the vCenter local user, you can disable this option.

How to add and config vCenter and ESXi hosts in SCVMM 2019

After you created the account, select the account created from the account list and click “Ok”.

How to add and config vCenter and ESXi hosts in SCVMM 2019

Now that we have our “Run as account” created we can use and click finish to add vCenter to our SCVMM.

Note: So that vCenter and SCVMM use secure communications, enable the option, and import vCenter certificate.

How to add and config vCenter and ESXi hosts in SCVMM 2019

How to add and config vCenter and ESXi hosts in SCVMM 2019

As we can notice in the next image, vCenter is added to our SCVMM, but there is no hosts or VMs displayed.

For that, we need to add ESXi hosts from the “VMs and Services” section.

How to add and config vCenter and ESXi hosts in SCVMM 2019

How to add ESXi hosts to SCVMM 2019.

In SCVMM console select “VMs and Services” tab from the main menu. Then right mouse click on “VMware ESXi” folder and select “Add VMware ESXi and Clusters”.

How to add and config vCenter and ESXi hosts in SCVMM 2019

Again use a “Run As account” that you have already created, or create one for the ESXi hosts root account.

In this case, we have previously created a “Run As account” with the root user for all ESXi hosts. Select the appropriate account and click next.

Note: Check if all your ESXi hosts have the same root password. If not, you need to create one “Run As account” for each ESXi host.

How to add and config vCenter and ESXi hosts in SCVMM 2019

After you have the option to add and import all ESXi hosts from any vCenter that you add previously to your SCVMM. In this case, we have two, and we select the one we had added before.

All ESXi hosts are listed, select the Cluster, and all ESXi hosts inside that Cluster will be added.

How to add and config vCenter and ESXi hosts in SCVMM 2019

Next, select the SCVMM folder where your ESXi hosts will be assigned. In this case is ESXi hosts, will be in VMware ESXi folder.

How to add and config vCenter and ESXi hosts in SCVMM 2019

Next, check all information and if all is correct, click finish to add all vCenter ESXi hosts that were select in the previous step.

How to add and config vCenter and ESXi hosts in SCVMM 2019

When adding the vCenter Cluster and all ESXi on it, is where we find the first bug in the SCVMM 2019.

When SCVMM tries to add the vCenter complains about the Cluster name.

Somehow the SCVMM misuses the ESXi hostname as the Cluster name (sometimes uses the first ESXi host and sometimes uses the last ESXi host in the Cluster).

How to add and config vCenter and ESXi hosts in SCVMM 2019

The best way to check what SCVMM is trying to do is to click in the “View Script” option in the right upper corner.

Every task that SCVMM does is a PowerShell script, so this ESXi hosts adding tasks is also a PowerShell script.

How to add and config vCenter and ESXi hosts in SCVMM 2019

As we can see in the next image, in the Add-SCVMHostCluster command, SCVMM script used the IP address of one of the ESXi hosts(used IP because in vCenter is added by IP and not FQDN). When it should have the Cluster name, that in this case is “Physical Cluster”.

How to add and config vCenter and ESXi hosts in SCVMM 2019

The workaround to fix this issue and add the ESXi host to the SCVMM, is to change the script with the proper Cluster name and save the Temp file (click in the menubar File and then Save) and close the Window.

This is the PowerShell script changed.

After, click again Finish and the process finishes without any issues, and ESXi hosts will be added, and all VMS will be imported to the SCVMM.

Another workaround for this bug is that you can copy the PowerShell script, cancel the process, and run the script in a PowerShell console.

How to add and config vCenter and ESXi hosts in SCVMM 2019

Note: Depending on the size of your environment, importing all ESXi hosts and all VMS can take some time. Check the job process to check if the task is already finished.

Important Note: Tested with a vCenter and ESXi hosts 6.0 and I did not add this Cluster issue. Need to look deeper if this was because of vCenter version, or any vCenter configuration that did not trigger this. I will update the article when I finish my findings.

Configure VMware ESXi host in SCVMM.

After ESXi hosts are added to SCVMM, they are visible in the VMware ESXi Folder (listed by Cluster).

As we can see in the next image, they have a “Limited” warning on it, which means that the ESXi host is fully configured and cannot still be used.

ESXi Hosts.

How to add and config vCenter and ESXi hosts in SCVMM 2019

When you try to create a Virtual Machine in SCVMM and selecting an ESXi host that doesn’t have the certificate imported, you will see an error like this.

Even the ESXi hosts are still not ready to be used, all Virtual Machines from this ESXi host and this Cluster are already imported to the SCVMM.

Virtual Machines.

How to add and config vCenter and ESXi hosts in SCVMM 2019

In this case, ESXi hosts certificate need to be imported to SCVMM so that we can use and create Virtual Machines, Networks, etc.

In the next images, we show two examples of ESXi hosts with the Certificates already imported and another example of ESXi hosts that Certificates are still not imported to SCVMM.

How to add and config vCenter and ESXi hosts in SCVMM 2019

How to import ESXi hosts certificates to SCVMM.

Select the host that you want to import the Certificate, right mouse click, and select Properties.

How to add and config vCenter and ESXi hosts in SCVMM 2019

Go to Management option and click Import.

Note: Double check if you are using the right “Run As account” credential with the write root password for this ESXi host.

How to add and config vCenter and ESXi hosts in SCVMM 2019

Next, import the Certificate into SCVMM.

How to add and config vCenter and ESXi hosts in SCVMM 2019

Next, click OK and ESXi host Certificate is added to SCVMM, and ESXi host is ready to be used.

Note: Do this process for each ESXi hosts that you have added and is in the Cluster.

How to add and config vCenter and ESXi hosts in SCVMM 2019

Now we can see that all ESXi hosts have “Host Status” OK and they are ready to use.

How to add and config vCenter and ESXi hosts in SCVMM 2019

With this final task, we finish our process How to add and config vCenter and ESXi hosts in SCVMM 2019.

Check Microsoft official page for Set up VMware servers in the VMM compute fabric.

Before I wrap up the article, would like to mention a couple of errors that you may encounter when using VMware in SCVMM 2019.

The first case is when creating Virtual Machines, will show two common errors.

How to add and config vCenter and ESXi hosts in SCVMM 2019

Creating Virtual Machines:

  • Error 1 – IDE wrong Controller.

When creating a VM with a boot disk using IDE, you will get this error: “The virtualization software on the selected host does not support virtual hard disks on an IDE bus.”

SCVMM doesn’t support using VMs with IDE for boot disks. You need to change the virtual controller to SCSI.

Note: Using IDE Virtual Disks for Virtual Disks that are not bootable is supported(like using in a second Virtual Disk).

How to change the Virtual Controller in the VM.

Go back in the VM creation to “Configure Hardware” tab and select the Virtual Disk and change the IDE controller to SCSI.

How to add and config vCenter and ESXi hosts in SCVMM 2019

After the VM is ready to be created and no errors are shown in the “Select Host” validation option.

    • Error 2 – Wrong Virtual Network.

In this error, ESXi host validation gives us a warning that the ESXi host doesn’t have a connection to the selected Virtual Network.

In this case, was selected the wrong Virtual Network.

Note: When there is more than one vCenter added into the SCVMM, if you don’t divide them by folders, all Networks will be presented to any VM that is created. In this case, we have selected a Network that belongs to a different vCenter/ESXi host.

How to change the Virtual Network in the VM.

Go back in the VM creation to “Configure Hardware” tab select Network Adapter and change the VM Network.

How to add and config vCenter and ESXi hosts in SCVMM 2019

Next, select the appropriate vSwitch, or vDS for this VM.

How to add and config vCenter and ESXi hosts in SCVMM 2019

After this last task, the error is fixed, and ESXi host validation doesn’t show any error, and you can create the Virtual Machine.

These are some of the errors that we can encounter while creating VMs or configuring SCVMM.

Before finishing this article, I would like to share another bug that I found while adding VMware to SCVMM 2019.

This last error/bug is a more severe issue, and that can be a stopper (it is for most cases) to integrate your VMware environment into SCVMM 2019.

In all the tests that I did, SCVMM 2019 was not able to recognize vCenter iSCSI or vSAN Storage. SCVMM 2019 was only able to recognize local Datastores. All my ISCSI or in the cases I have a vCenter vSAN, the vSAN Datastore, was not shown in the option when is to save a new Virtual Machine that we can create in SCVMM.

Some examples:

Even the iSCSI and vSAN Shared volumes show up in the vCenter Cluster Shared Volumes and in the ESXi hosts disks.

vCenter Cluster Shared Volumes (vSAN example).

How to add and config vCenter and ESXi hosts in SCVMM 2019

ESXi hosts Disks (iSCSI example).

How to add and config vCenter and ESXi hosts in SCVMM 2019

Even we can see all the information and Storage in the above images when creating a VM, the path is not visible for selection. Only the local Storage for each ESXi host.

As we can see in the next image, when it is to select the path location for the VM that I was creating, only the local Storage is displayed.

How to add and config vCenter and ESXi hosts in SCVMM 2019

I even tried to write the path manually for the Storage (for vSAN example was [vsanDatastore\] ) and created the VM. The VM was created without an error, but checking the location of the VM, I notice that was created in the Local Storage anyway.

So unless there is something I am doing wrong and different from SCVMM 2016, there is a bug in this SCVMM 2019 version regarding Storage space from VMware environment.

I tested with vCenter 6.5 and 6.7. Using iSCSI Volumes and vSAN Volumes did not test NFS Volumes. So cannot say if vCenter using NFS has the same issues.

Googling the issue did not find anything related to a problem like this.

Note: Meanwhile I open a post in SCVMM Microsoft forums to see if there is anyone with the same issue and what is the solution/workaround.

When I have an update regarding this possible bug, I will update this article.

With this last possible but we finish the article “How to add and config vCenter and ESXi hosts in SCVMM 2019”.

Next article in this series is: “How to add and config Hyper-V hosts and Clusters in SCVMM 2019”.

Note: Share this article, if you think it is worth sharing.

©2019 ProVirtualzone. All Rights Reserved
By | 2019-06-25T16:54:39+02:00 June 25th, 2019|Backups, Hyper-V, Olher, Virtualization|0 Comments

About the Author:

I am over 20 years’ experience in the IT industry. Working with Virtualization for more than 10 years (mainly VMware). I am an MCP, VCP6.5-DCV, VMware vSAN Specialist, Veeam Vanguard 2018/2019, vExpert vSAN 2018/2019 and vExpert for the last 4 years. Specialties are Virtualization, Storage, and Virtual Backups. I am working for Elits a Swedish consulting company and allocated to a Swedish multinational networking and telecommunications company as a Teach Lead and acting as a Senior ICT Infrastructure Engineer. I am a blogger and owner of the blog ProVirtualzone.com

Leave a Reply

%d bloggers like this: