You are browsing the archive for SCVMM 2012 R2.

2016: My blog year in an overview

2:37 pm in Azure, Azure Backup, Azure RemoteApp, Client Hyper-V, Cloud, DC, Hyper-V, IaaS, PowerShell, Private Cloud, Public Cloud, Replica DC, SCAC 2012 R2, SCVMM 2012 R2, System Center 2016, W2K12R2, Windows 10 by Wim Matthyssen

Hi all,

As a blogger completely focused on Microsoft technologies, it was a fun year of writing about all those interesting and ever changing products and services. As we almost end the year 2016 and are preparing for 2017 to start, I wanted to make a list of all the blog posts I wrote throughout the twelve months of 2016. During the year, I’ve published 26 blog posts mostly about Azure, the System Center Suite and Hyper-V. Below you can find them all divided by technology.

 

clip_image002

Azure Compute – IaaS (ASM)

Step-by-step: Move an Azure IaaS VM between different Azure Subscriptions

Clean up Azure PowerShell when using different Azure subscriptions

Replica DCs on Azure – Removing the Azure Endpoints

Replica DCs on Azure – Transferring FSMO roles to the IaaS DCs

Replica DCs on Azure – Manage the Time Configuration settings on the DCs

Replica DCs on Azure – Domain Controller Health Check

Replica DCs on Azure – Promote the Azure IaaS VMs to a domain controller

Replica DCs on Azure – Add the Active Directory Domain Services role

Replica DCs on Azure – Adjustment of some server settings before promoting the DCs

Replica DCs on Azure – Initialize and format the additional data disk

Replica DCs on Microsoft Azure – Create the VMs with Azure PowerShell

Step by step: Change the drive letter of the Temporary Storage on an Azure IaaS v1 VM

 

Azure Networking

How to connect an Azure ARM VNet to an ASM VNet using VNet Peering

Replica DCs on Azure – Switch DNS servers for the VNet

Replica DCs on Azure – Create the Active Directory site for the Azure VNet

 

Azure Backup

Microsoft Azure Backup Server: Install a new version of the Microsoft Azure Recovery Services Agent

Microsoft Azure Backup Server: System State backup fails with WSB Event ID: 546

Microsoft Azure Backup Server: System State backup fails with the message replica is inconsistent

Step by step: How to install Microsoft Azure Backup Server (MABS)

 

Azure RemoteApp

An RDP connection to the Azure RemoteApp custom VM fails with the following error: “No Remote Desktop License Servers available”

 

Windows 10

How to deploy Windows 10 from a USB flash drive

 

System Center

System Center 2016 evaluation VHDs download links

Step by step: How to connect SCAC 2012 R2 to SCVMM 2012 R2 and Microsoft Azure

Step by step: Installing SCAC 2012 R2

 

Hyper-V

A list of tools that can be used to do a V2V from VMware to Hyper-V

Client Hyper-V – Using nested virtualization to run Client Hyper-V on a Windows 10 VM

 

Before I wrap up this blog post, I want to thank you all for reading my blog posts in 2016, and I really hope you will keep doing so in 2017. I wish you all a healthy, successful and outstanding New Year! See you all in 2017!

Wim Matthyssen (@wmatthyssen)

A list of tools that can be used to do a V2V from VMware to Hyper-V

11:49 am in Hyper-V, MVMC, SCVMM 2012 R2, V2V, VMware by Wim Matthyssen

From time to time clients ask me to convert VMware virtual machines (VM) to Hyper-V VMs. Briefly said to do a virtual-to-virtual (V2V) migration.

clip_image002

Most of the times those clients have System Center Virtual Machine Manager 2012 R2 (SCVMM) in place, which can perform those migrations with ease. You can find how you can do this by using SCVMM via following Microsoft TechNet article: https://technet.microsoft.com/en-us/library/gg610672(v=sc.12).aspx

But there are also clients who don’t make use of the System Center Suite, mostly because of the price or because they have a small environment. Therefore, other tools need to be used for these V2V migrations. In this blog post I will list up some of those tools (Microsoft and third party), all with their pros and cons.

Before I start listing them up, I would like to draw your attention to some things you should keep in mind:

  • Always check the current VMware ESX version -> not all tools migrate all versions of ESX
  • Check the guest OS version -> not all tools migrate all versions of the guest OS installed
  • Be aware that almost every migration process will introduce downtime -> no “warm migration”, VMware VM down, Hyper-V VM up
  • Hyper-V GEN 1 VMs -> Only an IDE disk can be used to boot a VM, no SCSI boot from VHD
  • Hyper-V GEN 1 VMs -> Never configure a paging file on a VHD connected to a SCSI Controller
  • Hyper-V GEN 2 VMs -> Only supports the following Windows guest operating systems (OSs): Windows Server 2012 R2, Windows Server 2012, 64-bit versions of Windows 8.1 and 64-bit versions of Windows 8

Below you can find the list of the different V2V migration tools:

1) Microsoft Virtual Machine Converter (MVMC) 3.0

Download link: https://www.microsoft.com/en-us/download/details.aspx?id=42497

Microsoft TechNet article: https://technet.microsoft.com/en-us/library/dn873998(v=ws.11).aspx

Pros:

  • Free
  • Automation via PowerShell
  • Can integrate with System Center Orchestrator (SCORCH) 2012 R2
  • VM and physical server (online) conversion
  • Not only Hyper-V but also Microsoft Azure is available as migration destination
  • Uninstalls VMware tools before an online conversion (VMware tools will not be uninstalled when an offline conversion is used)

Cons:

  • No GEN 2 VM support

2) 5nine V2V Easy Converter 6.5 free version

Download link: http://www.5nine.com/vmware-hyper-v-v2v-conversion-free.aspx

Pros:

  • Free
  • GEN 2 VM support
  • Ability to override the number of vCPUs and the available vMemory
  • Remap the vNetwork
  • Ability to override the VM start/stop/delay actions
  • Automatic conversion into a Highly Available Hyper-V VM is available
  • Faster than MVMC

Cons:

  • No automation trough PowerShell for the migration process in the free edition (only in the payed edition)
  • Does not remove VMware tools automatically

3) StarWind V2V Converter

Download link: https://www.starwindsoftware.com/converter

Pros:

  • Free
  • Converts VMs from any format (VMDK, VHD, VHDX, …) to another

Cons:

  • Requires registration in order to download it
  • Does not remove VMware tools automatically

Before ending this post, I also want to mention the Disk2vhd tool which enables you to do a physical-to-virtual (P2V) migration. You can dowload it via following link: https://technet.microsoft.com/en-us/sysinternals/ee656415.aspx

You can also read all about how to use this tool in a blog post I wrote some time ago: http://scug.be/wim/2015/01/22/how-to-perform-a-p2v-with-disk2vhd/

Like you can see you have several tools you can use, all with their advantages and possible disadvantages. Newer versions of those tools mostly include new features and add support for more OSs. I mostly prefer to use MVMC if SCVMM is not available to do the migration, but off course the choice is all yours. Hopefully this list helps, till next time!

Wim Matthyssen (@wmatthyssen)

Step by step: How to connect SCAC 2012 R2 to SCVMM 2012 R2 and Microsoft Azure

10:43 am in Azure, Cloud, hybrid cloud, Private Cloud, Public Cloud, SCAC 2012 R2, SCVMM 2012 R2 by Wim Matthyssen

11-02-2016 16-14-33What’s a System Center App Controller (SCAC) server without a connection to System Center Virtual Machine Manager (SCVMM) or Microsoft Azure … right nothing! That’s why in this blog post I will show you how you can connect your SCAC server to your private (SCVMM) and public cloud (Microsoft Azure) environments.

Before we start some things to keep in mind:

To connect SCAC to SCVMM, complete these steps:

1) Open the SCAC web portal, expand Settings and click Connections. On het menu bar, click Connect and select SCVMM

clip_image002

2) In the Add a new VMM connection screen, enter a Connection name (this is the name the user sees), a Description, the SCVMM server name in FQDN format, and the TCP port of that same SCVMM server (default is 8100). Check the “Automatically import SSL Certificates” check box if you plan to copy files and templates to and from SCVMM libraries (this option is recommend). Click OK

clip_image003

3) SCAC establishes the connection and begins a session with the SCVMM server. You can follow the completion in the Jobs section

clip_image004

clip_image006

clip_image008

4) If all is setup without any errors, you will be able to connect to your different on premise Clouds and Virtual Machines (VMs)

clip_image010

clip_image012

To connect SCAC to your Azure Subscription, complete these steps:

1) To create the Self-Signed Certificate open up the IIS Manager on the SCAC server. Double-click on Server Certificates

clip_image014

2) In the Actions pane select Create Self-Signed Certificate

clip_image016

 

3) Name the certificate (in my example AzureSCACCert) and click OK

clip_image018

4) Now we need to export this certificate as a .pfx file. To do so, right-click on the certificate and choose Export…

clip_image020

5) Choose a file name, a location and set a password. If all is filled in click OK

clip_image021

6) In my example the .pfx file is created under the C: root

clip_image023

7) Now open run an type mmc and add the Certificates Snap in for the “Local Computer Account”

 

clip_image025

8) Go to Personal, right-click Certificates and under All Tasks select Import…

 

clip_image027

9) Follow all steps to import the .pfx file (AzureSCACCert) in the personal certificate store

clip_image028

clip_image030

10) To generate the .cer file by right clicking on the certificate, and under All Tasks, select Export

 

clip_image032

 

11) Use the defaults trough the wizard, as file name I used AzureSCAC.cer and as location C: At the end of the wizard press Finish

clip_image033

12) As a next step we need to upload the .cer file to Azure. To do so logon into your subscription in the classic portal (https://manage.windowsazure.com). When logged on, select Settings at the bottom left, select MANAGEMNT CERTIFICATES and finally select Upload at the bottom

clip_image035

13) Browse to the .cer file (located under the C: drive) select it, and click the check box. After a few seconds you should see a notification telling you that your upload is successful and the certificate should be added to the list of management certificates

clip_image036

clip_image038

clip_image040

14) Before we can connect SCAC to this Azure Subscription we need the Azure subscription ID. Because were already at the MANAGEMENT CERTIFICATES page, you can find this ID under the field SUBSCRIPTION ID. Copy the subscription ID to the clipboard

clip_image042

15) Open up the SCAC web console again, in the Overview pane, under Public Clouds, select Connect a Windows Azure Subscription

 

clip_image044

 

16) Fill in a Name and a Description, past the Azure Subscription ID, and select the correct certificate and add the password. If all is foreseen click OK

clip_image045

17) If all went well, you can see that you have an Azure subscription is now connected in the Overview page

clip_image047

18) Under the Virtual Machines section you can see your Azure IaaS VMs running

clip_image049

This concludes this blog post, hope it helps. Till next time!

Wim Matthyssen (@wmatthyssen)

The Service Principal Name could not be registered in AD DS for the SCVMM 2012 R2 Management Server

11:14 am in Private Cloud, SCVMM 2012 R2, SPN by Wim Matthyssen

 

Sometimes when installing a new System Center Virtual Machine Manager (SCVMM) 2012 R2 Management server you can receive following message at the end of the installation: “Setup completed successfully with warnings”. Like you can read in the error message, this means the installation was successful only the Service Principal Name (SPN) could not be registered in Active Directory Domain Services (AD DS) for the SCVMM Management Server. If the SPN and SCP are not registered, SCVMM consoles on other computers will not be able to connect to this SCVMM Management Server and deploying a Hyper-V host to a bare-metal computer will not work. This problem occurs when your installing your SCVMM Management Server with an account that has insufficient rights to make chances to AD.

clip_image001

To fix this problem run following commands as a domain administrator from a command prompt:

1) Use setspn.exe to create SPN for SCVMM server using the following command:

"C:\Windows\system32\setspn.exe  -S SCVMM/hostname.domain accoutname".

As example:

"C:\Windows\system32\setspn.exe -S SCVMM/VMM-01.contoso.local CONTOSO\mgrscvmm".

2) Add SPN values to following registry key "Software\Microsoft\Microsoft System Center Virtual Machine Manager Server\Setup\VmmServicePrincipalNames".

3) Run "C:\Program Files\Microsoft System Center 2012 R2\Virtual Machine Manager\setup\ConfigureSCPTool.exe -install" to configure SCP.

clip_image002

This should fix the issue and also concludes this blog post.

Hope it helps, till next time!

Wim Matthyssen (@wmatthyssen)

Step by step: Installing a standalone SCVMM 2012 R2 Management Server

4:34 pm in Private Cloud, scvmm, SCVMM 2012 R2 by Wim Matthyssen

clip_image002Installing the System Center Virtual Machine Manager (SCVMM) 2012 R2 Management Server is pretty straightforward and is very much like installing a new Windows Server. Its main focus is to run the SCVMM service, which processes all commands and handles all communication between the SCVMM database, the SCVMM library server(s) and the Hyper-V hosts. The SCVMM server is cluster-aware, and you can deploy it as highly available (HA) if your virtualization environment is large. But in this blog post I will go to the installation process for setting up a standalone SCVMM Management server. I will also list up all prerequisites and components to get all things up and running.

But first of all, I will start with listing some things up which need  to be kept in mind when planning your deployment:

  • The topology for a SCVMM deployment will vary according to each company’s needs. Consider the following before taking off: numbers of Hyper-V hosts, number of branch sites with hosts, security, administrative groups, self-service experience, availability and recovery time for each of the components.
  • For complete SCVMM software and hardware requirements go to the following Microsoft TechNet page: https://technet.microsoft.com/library/dn771747.aspx
  • If you are deploying SCVMM, you should consider that the SCVMM database no longer supports SQL Express. Therefore, you must use a supported version of SQL server (full version) to run this database.
  • At least one SCVMM library server is necessary, but you should consider foreseeing more separate servers for each external site with a low bandwith link.
  • When you are naming the SCVMM Management server, the computer name cannot contain the character string “SCVMM”.
  • The SCVMM database can reside on a SQL server with other application databases. For example, in combination with the App Controller database.
  • The SCVMM database must be in the same domain as the SCVMM server or a two-way trust must be in place.
  • Be sure to join the SCVMM Management server to the domain.
  • Create all necessary accounts in advance: SCVMM service account, RunAs account for managing hosts, SCVMM Administrators security group. Add the security group to the Local Administrator group on the SCVMM Management Server.
  • You can deploy the SCVMM Console on the same server as the SCVMM Management server, or on another server or workstation that is running a supported operating system (OS).
  • The SCVMM Management Server will be installed on a W2K12 R2 virtual machine (VM) with the Windows Firewall disabled.
  • Configure SCVMM 2012 R2 Distributed Key Management (DKM) in advance. If you do not know how, read all about it in my previous blog post: http://scug.be/wim/2015/07/05/configure-scvmm-2012-r2-distributed-key-management/
  • For the installation log on with a domain account which is a member of the SCVMM Administrators security group and insure this account has sufficient rights to access the SQL and the AD container.

SCVMM has five major components of architecture and these are setup accordingly for this standalone installation:

  • SCVMM Management Server -> will be setup as standalone server
  • SCVMM console -> will be installed on the same server as the SCVMM Management Server
  • SCVMM Self-Service portal -> is been replaced by System Center App Controller (SCAPP)
  • SCVMM database -> will be placed on a separate SQL cluster
  • SCVMM library -> tempory local, will be replaced by a share on a separate file server

After this brief intro, it’s time to setup the SCVMM Management server. We will start off with the installation of all the required Prerequisites.

1) Install Microsoft SQL Server 2008 R2 Command Line Utilities, which can be downloaded over here: http://www.microsoft.com/en-us/download/details.aspx?id=16978

2) Scroll down the page, until you find the exact download

clip_image004

clip_image006

3) If you right-click and install, you may receive following error

clip_image008

4) If so download the Microsoft SLQ Server 2008 R2 Native Client (X64 Package) and run Install

clip_image010

clip_image012

clip_image014

clip_image016

clip_image018

clip_image020

clip_image022

clip_image024

5) Now install the SQL Server 2008 R2 Command Line Utilities

clip_image026

clip_image028

clip_image030

clip_image032

clip_image034

clip_image036

6) Download the Windows Assessment and Deployment Kit (Windows ADK) for Windows 8.1, you can find it via following link:

http://www.microsoft.com/en-US/download/details.aspx?id=39982

clip_image038

7) Run the file as Administrator

clip_image040

8) Leave the default installation path and click Next

clip_image041

9) We don’t join the Customer Experience Improvement Program (CEIP), so we select No and click Next

10) Accept the License Agreement

11) For SCVMM 2012 R2 we only need to install the Deployment Tools and the Windows Preinstallation Environment. Select those and click Next

clip_image042

clip_image043

12) To make sure things are still ticking along under the covers, you can navigate to %temp%/adk to look at the installation log file to make sure that things are still progressing behind the scenes. The installation can be quite large up to 5.1 GB, so if you are on a slow Internet connection, you may be stuck at 0% complete for up to 15 minutes or more before you see any change in the progress bar. In the log file, look for the time that you kicked off the installation and also the time of the last log entry. You should be able to see some activity, namely ‘acquiring package’. This will mean that it’s downloading the package in the background.

clip_image045

Windows Assessment and Deployment Kit for Windows 8.1_20140224141443.log

Check your proxy settings if download doesn’t start or doesn’t work

13) Install the Microsoft Visual C++2010 x86 Redistributable Maintenance. You can locate the executable on the SCVMMR2VMM ISO under the folder “Prerequisites”

After all prerequisites are installed it is now time to freshly install the SCVMM Management Server

14) Go to the DVD or ISO, open it and select setup.exe

clip_image046

15) Click Install

clip_image047

16) Select VMM management server (automatically VMM console is also selected)

clip_image048

17) After the selection of the roles, you have to provide the information about the name of the administrator installing the product, organization details and last but not least the product key. If you don’t provide the product key during installation, you can provide it later. But be aware your installation will only be valid for a 180-day trial period

clip_image049

18) On the next screen, read and accept the licensing agreement and press Next

clip_image050

19) We will not join the Customer Experience Improvement Program (CEIP). So select No, I am not willing to participate and press Next

clip_image051

20) Leave the Installation location to the default and press Next

clip_image052

21) On the prerequisites checker, if there is any prerequisite missing, SCVMM setup will inform you about that. If so, install any missing prerequisite and re-run the checker

22) In the next screen you need to specify the database configuration. Because were installing the SCVMM database on a separate SQL cluster, we need to fill in het Server name and the proper SQL Server Instance name. In addition to this, we also have to specify the correct SQL Server listening port and the user name and domain used to connect to it

clip_image053

23) On the next screen we need to fill in the domain account used by the VMM service and the location for the DKM

clip_image054

24) In the next section leave all ports to the default and press Next

clip_image055

25) For the Library configuration also leave everything to the default. After installation is complete you can add a separate library shared on a file server and delete this default

clip_image056

26) On the last screen, a summary of all the configuration-related settings provided is shown. If everything is OK, you can click Install to start the installation

clip_image057

clip_image058

clip_image059

27) Like you can see installation is completed and you can Close the screen. If you mark the to open the VMM console when this wizard closes this will be opened. Here you are required to provide the right credentials

clip_image061

This concludes this blog post, hope it helps and till next time!

Wim Matthyssen (@wmatthyssen)