Zerto Hyper-V to VMware

Zerto Hyper-V to VMware KB ID 0001805

Problem

I’ve known this was possible for a while, I tried to set it up a while ago, but had a nightmare installing SCVMM so I threw my toys out of the pram and did something else. After a chat with a colleague the other week we have client who needs to do this (we are migrating them from Hyper-V into VMware).

So I thought I’d revisit the subject, and this time everything went swimmingly.

Zerto Hyper-V to VMware Pre Requisites 

SCVMM

I work A LOT less with Hyper-V than I do with vSphere, but for Zerto to talk to a Hyper-V environment, it needs to have SCVMM. This can be added to either a stand alone Hyper-V host, or a Hyper-V Cluster. For the VMware techs try to think of it like vCenter for Hyper-V (only more clunky).

The most annoying part of SCVMM is installing it, it will go to the end of the install, then casually inform you, you are missing something it needs, this will happen multiple times if you dont get your ducks in a row. I installed SQL (standard) beforehand. It will also need SQL Server Command Line Utilities (download separately to SQL). The Windows Assessment and Deployment Kit, and after 2019 they’ve removed the Windows Preinstallation Environment features and made that a separate ‘Add-On’. You may also need some ODBC drivers. (If only Microsoft has put all these requirements in the install media!)

Once that’s done, adding your Hyper-V environment is pretty easy.

Note: You dont have to change the way you manage your Hyper-V environment just because you have SCVMM (In fact I’m ripping it out after this).

Zerto

I’m assuming you have Zerto setup in the source and target environment (if you are temporarily setting it up in the source Hyper-V environment) then if you have IP connectivity to the ZVM on the VMware (target environment) then you can use your existing licences from there (or simply paste in your existing licence).

For the uninitiated – you install Zerto on a ZVM (Zerto Virtual Manager) in my case on a Server 2019 server > Then you deploy VRA (Virtual Replication Appliances) to all your HOSTS. You can then setup sites, and replicate virtual machines between those sites using VPGs (Virtual Protection Groups). That’s saved you a weeks course!

The process is more or less identical for  both Hyper-V and VMware, except one you point at SCVMM and the other at vCenter.

Zerto Hyper-V to VMware VMWare Tools Deployment

To make the operation much smoother you should install the VMware tools on the machine while they are still in Hyper-V (so post migration/failover) they come up cleanly. Unfortunately VMware do not make this simple (as you will see in a minute). You can either go to VMware and download the VMware tools (requires a logon). Or Simply get them from your existing ESX hosts.

Use either WinSCP for FileZilla and SFTP into you ESX hosts (you may need to enable SSH first) you will find the windows.iso image for VMware tools in /vmimages/tools-isoimages 

Note: there’s also a linux.iso in here, if you have ginger hair and wear AC/DC T-shirts, (despite not knowing any songs.)

Mount the iso file somewhere and run setup64.exe (unless it’s the thirteen hundreds, and you are still running x32 bit servers).

It will complain that;

The VMware Tools should only be installed inside a virtual machine

Well that’s great, we are stuck in a catch 22?

Well not really LEAVE the error message on the screen and navigate to the %TEMP% directory. Here you find a folder with a big long name that looks like a GUID with ‘~setup’ on the end of its name > Open that folder and grab these three files, (copy them to your desktop). At this point you can click OK on the error message and dismiss any other VMware prompts.

Now you need to edit the MSI file and remove the environmental check so you can install them, to do that get a copy of OrcaMSI Install and run it. Open > navigate to VMware Tools64.msi > Open.

Tables > InstallUISequence > VM_CheckRequirements > Right click > Drop Row > OK > CLICK SAVE! > Exit Orca.

You can use the ‘doctored’ MSI file to install the tools on your Hyper-V host(s) or if there’s A LOT you can install the MSI across all the machines with a group policy. YOU DONT NEED TO REBOOT post install, the server will reboot during migration.

What are the other TWO files for? They are just in case your machines do not have the C++Redistributable on them, you will know if yours are missing because the VMware tools install will stop and say; 

Service ‘VMware Alias Manager and Ticket Service’ (VGAuthService) failed to start. Verify that you have sufficient privileges to start system services”

If yours does that, that’s what those other two files are for (x32 and x64 versions as applicable).

Zerto Hyper-V to VMware Site Pairing

It does not really matter which way round you do this (as you will see in a minute) on one of your ZVMs > Sites > Generate Pairing Token > Copy. (then take that to the OTHER ZVM.

Sites > Pair > Give the ZVM the IP of the Other ZVM > Paste in the pairing token > Pair.

Time to go and get a coffee, after a while you should see something like this.

Zerto Hyper-V to VMware VPG Setup

I’m doing this at the Hyper-V (Source) end  > VPG > Add > Give the VPG a name and priority > Next.

Add in the source VM(s) > Next.

I’m sticking with the defaults (thin provisioned target) > Next.

Select the target site > I’m manually adding the host and datastore at the other end (you can select a cluster instead and let VMware decide) > Next.

We are migrating to the production network at the other side. If I wanted to do test failovers I can add a test network, but here there’s no point so I’ve set them the same > Recovery Folder is the folder in VMware (I spent a good sixty seconds staring a that!) > Next.

Here we are actually on the same network, but in real life you may need to re-ip the server when its moved/failed-over so to replicate that Ive added a static IP we can check post migration. Select the NIC > Edit Selected > Change accordingly > Save > Next.

Note: Hey Zerto, I’d have preferred a ‘wildcard octet option‘ i.e. 192.168.X.{number} to 192.168.Y.{number} like Veeam does!

We don’t need to offload backups to long term retention  > Next.

Take a quick look at the summary > Done.

Depending on network connectivity and speed, it might take a while, but you are waiting until it says “Meeting SLA”.

Zerto Hyper-V to VMware Move (Failover)

I’m using failover rather than move > Live > Select the VPG > Select the server(s) >Next.

I want my source server to shutdown > Next.

Failover Start.

Here we are moving a VM for A to B, if it were to fail or there was a problem I’ve still got the original VM in Hyper-V I can power it back on so I’m not too concerned > Start Failover.

Pretty quickly there’s a flurry of activity in VMware and the new VM is powering up, (it will reboot a couple of times).

Notice I’m connecting with the VMware remote console now, let’s check that IP and make sure we’ve got internet connectitity.

 

Related Articles, References, Credits, or External Links

Kudos to Dave Williams for sorting me a Zerto NFR License

Force Remove FortiClient

Remove FortiClient KB ID 0001804

Problem

I don’t know if its’ just bad coding, or an attempt at security, but the fact that the ‘uninstall’ option is missing from add remove programs for the FortiClient is a bit annoying.

Remove FortiClient Solution

While attempting to remedy this I came across the following command, which is supposed to remove the client software, which it did NOT do, but it did give me the option to uninstall back again.

[box]

wmic product where "name like 'Forti%%'" call uninstall /nointeractive

[/box]

Now we can uninstall.

Related Articles, References, Credits, or External Links

NA

Upgrade Server 2012 (In Place)

Upgrade Server 2012 KB ID 0001802

Server 2012 End Of Life

Windows Server 2012 (and Windows Server 2012 R2) will go end of life on October 10th 2023. Start planning to migrate your productions workloads off this platform as soon as you can.

I’ve mentioned before on the site, I’m not a fan of ‘in place’ upgrades, you get to migrate all the ‘broken bits’ (that you didn’t realise were broken), and if the process goes wrong, best case scenario is you are going to be restoring from backup.

What can I upgrade to? Well essentially, your target is to upgrade to Server 2019 , (not Server 2022 that’s not supported).

Upgrade Server 2012 Pre Requisites

Licenses: Just because you’re legally running Server 2012 does not mean you can upgrade to Server 2019, unless you have  software assurance. If you’re wondering if you have software assurance you probably do not (typically you buy it on a three year deal with the option to extend it to five years, and it’s VERY expensive). So if you dont know, you probably DONT have the software assurance. So you will need to purchase a new agreement, or buy new retail copies of Server 2019.

You will require a Windows Key for the new server (or KMS services setting up that will allocate a Server 2019 key to the newly upgraded server.)

CALs/SALs (Chances are you WONT have SALs, but if you do then speak to your MSP). You will need the correct amount of user/device CALS for server 2019 before you start your upgrade.

Backup Support: Does your backup solution support server 2019? 

Application Support: Does your AV Software, Endpoint protection solution, or Managed Detection and Response system support Server 2019? Make sure you check this list for Microsoft application support, and ensure any third party applications are supported with the vendor.*

*I cannot stress this enough, I work for a major MSP, and most clients are astounded when we wont simply upgrade their old server(s) from 2012, because we simply cannot guarantee that THEIR applications will work successfully on a newer version of Windows Server.

Hardware Support: Most servers are virtual these days, so this is less of an issue, but the machine/VM being upgraded needs to meet the minimum hardware requirements for server 2019.

Updates: MAKE SURE your existing 2012 server is up to date, (and the applications are patched as much as possible!)

Maintenance Window: During the upgrade the server will be offline to users, this will be for as long as a normal OS install, but you will need to plan in additional time for testing applications (post OS upgrade), then programming in any maintenance timings, and arranging and planning any CAB.

Snapshot: If you’re running in a virtual environment, then carry out a snapshot, (or Checkpoint if you are running Hyper-V).

Backup: Before even entertaining the idea of updating the server, make sure you have a good backup. I would make sure I could restore from backup successfully before even attempting an in place upgrade on a production server running 2012/2012R2. In fact if your risk averse, upgrade the restored server itself!

WARNING: Make sure the media you use to upgrade is up to date. While Windows server has a mainstream support date of 9th January 2024, some earlier versions may not be supported. ENSURE you are using build number 1809 Long-Term Servicing Channel (LTSC) or newer.

If you are in doubt about any role or application that may not work (post in place upgrade), then clone your machine, and test the upgrade on an isolated network to test the procedure beforehand.

Upgrade Server 2012 (Domain Controllers)

Other posts say this is not possible, but that is not true, (with some caveats). But it’s so much easier to build a new member server with server 2019/2022 and then extend the forest and domain, promote the new server to be a DC, and demote the old server(s). 

If you attempt to in place upgrade a 2012 server Windows MAY stop an in place upgrade with the following error;

Active Directory on this server does not contain Windows Server ADPREP / FORESTPREP updates.

Which makes sense (if you’ve ever done any domain upgrades or migrations). Before a 2019 DC can be introduced into a domain the forest and domain need to be prepared, (the schema extended). You can either (on this or another DC) run adprep.exe / forestprep and adprep.exe /domainprep from the 2019 install media (look in the support/adprep folder).  

Note: Make sure you’re logged in as a member of the schema admins group!

Obviously if you’ve already ran forest prep and adprep and already have 2019 domain controllers this error will not appear and the server will simply update.

Upgrade Server 2012 (Exchange Server)

NO ! Just don’t do this. Exchange on-premises is designed to be ‘swing migrated‘ to a newer version. If you need to do this then PeteNetLive is littered with upgrade run through even if you are on older versions of Exchange.

Migrate Exchange 2010 to Exchange 2016 (& 2013)

Exchange 2019 Migration from Exchange 2016 (&2013)

Upgrade Server 2012 (SQL Server)

We are in murky waters here! Server 2019 (at time of writing) does not support anything OLDER than SQL 2014. So you may need to upgrade your SQL instances before you consider upgrading the OS. Every single time I’ve ever replaced a SQL server (and I’ve been doing this for over 20 years now) I’ve built a new one, migrated the databases and then the application vendor has installed ‘whatever‘ application or website that required the database.

Also Server 2019/2022 have particular SQL CU level requirements!

If some SQL Jedi walks in here I’d welcome any comments below. But for me it’s a No!

Upgrade Server 2012 / 2012 R2 to Server 2019 (In Place)

By this point you’re adamant you DON’T want to build a new server and migrate your apps and data, and you’ve understood all the pre-requisites and warnings above.

Before starting, Microsoft recommend that you gather some information, run the following commands and take the information dumped into text files and put them safely elsewhere.

[box]

Systeminfo.exe >> SystemInfo.txt
ipconfig /all >> IPConfig

[/box]

Then take a copy of the contents of the following two registry values;

[box]

HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\BuildLabEx

HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\EditionID

[/box]

Note: I lost the will to live trying to work out how to dump those two values into a text file with PowerShell 5.1 (there’s a challenge for you!)

Present the Server 2019 Install to your 2012 server, locate and run setup.exe.

It will ask to check for update let it do so  > Next.

If you are installing a ‘retail’ version of Windows server, at this point it will ask of the licence key > 

Call me an  old traditionalist, I require a graphical user interface > Next.

I believe that someone at Microsoft should be made to read one of these out loud for EVERY copy of Windows it sells, seriously they could put anything in here. Now that your firstborns soul belongs to Microsoft > Accept.

The whole point is to retain our data! > Next.

It will now run through its pre-flight checks, pull down any updates and make sure it’s happy. When finished it will warn you if there’s any potential problems. Here it’s complaining about my monitor driver, (probably because it’s using the Window update download one, and not the VMware tools one to be fair). I know this wont cause me any problems, I can click Confirm > 

Last chance to bail out! Install.

One hour and twenty five minutes later,

In Place Upgrade of Server 2012 Running Certificate Services

Can you do this? Yes – Even if you have a multi-tier PKI deployment. see here

 

Related Articles, References, Credits, or External Links

In Place Upgrade Windows 2016 to Windows 2019

Windows Update Error 80072EFE

 80072EFE Error KB ID 0001801

Problem

Seen on versions of Windows built from ‘older’ versions of the install media, when attempting to check for updates you may see.

Error(s) food:

Code 80072EFE Windows update ran into a problem

80072EFE Update Error Resolution

At first (because it was a newly build machine.) I thought the problem was incorrect Time zone, Time, or Locale.

But thats NOT the problem, you’re stuck in a ‘catch 22′, where the update components need to update, but they can’t update, because the update components are too old! So to fix the problem you need to manually update them. Search for and install KB2937636.

Then reboot the server, and attempt updating again.

Related Articles, References, Credits, or External Links

NA