Backup Software

Easily P2V Physical Windows Servers to VMs with NAKIVO

A look at how to Easily P2V Physical Windows Servers to VMs with NAKIVO and the new features in NAKIVO Backup & Replication v9.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
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
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
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
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

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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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> root@<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
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
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
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
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
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
Select storage for the new virtual machine being created

Select compatibility…

Select-the-compatibility-for-the-new-VM
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
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
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
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
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
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
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.

Subscribe to VirtualizationHowto via Email 🔔

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Brandon Lee

Brandon Lee is the Senior Writer, Engineer and owner at Virtualizationhowto.com and has over two decades of experience in Information Technology. Having worked for numerous Fortune 500 companies as well as in various industries, Brandon has extensive experience in various IT segments and is a strong advocate for open source technologies. Brandon holds many industry certifications, loves the outdoors and spending time with family.

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.