Easily P2V Physical Windows Servers to VMs with NAKIVO

0

There are still businesses out there running physical workloads in their enterprise datacenters. This can be for various reasons. It could be due to some requirement for a phsyical server to plug some sort of interface into or some physical activation dongle. It could be due to some ultra high-end performance requirement that rules out any type of hypervisor running on the hardware. However, due to software upgrades, or other changes in the environment, you may have physical servers that could now potentially be P2V’ed into a virtual machine that would reap tremendous benefits over running on top of physical hardware. With the introduction of NAKIVO’s physical Windows Server backup support with NAKIVO Backup & Replication v9.0, you now have the ability to easily P2V physical Windows Servers to VMs. Let’s take a look and see how.

NAKIVO Backup Solution in Minutes

NAKIVO provides arguably one of the easiest backups solution deployments on the market today. With a simple deployment of an OVA template file, you can literally be up and running with a fully-functional backup appliance that is ready to start backing up your business-critical VMs. Pretty cool!

I really like this all-in-one solution for getting up and running quickly and certainly in edge environments, this helps to simplify the approach of BC/DR. Using the very standard and common OVA/OVF deployment process, you essentially pick the NAKIVO appliance and deploy it using settings you specify.

Deploying-the-NAKIVO-Backup-Replication-v9.0-appliance-in-VMware-vSphere Easily P2V Physical Windows Servers to VMs with NAKIVO
Deploying the NAKIVO Backup & Replication v9.0 appliance in VMware vSphere

After deploying the appliance, you simply need to configure the appliance name, IP address, and create your admin login to begin adding inventory.

Adding a Physical Windows Server to the NAKIVO Backup Inventory

The first step to performing a P2V operation of a phsical Windows Server to a virtual machine is to add the physical Windows Server to the NAKIVO Backup & Replication inventory. Adding the server to the NAKIVO inventory involves pointing the NAKIVO appliance to the physical Windows Server and installing a transporter agent on the physical Windows Server.

Choose Inventory > Physical servers

Adding-a-new-physical-server-in-NAKIVO-Backup-Replication-v9.0-inventory Easily P2V Physical Windows Servers to VMs with NAKIVO
Adding a new physical server in NAKIVO Backup & Replication v9.0 inventory

Add the new Microsoft Windows Servers by adding a display name, hostname or IP, and a username and password to authenticate to the Windows Server.

Add-new-Microsoft-Windows-Server-machine-in-the-physical-Windows-Server-backup Easily P2V Physical Windows Servers to VMs with NAKIVO
Add new Microsoft Windows Server machine in the physical Windows Server backup

The NAKIVO transporter agent begins installing.

The-NAKIVO-transporter-agent-is-installed-on-the-physical-Windows-Server Easily P2V Physical Windows Servers to VMs with NAKIVO
The NAKIVO transporter agent is installed on the physical Windows Server

After installation, the physical Windows Server will be listed in the Inventory of the NAKIVO appliance just like your vCenter Server, Hyper-V Cluster, etc.

The-Windows-Server-2019-physical-server-is-added-to-the-NAKIVO-inventory-for-backup Easily P2V Physical Windows Servers to VMs with NAKIVO

Now that the physical Windows Server is in NAKIVO inventory, we can create a Physical server backup job.

Create a New Physical Windows Server Backup

To perform the P2V operation, we need to get a good backup of the physical server. The backup of the physical server using NAKIVO captures a backup of the hard disk of the physical server. To P2V the server, you then restore the disk as a virtual disk export as we will see later. First, let’s create and run the backup job of the physical server. Navigate to Create > Physical server backup job.

Creating-a-new-physical-server-backup-job-in-NAKIVO Easily P2V Physical Windows Servers to VMs with NAKIVO
Creating a new physical server backup job in NAKIVO

This launches the New Backup Job Wizard for Physical server. This is a five step process to backup the physical server. The first step of the process is to choose the physical server from inventory that you want to create a backup job for. Below, we see the physical server that we have added to inventory. Place a checkbox next to the physical server in inventory.

New-Backup-Job-Wizard-for-Physical-Server-wizard Easily P2V Physical Windows Servers to VMs with NAKIVO
New Backup Job Wizard for Physical Server wizard

Choose the Destination for the backup of the physical server. This will default to the Onboard repository on the NAKIVO appliance.

Destination-for-new-backup-job-for-physical-server Easily P2V Physical Windows Servers to VMs with NAKIVO
Destination for new backup job for physical server

On step 3, you can Schedule to run the backup regularly if you want to capture backups for a time before P2V’ing the server.

Scheduling-the-new-backup-job-for-physical-Windows-Server Easily P2V Physical Windows Servers to VMs with NAKIVO
Scheduling the new backup job for physical Windows Server

On the Retention screen, select how many restore points you want to keep on disk for the server.

Retention-settings-for-physical-server-backup-job Easily P2V Physical Windows Servers to VMs with NAKIVO
Retention settings for physical server backup job

Finally, on the Options screen, there are several options that can be configured for the backup job. These include app-aware mode, change tracking, network acceleration, encryption, pre and post actions, truncating logs and data transfer bandwidth throttling.

Backup-job-for-physical-server-options-screen Easily P2V Physical Windows Servers to VMs with NAKIVO
Backup job for physical server options screen

Finally select either the Finish button (finishes creating the job but doesn’t run the job. Or, select the Finish & Run button that configures the job and automatically runs the job for the first time after configuring. You will see a job scope screen where you can choose to run all physical server jobs, or select the job you want to run. Here we are selecting the job we want to run. Place a check by the box. Click the Run button.

Finishing-the-new-backup-job-for-physical-server-and-running-the-job Easily P2V Physical Windows Servers to VMs with NAKIVO
Finishing the new backup job for physical server and running the job

The job will run and should finish successfully.

Backup-of-the-physicla-Windows-Server-is-successful Easily P2V Physical Windows Servers to VMs with NAKIVO
Backup of the physical Windows Server is successful

Now that we have a good backup of the physical server, we can export the physical server disk as a virtual disk that we can then use as the basis of our new virtual machine.

Easily P2V Physical Windows Servers to VMs with NAKIVO

Finally, we are at the point of P2V’ing the physical server to a virtual machine. There will be two parts to Easily P2V Physical Windows Servers to VMs with NAKIVO. This will include:

  • Exporting the physical disk as a virtual machine disk for use with the chosen hypervisor
  • Creating a new virtual machine in the hypervisor and using the exported virtual hard disk as the VM hard disk file

Exporting the Physical Windows Server Disk as a Virtual Disk

The export process of the physical disk is found under the Recover menu of the NAKIVO interface. Select Recover > Export Backups.

Beginning-the-restore-export-process-of-physical-server-with-NAKIVO-Backup-Replication-v9.0 Easily P2V Physical Windows Servers to VMs with NAKIVO
Beginning the restore export process of physical server with NAKIVO Backup & Replication v9.0

The Backup Export Wizard process begins. The first step is choosing the Backups to export. You will see the physical server backups you have listed to choose from.

Backup-Export-Wizard-part-1-Choosing-the-physical-server-backup-to-export Easily P2V Physical Windows Servers to VMs with NAKIVO
Backup Export Wizard part 1 – Choosing the physical server backup to export

Select the Disks that you want to export. If you have multiple disks on a physical server, you can choose to only export a subset of those disks if you want.

Select-the-physical-server-disks-to-export Easily P2V Physical Windows Servers to VMs with NAKIVO
Select the physical server disks to export

NAKIVO allows exporting in the format of VMDK, VHD, and VHDX.

Select-the-physical-disk-export-options-export-format Easily P2V Physical Windows Servers to VMs with NAKIVO
Select the physical disk export options export format

Choose the export folder you want to use. Since I am using the NAKIVO appliance, I am going to just export the files to a local folder on assigned Transporter.

Select-the-physical-disk-export-location Easily P2V Physical Windows Servers to VMs with NAKIVO
Select the physical disk export options export format

Be careful that the directory you choose has enough space. I first tried simply using the /tmp directory, however, this failed due to lack of disk space.

First-attempt-using-tmp-as-the-export-location Easily P2V Physical Windows Servers to VMs with NAKIVO
First attempt using tmp as the export location

Error in the Activities dashboard regarding a lack of space for the export.

Choose-an-export-location-with-enough-space-for-the-physical-disk-export Easily P2V Physical Windows Servers to VMs with NAKIVO
Choose an export location with enough space for the physical disk export

I decided to use the directory that houses the NAKIVO backup repository since I know it has plent of space. This is located in /opt/nakivo/repository/NakivoBackup/.

Choosing-the-NAKIVO-repository-directory-for-exporting-the-physical-disk-backup Easily P2V Physical Windows Servers to VMs with NAKIVO
Choosing the NAKIVO repository directory for exporting the physical disk backup

Finish out the wizard.

Finishing-the-physical-disk-export-after-choosing-the-export-location Easily P2V Physical Windows Servers to VMs with NAKIVO
Finishing the physical disk export after choosing the export location

The NAKIVO repository directory worked out just fine. As you can see, for VMware disk exports, you will see the resulting pair of VMDK files.

The-physical-server-backup-disk-is-exported-to-the-NAKIVO-repository-directory-as-a-VMDK-set Easily P2V Physical Windows Servers to VMs with NAKIVO
The physical server backup disk is exported to the NAKIVO repository directory as a VMDK set

I didn’t wan’t to have to double hop this to a workstation and then to the ESXi host. So, I simply scp’ed it from the NAKIVO appliance to the ESXi host directly. You can use the command:

scp -r <your local export folder> [email protected]<your ESXi IP/host>:/vmfs/volumes/<your datastore>

You will be prompted for a password for root on the ESXi host, and then the copy will begin.

Copying-over-the-exported-files-directly-from-the-NAKIVO-appliance-to-the-ESXi-host Easily P2V Physical Windows Servers to VMs with NAKIVO
Copying over the exported files directly from the NAKIVO appliance to the ESXi host

The exported VMDK files are successfully transferred over to the ESXi host.

Viewing-the-exported-physical-server-VMDK-on-the-ESXi-host-datastore Easily P2V Physical Windows Servers to VMs with NAKIVO
Viewing the exported physical server VMDK on the ESXi host datastore

Now, we can create a new virtual machine using the disk files.

Create a New Virtual Machine Using the Exported Physical Server Disk from NAKIVO

The final step of the journey to Easily P2V Physical Windows Servers to VMs with NAKIVO is creating a new virtual machine using the exported VMDK that was exported from the NAKIVO Recovery process. We copied over the exported disk to the ESXi host. Now we just need to create a virtual machine to use it.

Begin-the-New-Virtual-Machine-wizard-in-VMware Easily P2V Physical Windows Servers to VMs with NAKIVO
Begin the New Virtual Machine wizard in VMware

Normal VM wizard….choose the name and folder.

Choose-the-VM-name-and-folder-for-inventory-purposes Easily P2V Physical Windows Servers to VMs with NAKIVO
Choose the VM name and folder for inventory purposes

Select the host…

Select-the-compute-resource-for-the-new-VM-that-will-use-the-exported-disk Easily P2V Physical Windows Servers to VMs with NAKIVO
Select the compute resource for the new VM that will use the exported disk

Select storage…

Select-storage-for-the-new-virtual-machine-being-created Easily P2V Physical Windows Servers to VMs with NAKIVO
Select storage for the new virtual machine being created

Select compatibility…

Select-the-compatibility-for-the-new-VM Easily P2V Physical Windows Servers to VMs with NAKIVO
Select the compatibility for the new VM

On the Select a guest OS, be sure to match up the version of Windows you are exporting.

Select-the-guest-OS-to-match-the-exported-physical-server-disk Easily P2V Physical Windows Servers to VMs with NAKIVO
Select the guest OS to match the exported physical server disk

Now, for the rest of the P2V magic. Remove the default disk that is pending. Then select Add New Device > Existing Hard Disk.

Remove-the-default-hard-disk-and-choose-Add-Existing-hard-disk Easily P2V Physical Windows Servers to VMs with NAKIVO
Remove the default hard disk and choose Add Existing hard disk

Select the hard disk that was copied over from the export process.

Browse-and-select-the-exported-physical-disk-that-was-copied-over-to-the-ESXi-host Easily P2V Physical Windows Servers to VMs with NAKIVO
Browse and select the exported physical disk that was copied over to the ESXi host

The new disk is added and ready to be finalized.

Existing-hard-disk-has-been-added-to-the-VM Easily P2V Physical Windows Servers to VMs with NAKIVO
Existing hard disk has been added to the VM

Finish out the New Virtual Machine wizard with the added hard disk from the physical server export process from NAKIVO.

Ready-to-complete-adding-the-new-VM-with-the-existing-exported-physical-disk-from-NAKIVO Easily P2V Physical Windows Servers to VMs with NAKIVO
Ready to complete adding the new VM with the existing exported physical disk from NAKIVO

After hitting Finish, I was able to boot the new VMware VM and the server booted as expected!

The-exported-physical-server-disk-boots-as-expected-as-a-VMware-virtual-machine Easily P2V Physical Windows Servers to VMs with NAKIVO
The exported physical server disk boots as expected as a VMware virtual machine

Wrapping Up

The ability to Easily P2V Physical Windows Servers to VMs with NAKIVO Backup & Replication v9.0 is a great way that admins can possibly finish out P2V projects if they still have those pending, or opportunities that have developed to P2V servers that were once thought “un-P2V’able”. The new physical Windows Server backup capability found in NAKIVO Backup & Replication v9.0 is a great addition to the already feature-rich product. Be sure to check out a fully-featured trial version of the software if you want to test out the P2V capabilities in your own environment.