Gadgets
How to Migrate VMware to Hyper-V (4): Install and Setup SCVMM
[ad_1]
Welcome to part 4 of my VMware to Hyper-V migration hands-on guide. In this part, you’ll create the AD objects required to install SCVMM.
Then, you will configure SPN delegation, install SCVMM prerequisites, and install an SQL Server. You will also deploy an HA cluster file server to host your VMM Library share.
Finally, you’ll deploy and configure SCVMM.
Task 1: Create AD Objects and Service Accounts
Installing SCVMM requires creating some Active Directory objects. To create these objects, complete the following tasks in AD:
- Create an OU called “Service Accounts”
- Create a Service account called scvmm-sa in the “Service Accounts” OU
– Check Password never expires and User cannot change password
– Uncheck User must change password at next logon
– This service account will be used for installing SCVMM - Create another account called scvmm-ra in the “Service Accounts” OU
– This account will be used as VMM “Run as” account
Create a Service account called scvmm-sa in the “Service Accounts” OU
– Check Password never expires and User cannot change password
– Uncheck User must change password at next logon
– Add the scvmm-ra account to the Global Administrator in vCenter Server
– Add the scvmm-ra account to the Domain Admins group in AD – scvmm-sa account is okay as domain users - Create an OU called DKM
– This is where SCVMM stores Distributed Key Management
– During SCVMM installation, you will specify the DistinguishedName of this OU
Task 2: Configure SPN Delegation for the SCVMM Service Account
Sign in to a Domain Controller, run PowerShell as administrator, then run the following commands:
The commands configure SPN delegation to the cluster name
setspn -u -s SCVMM/lab-cluster-2 scvmm-sa
setspn -u -s SCVMM/lab-cluster-2.lab.infopressmedia.com scvmm-sa
Task 3: Deploy a Highly Available VMM Library
In task 3, you will create a HA SCVMM Library Share using the following subtasks.
Task 3.1: Configure a HA Cluster File Server Role
- Open the Fail Over Cluster Manager from any of the Hyper-V hosts. Then, right-click the Roles node and select Configure Role.

- On the first page of the High Availability Wizard, check Do not show this page again. Then, click Next to proceed to the next page.


- Then, choose the File Server role and click Next.


- In the File Server Type page, choose File Server for general use (this is the default option).


- Then, on the Client Access Point page, enter the file server’s name and IP address. I am using the details in the table below in my home lab.
For the IP address, enter the last portion, which is 108 in my table below,
File Server | File Server IP address |
---|---|
lab-vmm-lib | 192.168.0.108 |


- The Select Storage page will load. Check the checkbox next to the VMMLibrary Disk, then click Next to proceed to the next page.


- Finally, review the Cluster File Server configurations and click Next to create the role. When the wizard finishes creating the role, click Finish.




The Fail Over Cluster Manager Roles node will display the File Server information, including the Owner Node.


Task 3.2: Create a Folder Share for the VMM Library
To allow the SCVMM server and “Run As” account to access the VMM Library share, we must create a folder share using the VMMLibrary cluster disk. Furthermore, we must grant permission to the VMM AD computer account and the SCVMM “Run As” account.
To create a folder share for the VMM Library and configure permissions, follow these steps:
- Click the Roles node of the Fail Over Server Manager console, then left-click the file server role you created in step 3.1. After that, click Add File Share.


- Then, on the first page of the New Share wizard, select SMB Share – Quick.


- Select the file server name and the volume to create the share.


- In the Share Name page, specify the share name and an optional description.


- In the Other Settings page, accept the default configurations and click Next to proceed to the next page.


- Then, in the Specify permissions and access page, click Customize permissions.


- Add the following Active Directory objects and grant them the specified permissions.
Object | Object details | Permission |
---|---|---|
SYSTEM | local System account | Full Access |
Administrators | local administrators account on the library cluster resource name | Full Access |
IPMvVMM | SCVMM computer account | Full Access |
scvmm-ra | The SCVMM “Run As” account | Full Access |
Administrator* | Domain Administrator account | Full Access |
*I included this account because I use it to log in and perform tasks. It is not required for a production setup.
Follow this screenshot numbering to add the accounts.


When you finish adding the objects and assigning permissions, the Advanced Security Settings page of the share should look like the screenshot below. To save the changes, click OK.


- Review the share permissions and click Next. Finally, click Create to create the share.




Task 3.3: Create Subfolders in the VMM Library Share
If you click File and Storage Services > Shares in Server Manager, the share will be available there.


Right-click the VMM Library share and select Open share. Then, create the following folders:
“ISO Images,” VHDs, and “VM Templates.”


Later in this guide – after installing SCVMM – we will add the share to SCVMM Library
Task 4: Install SCVMM Deployment Prerequisites
Navigate to the folder share you created in part 1 and download the required installation files. To get the network path of the folder share, open the Properties and click on the Sharing tab. Copy the network path.


All downloaded SCVMM prerequisite software should be located in “IPMPHPV4Hyper-VFilesSCVMMServer22.”


Install the following on your SCVMM server – I have added the installation executable file name next to each software:
Install the apps in the order listed and use the installation default settings.
- Windows ADK for Windows 10, version 1809 10.1.17763.1 – adksetup.exe
– during this installation, you may receive an error that a file cannot be found
– select the Download content from the internet option, then click Retry. - Windows PE add-on for ADK, version 1809 10.1.17763.1 – adkwinpesetup.exe
– during this installation, you may receive an error that a file cannot be found
– select the Download content from the internet option, then click Retry. - Visual C++ 2013 Redistributable (x64) – VC_redist.x64.exe
- Microsoft ODBC Driver 17 for SQL Server – msodbcsql.exe
– on the Feature selection section, select the option to install all features - Microsoft Visual C++ 2013 Redistributable (x86) – 12.0.30501 – vcredist_x86.exe
Task 5: Install SQL and SQL Management Studio
I have divided this task into two sub-tasks – installing SQL and then the Management Studio.
Task 5.1: Install SQL Server 2022
- You can mount the SQL ISO image you downloaded in part 1 by right-clicking it and selecting “Mount.” The ISO image will be mounted and opened in File Explorer.


- Double-click Setup.exe to commence SQL Server 2022 installation. After clicking setup.exe, it may take a short while to initiate the installation.


- On the first page of the SQL Server installation center, click the Installation menu. Then, select the New SQL Standalone installation or add features to an existing installation.
The installer will take a while to load after clicking the option above.


- When the installer loads the Edition page, select your edition. I’m using the evaluation edition. Then, on the next page, accept the license agreement.
My screenshot below is missing the lower part of the installation page.




- On the Windows Update page, for a production deployment, follow your Windows update policy. But, for a lab deployment, check the Use Microsoft Update checkbox.


The installer will run some pre-installation checks and return results. If yours returns a warning or error, click it to see the details.
If necessary, resolve the issue before you continue installation. My deployment throws a Windows Firewall warning message.


The details of the warning is asking me to ensure that the necessary ports are open to allow remote access. I can safely ignore this warning as my SQL server and SCVMM server are running on the same server – so no remote access required.
- On the Azure Extension for SQL Server, unless you require this extension, uncheck the checkbox.


- Select Database Engine Services, unless you require other features. You may also change the Instance root directory to a different drive if you need to.


- Use the default instance and click Next to continue.


- Accept the default Service Startup settings.


- On the Database Engine Configuration page, select Windows authentication mode, and click Add. Then, add the SCVMM “Run As” and Service accounts you created earlier.
My SCVMM “Run As” account is scvmm-ra while my service account is scvmm-sa. So, I am adding this account.
For my lab environment, I also click the “Add Current User” button to add my Windows AD account.
If your environment requires it, select the Mixed Mode, and set a password for the SQ sa account.


- Finally, review your selections and if you’re happy with it, click Install. Then, sit back and wait for SQL Server 2022 to install on your SCVMM server.


When the installation is completed, confirm that the features shown in my screenshot are installed. Then, close the SQL Server installer.


Task 5.2: Install SQL Management Studio
Navigate to the share, open the SQLServer22 folder, double-click the SSMS-Setup-ENU.exe, and install SQL Management Studio.


Before proceeding to the next task, open SQL Server Management Studio to confirm that you can log in to the database. Check Trust Server Certificate, then click Connect.


Task 6: Install System Center Virtual Machine Manager 2022
Before you install SCVMM Server 2022, restart the VM. Also, add the SCVMM domain service account to the local Administrators group on the SCVMM computer.


Now, follow these steps to install SCVMM 2022:
- Open the folder you extracted SVMM earlier in this guide and double-click Setup.exe.


- Then, on the first page of the SCVMM installer, choose Install.


- On the next page, check the VMM Management Server checkbox – the installer checks the VMM Console automatically.


- Then, on the Product registration page, accept the defaults and continue. On the next page, accept the license agreement.




- Review the Diagnostics and data usage information and click Next. Then, accept the default installation location.




- If you assigned 8 GB RAM to your SCVMM VM, the prerequisite check page will display an insufficient memory warning. For a lab deployment, ignore it and proceed.


- On the Database configuration page, check Use the following credentials. Then, enter the SCVMM “Run As” account credentials – accept other defaults, and click Next.


- Then, on the Configure service account and distributed key management page, the Domain account option is selected by default. Click Select to add the SCVMM Service account.
On the Select User pop-up, enter the SCVMM AD service account, click Check Name, and then OK.




- Back on the Service account and DKM page, enter the password for the service account. Then, on the Distributed Key Management section, check Store my keys in Active Directory.
After that, enter the distinguishedName of the DKM OU you created earlier in this guide.


- Accept the default ports for SCVMM.


- On the Library Configuration page, accept the default settings.
In Task 7, we will add the Cluster File Server share we created earlier as a library server in SCVMM


- Finally, review the installation selections and click Install. The installation takes about 10 to 12 minutes.
When the installation is completed, leave the “Check the latest virtual machine manager updates” checkbox checked. However, I recommend unchecking the “Open VMM console when this wizard closes” checkbox.




I am truly excited that you have configured your new Hyper-V/SCVMM environment up to this point! Well done!
To set up SCVMM, read the next guide (part 5) in the series – Configure SCVMM.
[ad_2]
Victor Ashiedu
Source link
