Connect with us

Gadgets

How to Migrate VMware to Hyper-V (5): Configure SCVMM (1)

[ad_1]

Now that you have deployed System Center Virtual Machine Manager, in this part of the guide, you’ll perform some post-installation configurations.

Some tasks include updating SCVMM to RU2, creating VMM groups, and adding the Hyper-V cluster you created in part 3 to SCVMM. After that, you’ll perform other tasks like adding the cluster File Server share as SCVMM Library.

Let’s begin!

Task 1: Create SCVMM Host Groups

  1. Open the SCVMM console by clicking the shortcut on your desktop.
  2. The “Use current Microsoft Windows identity” option is selected. Click Connect.
The "Use current Microsoft Windows identity" option is selected. Click Connect.
  1. When the SCVMM console opens, click the Fabric menu. Then, on the Servers node, right-click All Hosts and choose Create Host Group.

Rename the host group to Hyper-V. Create another Host group called VMware.

When the SCVMM console opens, click the Fabric menu. Then, on the Servers node, right-click All Hosts and choose Create Host Group.When the SCVMM console opens, click the Fabric menu. Then, on the Servers node, right-click All Hosts and choose Create Host Group.

You should now have the two Host Groups under All Hosts.

Task 2: Update Administrators Group in Hyper-V Hosts

To allow SCVMM to manage the Hyper-V hosts, we need to add the SCVMM service and “Run As” accounts to their local administrator’s group. To add the accounts to the administrators’ group, open PowerShell as administrator, then run this command on each Hyper-V host.

For Windows Server Core deployments, open PowerShell on each host from the Windows Admin Center and run the command. Alternatively, run the command below from the console of each Hyper-V host (not recommended).

For Windows Server Core deployments, open PowerShell on each host from the Windows Admin Center and run the command.For Windows Server Core deployments, open PowerShell on each host from the Windows Admin Center and run the command.
Add-LocalGroupMember -Group "Administrators" -Member "labscvmm-sa", "labscvmm-ra"

Task 3: Create SCVMM “Run As” Accounts

In this task, you will create all the “Run As” accounts required in SCVMM. A Run As account is an account that you add to SCVMM to allow you to use it to perform tasks.

By adding Run As accounts, you can avoid entering the credentials whenever you need to use the account.

Task 3.1: Identify the “Run As” Accounts

Create the following Run As accounts in SCVMM:

  1. The SCVMM “Run As” account that was created in AD – mine is scvmm-ra
    – This account will be used to add Hyper-V hosts to SCVMM
    – The account will also be used to add and Manage the vCenter server
    – If this account is not in your vCenter’s administrators group, add it now or add a separate account for adding and managing the vCenter server in VMM
    – We will also use this account to add and manage the cluster file server as a library server

See the account in my lab’s vCenter server.

add  SCVMM AD Run as account in vCenteradd  SCVMM AD Run as account in vCenter
  1. The root account for ESXi hosts
    – The root account for ESXi hosts
    – If you use any other account to add your ESXi hosts to SCVMM, VMM V2V converter will fail

Task 3.2: Add the “Run As” Accounts

  1. Click the VMM’s Settings menu (bottom left). Then, right-click Run As Account and select Create Run As Account.
Click the VMM's Settings menu (bottom left). Then, right-click Run As Account and select Create Run As Account.Click the VMM's Settings menu (bottom left). Then, right-click Run As Account and select Create Run As Account.
  1. On the details page, give the account a descriptive name and add a description. Finally, add the account username and password and click Finish.

If it is an AD account, enter the account in the format DomainNameAccountName. However, if it is a non-AD account, like ESXi root credentials, enter the username and the password – also uncheck “Validate domain credentials.”

On the details page, give the account a descriptive name, then add a description.On the details page, give the account a descriptive name, then add a description.

Repeat the above steps for all “Run as” accounts. The screenshot below shows how to add the Run As account for ESXi hosts’ root credentials.

add ESXi root credential as VMM Run as accountadd ESXi root credential as VMM Run as account

All accounts added should be in the VMM administrator group and also enabled. See my screenshot below.

Task 4: Add Hyper-V Cluster to SCVMM

Adding a Hyper-V cluster to SCVMM installs agents on its Hyper-V nodes. So, before you proceed, ensure that the “Run as” account you will use to add the cluster belongs to the local administrators’ group of the Hyper-V hosts.

You should be fine if you completed Task 2 earlier in this guide.

  1. Click the Fabric node in SCVMM, then, on the Servers > All Hosts node, right-click the Hyper-V host group and point to “Add Hyper-V Hosts and Cluster.”
Task 4 - Add Hyper-V Cluster to SCVMM step 1Task 4 - Add Hyper-V Cluster to SCVMM step 1
  1. Then, on the Resource Location page, select the first option.
  1. On the credentials page, click Browse and select the SCVMM Run As account you created earlier.
On the credentials page, click Browse and select the SCVMM Run As account you created earlier. On the credentials page, click Browse and select the SCVMM Run As account you created earlier.
Task 4: Add Hyper-V Cluster to SCVMM - step 2
Task 4: Add Hyper-V Cluster to SCVMM - step 2
  1. Enter the name of the Hyper-V cluster you created in part 3 of this guide. Mine is lab-cluster-2.

When you click Next, the wizard will search AD, find the cluster, then display it and the two Hyper-V hosts that are members of the cluster.

  1. Check the checkbox next to the cluster name and click Next to progress to the next page.
  1. Confirm the SCVMM host group to add the cluster and click Next.
Confirm the SCVMM host group to add the cluster and click Next. Confirm the SCVMM host group to add the cluster and click Next.
  1. Finally, review the settings and click Finish to add the Hyper-V cluster to VMM.

The wizard provides the PowerShell script whenever you perform a task in SCVMM. If you love PowerShell and want to automate the process later, copy the script by clicking the “View Script” button.

Finally, review the settings and click Finish to add the Hyper-V cluster to VMM. Finally, review the settings and click Finish to add the Hyper-V cluster to VMM.

When you click Finish, VMM opens the Job view of the running job. Use the job window to monitor the tasks and review errors or warnings.

When you click Finish, VMM opens the Job view of the running job. Use the job window to monitor the tasks and review errors or warnings. When you click Finish, VMM opens the Job view of the running job. Use the job window to monitor the tasks and review errors or warnings.

Regarding errors and/or warnings, the job window has an amber – warning on the Add virtual machine host sub-tasks. To review the warning, click on it.

Speaking of errors and/or warnings, the job window has an amber - warning on the Add virtual machine host sub-tasks. Speaking of errors and/or warnings, the job window has an amber - warning on the Add virtual machine host sub-tasks.

You can read the warnings and recommended actions. I have two warning messages.

The first warning is that I did not install the MPIO role on the servers. I can safely ignore this warning since I am not using a storage device – like Fiber Channel – that requires MPIO.

You can read the warnings and recommended actions. You can read the warnings and recommended actions.

Meanwhile, the second warning is that the hosts need a reboot. We will restart the hosts later.

Task 5: Install SCVMM Update Rollup 2

Before you install the SCVMM update, note the current version. See the screenshot below.

Install SCVMM Update Rollup 2 - check current version 2Install SCVMM Update Rollup 2 - check current version 2

In part 1 of this guide, you created a folder called “SCVMM UR2” in the  “Hyper-VFiles” folder and downloaded SCVMM Update Rollup 2 into the folder. 

To extract the download update files, create two subfolders – R2Update, AdminCR2 – in “Hyper-VFilesSCVMM UR2”.

Modify the PowerShell script below and run it to create the subfolders.

$Path = “E:Hyper-VFilesSCVMM UR2”

"R2Update", "AdminCR2", "GuestAgentR2" | ForEach-Object {New-Item -Name $_ -Path $Path -ItemType Directory }

To extract the package, double-click it.

To extract the package, double-click it. To extract the package, double-click it.

Then, right-click the file, select Extract, and save the extracted files to the folders created above.

Use the table below to extract the cab files to their respective subfolders:

Cab file name Folder path
VMM_R2_Update Hyper-VFilesSCVMM UR2R2Update
VMM_Admin_Console_R2_Update Hyper-VFilesSCVMM UR2AdminCR2

Task 5.2: Install the Updates

Close the SCVM console before proceeding with this task

Install the updates – open cmd as administrator. Then, install the VMM server and console updates by running these two commands on the VMM server.

#Install the SCVMM Server Update Rollup 2

msiexec.exe /update "\IPMPHPV4Hyper-VFilesSCVMM UR2R2Updatekb5032369_vmmserver_amd64.msp"

#Install the SCVMM admin console Update Rollup 2

msiexec.exe /update "\IPMPHPV4Hyper-VFilesSCVMM UR2AdminCR2kb5032370_AdminConsole_amd64.msp"

Install the SCVMM 2022 Update Rollup 2Install the SCVMM 2022 Update Rollup 2

If any of the commands fail, install the updates by double-clicking the MSI file.

After installing the updates, restart the VMM server.

Then, recheck the VMM server version, and it should show the version in my screenshot below. This version is SCVMM Roll Up 2.

Then, recheck the VMM server version, it should show the version in my screenshot below. Then, recheck the VMM server version, it should show the version in my screenshot below.

Task 5.3: Add Registry with new Chunk Size on All Hosts

  1. From your SCVMM server, navigate to the network share where you downloaded your installation files.
  2. Then, right-click the registry key script in your downloaded file and select Edit. The script will open in PowerShell ISE.
Right-click the registry key script in your downloaded file and select Edit - the script will open in PowerShell ISE. Right-click the registry key script in your downloaded file and select Edit - the script will open in PowerShell ISE.
  1. Change the “” placeholder to the name of your VMM Server.
Change the "<VMServer>" placeholder to the name of your VMM Server. Change the "<VMServer>" placeholder to the name of your VMM Server.
  1. Open PowerShell as administrator, then set the execution policy and run the script with the commands below.

When you run the script with the third command, PowerShell will prompt you to confirm, enter R, and press enter.

#1. Set execution policy to allow downloaded scripts to run

Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Force

#2. Change Directory to the "SCVMM UR2" folder on the network share

cd "\IPMPHPV4Hyper-VFilesSCVMM UR2" #change the path to your share

#Execute the script

& '.Script To Add Registry with new Chunk Size On All Hosts.ps1'

While restarting the Hyper-V hosts, move the WAC and VMM VMs to a host and restart the next host. Then, when the host comes back online, move the two VMs again and restart the second host. If you have more than one host, restart the remaining ones. Use the Fail Over Cluster Manager if you can’t move the VMs in SCVMM due to the “Unsupported VM Configuration” error. We’ll fix this error later in Task 6.

  1. Restart the Hyper-V Hosts.

For a Windows Server Core deployment, you can restart the hosts via VMM, Server Manager, or WAC.

Task 5.4: Update the VMM Agents on the Hyper-V Hosts

After running the above tasks, the status of the Hyper-V hosts in SCVMM will be shown as “Needs attention.” This is because the VMM agents on the hosts need to be updated.

Follow the steps below to update the agents:

  1. Right-click the host and select Update Agent.

If the Update Agent button is grayed out, proceed to task 6.

right-click the host and selelect Update Agent.right-click the host and selelect Update Agent.
  1. Then, select the SCVMM Run As account to use to update the agent and click OK.
Then, select the SCVMM Run As account as the account to use for updating the agent and click OK.Then, select the SCVMM Run As account as the account to use for updating the agent and click OK.
  1. Wait for the job status to reach 100%, then right-click the host and choose Refresh.
Wait for the job status to reach 100%Wait for the job status to reach 100%

Task 6: Fix “Unsupported VM Configuration” SCVMM Error

Sometimes, SCVMM displays the “Unsupported VM Configuration” message on a VM’s status. Follow the steps below to fix this issue.

Task 5: Fix "Unsupport VM Configuration" SCVMM ErrorTask 5: Fix "Unsupport VM Configuration" SCVMM Error
  1. Log in to the VM, which is displaying this error message. Then, search services and open the app.
  2. Locate Windows Management Instrumentation, right-click it, and then select Restart. Choose Yes to restart dependent services.
Locate Windows Management Instrumentation, right-click it, then select restart. Locate Windows Management Instrumentation, right-click it, then select restart.
Then, choose Yes to restart dependent services. Then, choose Yes to restart dependent services.
  1. Open the VM’s Settings in the Fail Over Cluster Manager, then disconnect any ISO images.
Open the VM's Settings in the Fail Over Cluster Manager, then, disconnect any ISO images.Open the VM's Settings in the Fail Over Cluster Manager, then, disconnect any ISO images.
Open the VM's Settings in the Fail Over Cluster Manager, then, disconnect any ISO images. 2Open the VM's Settings in the Fail Over Cluster Manager, then, disconnect any ISO images. 2
  1. Head back to the SCVMM console and open PowerShell.
Head back to the SCVMM console and open PowerShell. Head back to the SCVMM console and open PowerShell.
  1. When the PowerShell console opens, it connects to the VMM server. Run the command below to force a refresh of the VM reporting the error.

You can also right-click the VM in the SCVMM console and select Refresh

Get-SCVirtualMachine -Name "IPMvVMM" | Read-SCVirtualMachine -Force

After completing the above steps, the VM’s status will display “Running.”

Task 7: Fix “Virtual switch ‘virtual switch’ is not highly Available” Error

During one of my Hyper-V on Server core deployments, SCVMM was logging the error message “Virtual switch ‘’ is not highly available because the switch in host ‘’ is not compatible with other hosts.

The solution I shared below is courtesy of this post on risual.com.

To figure out what was causing the problem:

  1. I opened PowerShell in SCVMM.
  1. Then, on the PowerShell console, I ran the command below:
Get-SCVirtualNetwork | Sort logicalnetworks | ft name , logicalnetworks , VMHOST

The command result shows that the SCVMM logical switch created for the Hyper-V switch on the host in question was different.

When you add hosts to SCVMM, SCVMM creates logical networks with the same name as the Hyper-V virtual switch.

  1. To fix the error, I opened the host’s Properties and navigated to the Hardware. Then, I located a virtual switch with the wrong SCVMM virtual network, unchecked the wrong logical network, and then checked the correct one.
Fix "Virtual switch 'virtual switch' is not highly Available" ErrorFix "Virtual switch 'virtual switch' is not highly Available" Error
  1. Finally, navigate the Fabric > Logical Networks, right-click the wrong logical network and remove it.

If you receive an error message about the logical network being in use, delete it from the VM Network (VMs and Services > VM Networks) first.

Finally, navigate the Fabric > Logical Networks, right-click the wrong logical network and remove it.  Finally, navigate the Fabric > Logical Networks, right-click the wrong logical network and remove it.

Task 8: Add the Cluster File Server Share as a VMM Library

  1. Click the Library node in the SCVMM console menu. After that, right-click Library Servers and choose Add Library Server.
Click the Library node in the SCVMM console menu. After that, right-click Library Servers and choose Add Library Server. Click the Library node in the SCVMM console menu. After that, right-click Library Servers and choose Add Library Server.
  1. On the Credentials page, click the Browser button and select the SCVMM “Run as” account.
On the Credentials page, click the Browser button and select the SCVMM "Run as" account. On the Credentials page, click the Browser button and select the SCVMM "Run as" account.
  1. Then, on the Select Library Server page, click the Search button.
Then, on the Select Library Server page, click the Search button. Then, on the Select Library Server page, click the Search button.
  1. Next, enter the name of the Cluster File Server you created in part 4 of this guide. If you used the name on this guide, it should be lab-vmm-lib.

Click search to find the host in AD, then click the Add button. SCVMM will display a notification that it will install an agent; click OK.

Click search to search for the host in AD, then, click the Add button. SCVMM will display a notification that it will install an agent, click OK.Click search to search for the host in AD, then, click the Add button. SCVMM will display a notification that it will install an agent, click OK.
  1. Confirm that the correct file server is displayed, then click OK to return to the previous page.
Confirm that the correct file server is displayed, then, click OK to return to the previous page.Confirm that the correct file server is displayed, then, click OK to return to the previous page.
  1. The Select Library Server page will display the file server as a cluster resource and the cluster nodes that may own it. To proceed, click Next.
The Select Library Server page will display the file server as a cluster resource - it will also display the cluster nodes that may own the resource. To proceed, click Next.The Select Library Server page will display the file server as a cluster resource - it will also display the cluster nodes that may own the resource. To proceed, click Next.
  1. On the next page, SCVMM will detect and display the share on the file server. Check the checkbox before the share name and the checkbox before “Add Default Resources.”
On the next page, SCVMM will detect and display the share on the file server. Check the checkbox before the share name and click Next to continue.On the next page, SCVMM will detect and display the share on the file server. Check the checkbox before the share name and click Next to continue.
  1. Finally, confirm the settings and click the Add Library Server button to add the server. To copy the PowerShell script, click View Script.

SCVMM will open the job, and it runs pretty fast. Click on the last job to view the details.

Finally, confirm the settings and click the Add Library Server button to add the server. Additionally, to copy the PowerShell script, click View Script. Finally, confirm the settings and click the Add Library Server button to add the server. Additionally, to copy the PowerShell script, click View Script.
ACVMM will open the job - it runs pretty fast. Click on the last job to view the details. ACVMM will open the job - it runs pretty fast. Click on the last job to view the details.
  1. Close the job window to view the newly added Library server. The Library server and shared folders will be displayed in the Library Servers node.
To view the newly added Library server, close the job window. The Library server and its shared folders will be displayed in the Library Servers node. To view the newly added Library server, close the job window. The Library server and its shared folders will be displayed in the Library Servers node.

Task 9: Optimize the VMM Library

After creating the VMM Library with the cluster file server’s share, you must perform some tasks to optimize the library.

Task 9.1: How to Open a VMM Library Share in File Explorer

Before you begin the optimization tasks, I wanted to show you how to open the share from VMM. To open the share for the VMM Library, right-click it and select Explore. The share will open in Windows Explorer.

If you followed this guide and performed all the tasks, you should have three folders in the VMMLibrary folder share.

Task 9.2: Tasks to Optimize a VMM Library

Follow the steps below to complete the optimization tasks:

  1. Right-click the VMM library server and select Properties.
Right-click the VMM library server and select Properties. Right-click the VMM library server and select Properties.
  1. On the General tab, click the Host group drop-down and select Hyper-V.
  1. For the next task, click the VM Networks tab, then check the checkbox next to the VM network. After configuring this setting, click OK to save the changes.

I have just one network for my home lab deployment. In production, you should have three networks here: the management/VM network, the Cluster, and the Live Migration traffic. Check the network you use for the management/VM network.

Next task, click the VM Network tab, then, check the checkbox next to the VM network. Next task, click the VM Network tab, then, check the checkbox next to the VM network.

Well done for completing part 5 of this guide. You will perform further SCVMM configurations in part 6, Configure SCVMM (2).

[ad_2]

Victor Ashiedu

Source link