In this article, we will show you how to install System Center Virtual Machine Manager (SCVMM) 2022 on top of Windows Server 2022 and SQL Server 2019. In a follow-up blog post, we will dive into the new features and improvements.
In This Article
Microsoft announced the release of System Center 2022 under the Long-Term Servicing Channel (LTSC). LTSC provides 5 years of standard and 5 years of extended support. After the release of System Center 2022, the suite will continue to accrue value through the Update Rollup releases every six months over the mainstream support window of 5 years. You can read about the GA announcement for System Center 2022 on the Windows Server Blog. You can download the media from the Volume Licensing Service Center (VLSC), or you can download the evaluation bits from the following link.
> You can download the evaluation media for SCVMM 2022 directly from the following link.
There are a lot of improvements and new features introduced in this release.
In System Center 2022 Virtual Machine Manager, Microsoft added several new features:
- Windows Server 2022 and Azure Stack HCI, version 21H2.
- Manage Azure stack HCI clusters.
- Registration of Azure Stack HCI clusters.
- Support for managing Windows Server 2022.
- Support for dual-stack (IPv4 + IPv6) SDN deployment.
- SQL Server 2019 as VMM database.
- Windows 11 support.
To learn more about what has been improved in the previous System Center 2019 Virtual Machine Manager, please check the following article.
*System Center Data Protection Manager 2022 will be available at a later date on May 1st, 2022. Stay Tuned!
Prepare VMM 2022 Installation
The following prerequisites and components should be installed on the server before you install VMM:
- The Deployment Tools feature from the Windows® Assessment and Deployment Kit for Windows Server 2022 must be installed on this computer to run Microsoft System Center 2022 – Virtual Machine Manager. To download the Windows® Assessment and Deployment Kit, go to Windows Assessment and Deployment Kit (ADK).
- The Windows Preinstallation Environment feature. Starting with Windows 10, version 1809 and later, ADK does not include Windows PE by default. It’s a separate add-on download Download the Windows PE add-on for the ADK (Windows 11 and Windows Server 2022).
- PowerShell 5.0 or later.
- .NET 4.6 or later.
- Microsoft Visual C++ 2013 Redistributable Package. To complete the installation, you must reboot the computer.
- Ensure that a domain controller for the Active Directory domain is available.
- Ensure that the domain account used for the VMM service is a member of the Administrators group on the local VMM server (more on this in the next section).
Install VMM 2022 on Windows Server 2022 and SQL Server 2019
The installation of VMM is straightforward using the graphical user interface (GUI).
In this article, we will show you how to automate the installation of System Center 2022 Virtual Machine Manager and SQL Server 2019 on top of Windows Server 2022. The same steps will also apply to Windows Server 2019.
Windows Assessment and Deployment Kit Installation
To automate the Windows Assessment and Deployment Kit Installation, take the following steps:
Open an elevated command prompt window, then navigate to the adksetup.exe location, and then run the following command on a single line to install Windows ADK in silent mode:
adksetup.exe /quiet /installpath D:\ADK /features OptionId.DeploymentTools
Windows PE Installation
To automate the Windows PE installation, take the following steps:
Open an elevated command prompt window, then navigate to the adkwinpesetup.exe location, and then run the following command on a single line to install Windows PE in silent mode. This command will also restart the VMM machine:
adkwinpesetup.exe /quiet /installpath D:\ADK /features OptionId.WindowsPreinstallationEnvironment /forcerestart
Automate SQL Server 2019 Installation
Please note that System Center 2022 Virtual Machine Manager supports local and remote SQL Instances. You can disregard this step if you already have a SQL Server deployed locally or on another server in your environment.
Mount SQL Server 2019 Standard media and then open an elevated command prompt window, navigate to the SQL Server 2019 media, and run the following command on a single line:
Please make sure to update the domain name, SQL service accounts, and passwords according to your environment. As a side note, you can also use a parameter (configuration) file and pass it to the setup for SQL instead of typing the long CLI below, either way, will work. For more information on how to install SQL Server using a configuration file, please check the following article. To specify the configuration file at the command prompt, use the following syntax: Setup.exe /ConfigurationFile=”D:\MyConfigFile.ini”
Setup.exe /Q /ACTION=install /IACCEPTSQLSERVERLICENSETERMS /FEATURES=SQLEngine /INSTANCENAME=VMM2022 /INSTANCEDIR="D:\Program Files\Microsoft SQL Server" /INSTALLSHAREDWOWDIR="D:\Program Files (x86)\Microsoft SQL Server" /INSTALLSHAREDDIR="D:\Program Files\Microsoft SQL Server" /SQLSVCACCOUNT="domain\username" /SQLSVCPASSWORD="vmm2022##" /SQLSYSADMINACCOUNTS="domain\username" /AGTSVCACCOUNT="NT AUTHORITY\Network Service" /AGTSVCSTARTUPTYPE="Automatic" /SECURITYMODE=SQL /SAPWD="vmm2022##" /SQLTEMPDBDIR="D:\Program Files\Microsoft SQL Server\TempDB\\" /SQLUSERDBDIR="D:\Program Files\Microsoft SQL Server\SQLData\\" /SQLUSERDBLOGDIR="D:\Program Files\Microsoft SQL Server\SQLLog\\"
After a short period, the installation will be completed as shown in the figure below without error:
A quick validation with PowerShell to verify that SQL services are up and running by running the command below:
Get-Service *SQL* | FT -AutoSize
Starting with SQL 2016 onward, SQL Server Management Studio (SSMS) is now packaged and installed separately with only a web link to each download page within the SQL Server Installation Center. At the time of writing, SSMS version 18.10 is the current General Availability (GA) which you can download from here.
Within the same command prompt window, type the following command to install SQL Server Management Studio (SSMS) in silent mode. SSMS installation will take around 5 to 10 minutes to complete.
SSMS-Setup-ENU.exe /install /quiet /norestart /log log.txt
Once you install the SSMS package, open SQL Server Management Studio (SSMS) and verify you are able to connect to the VMM SQL instance name.
Now we are ready to install SCVMM 2022.
Automate SCVMM 2022 Installation
Now before we install SCVMM, we need to add the domain account for the VMM service as a member of the local Administrators group on the VMM server. Open Windows PowerShell and type the following command (make sure to update the domain name and service account):
Net localgroup Administrators domain\vmmsvc /add Get-LocalGroupMember Administrators
Copy the following details into Notepad and save the file on the VMM server as VMServer.ini.
You can use the same script below whether the SQL Server instance is installed on the VMM server or on a remote server.
When creating the VMServer.ini, replace the text inside < > with values from your own environment.
[OPTIONS] ProductKey=xxxxx-xxxxx-xxxxx-xxxxx-xxxxx UserName=<User Name> CompanyName=<Organization Name> ProgramFiles=<VMM Server Installation Path> CreateNewSqlDatabase=1 SqlInstanceName=<SQL Instance Name> SqlDatabaseName=<VMM Database Name> RemoteDatabaseImpersonation=1 SqlMachineName=<SQL Server Machine Name> IndigoTcpPort=8100 IndigoHTTPSPort=8101 IndigoNETTCPPort=8102 IndigoHTTPPort=8103 WSManTcpPort=5985 BitsTcpPort=4443 CreateNewLibraryShare=1 LibraryShareName=MSSCVMMLibrary LibrarySharePath=<Library Share Path> LibraryShareDescription=Virtual Machine Manager Library Files SQMOptIn=0 MUOptIn=0 VmmServiceLocalAccount=0 TopContainerName=<Container for Distributed Key Management (DKM); for example: CN=VMMDKM,OU=SysCtr MGT,OU=VIRT LAB,DC=VIRT,DC=LAB> HighlyAvailable=0 VmmServerName=<VMM Server Name> # VMMStaticIPAddress = comma-separated-ip-for-HAVMM
Here is a real example of the VMServer.ini file that we will use in this example:
After you edit the file, open an elevated command prompt and run setup.exe with the parameters below.
For example, to use a VMServer.ini file that is stored in C:\Temp with a SQL Server administrator account of domain\vmmadmin and password, and a VMM service account of domain\vmmsvc and password, use the following command:
Setup.exe /server /i /f C:\Temp\VMServer.ini /SqlDBAdminDomain DOMAIN /SqlDBAdminName vmmadmin /SqlDBAdminPassword PASSWORD /VmmServiceDomain DOMAIN /VmmServiceUserName vmmsvc /VmmServiceUserPassword PASSWORD /IACCEPTSCEULA
Sit back and relax… after 10 minutes VMM will be installed automatically as shown in the figure below:
You can also verify that the VirtualManager2022 database is created successfully in SQL Server Management Studio.
That’s it there you have it!
Thank you for reading my blog.
If you have any questions or feedback, please leave a comment.