VMware P2V | Conversion from Physical Machines to VMs with vCenter Converter

In this stepwise guide, we will talk about the stepwise process for converting bare-metal, physical Windows Server to a VM. Here, we will perform hot cloning remotely, which is virtualizing switched on physical machines. Also, we are going to show our readers some problems that they can face while performing this task. So, you will even find various solutions to fix these annoying issues. Before we move further with the stepwise guide, you will know about certain aspects associated with the VMware P2V conversion. So, let’s begin without further ado!

PS: Here, you will learn more about the top best open-source firewalls and VMware vSphere Hypervisor, as well as a full guide on VMware vCenter Converter

Part 1: Why do you need to go with P2V?

Firstly, users need to know that P2V stands for ‘Physical to Virtual.’ This kind of conversion duplicates over the applications, data, operating system from a current physical server to a virtual server.

Here, virtualization enables users to reduce their server room necessities dramatically by segmenting the legacy hardware. A virtual machine makes a sys admin’s work easier and is hardware agnostic. It makes disaster recovery and backups more reliable and easier. If you come across any hardware catastrophe, then you get the virtual machine running on different hardware pieces with negligible or zero downtime. On the other hand, fewer data center space, lesser power consumption, less hardware for repairing and maintaining – all these things reduce costs dramatically. So, it is time you should go with VMware P2V conversion!

Also, click here to know more about VMware vMotion.

Part 2: What all do you require?

There are certain things that you need before going with the VMware P2V conversion. So, let’s have a look at the things you need.

1. Physical machine

First of all, users will need a physical machine, which they would like to adapt to a virtual machine. It could be any bare-metal, physical Windows Server that they like to virtualize.

2. Virtual Infrastructure

Secondly, users need a VMware infrastructure, such as VMware vSphere Hypervisor (ESXi 6.0). They have to install this software on their machines. This program is available for free, which can be downloaded from the official website of VMware. All they need to do is to register on the website by creating a VMware account. It is recommended to install the recent version available.

3. VMware vCenter Converter

Users can go with VMware vCenter Converter Standalone, which is a no-cost tool for converting physical and virtual servers to VMware VMs. One can download this amazing program from the VMware official website. With this program also, you have to install the latest VMware P2V vCenter Converter version.

Before you commence further with VMware P2V conversion, you have to keep certain significant points in mind. These important points are as follows:

  • VMware P2V features a downtime that lasts for several minutes. So, it is best to inform the users prior to making the conversion.
  • One should employ synchronization. (Know about this point later on in the step-by-step guide)
    • Before synchronizing, you must stop all the important services.
    • Synchronization takes place always at the conversion procedure’s end.
    • Make usage of scheduled synchronization.
    • Ensure that you don’t choose ‘Perform Final Synchronization‘ when asked in this stepwise guide for VMware P2V conversion.
    • One’s downtime must be coarsely the synchronization’s duration.

Part 3: How to perform VMware P2V Conversion

In this guide, you will know how to perform VMware P2V conversion step by step. It is easier to carry out VMware P2V conversion using VMware vCenter Converter. So, let’s have a look at some simple steps to perform this complex task.

Step 1: Install VMware vCenter Converter

Firstly, users need to download and install VMware vCenter Converter Standalone on their workstations, which are connected to their network. Here, it is not necessary to download this program on the server that you want to migrate. So, install this program on any system that is linked to that network. After installing this VMware P2V converter, launch the same.

Step 2: Tap on ‘Convert Machine’

Next, users have to choose the ‘Convert Machine‘ option from the home interface.

Step 3: Choose ‘Powered-on Machine’

Here, we are migrating switched-on physical machines, so choose ‘Powered-on Machine‘ in the section ‘Select Source Type.’ If you have installed VMware vCenter Converter on another server than the server you like to migrate, choose ‘A Remote Machine.’

After this, put in the name or IP address for the physical server. Then, enter your user ID and password for connecting to the physical server. Here, the username will be in the format as domain\username, or it could be as username@domain. Employ an account that features all administrator rights on your remote system. If you are using a Windows physical machine, you need to choose the operating system family as ‘Windows.’ Once done, hit ‘Next.’

Step 4: Install the agent

VMware vCenter Converter requires installing an agent on the physical server momentarily. The program will install it automatically. After carrying out a successful migration, users can agree to remove the agent automatically.

On coming up of a dialog box, choose ‘Automatically uninstall the files when import succeeds.’ Then, tap on ‘Yes‘ and wait for the program to deploy this manager.

Step 5: Resolve the issue

Users who do not face any error, they can move onto Step 6. If you come across an error such as “Error 1219: Multiple connections to a server or shared resource by the same user, using more than one user name, are not allowed” or “Unable to complete Converter agent installation on . . .“, then you have to fix it. For fixing this problem, go through the following steps.

  • Disconnect all the network drives from the current system to the server. For this, navigate to ‘This PC/My Computer‘ and look for charted network drives to the server. On finding one, you need to disconnect them.
  • Next, log into your physical machine and then disconnect remote drives, if any. For this, run a command as ‘net use\\*/delete‘ in the command prompt tab.
  • Close all applications that have a connection with the server.
  • Now, close every Windows Explorer window featuring files from the server.
  • Even close all the server’s Microsoft Management Console (MMC) snap-ins on that server you try to convert.

After going through the above steps, you need to carry out the steps from 2-5 again. In case you come across any error again, then reboot your system, where you have installed VMware P2VvCenter Converter.

Step 6: Communicate with the setup

Now, VMware P2V vCenter Converter will be connected to the physical server successfully. So, communicate with the setup of VMware now. If you have the VMware vSphere Hypervisor ESXi 6.0 host, you will convert your physical machine to a virtual machine running on that ESXi host.

Next, select the ‘VMware Infrastructure virtual machine‘ option from the list ‘Select Destination Type.’ Here, ESXi is the VMware environment or infrastructure; that’s the reason you have to select this option.

Now, put in the IP address of your server under the ‘Server‘ tab. Also, enter your User ID and Password. Users who like to pass their data traffic through their PC having the VMware P2VConverter, they can select the box ‘Use Proxy Mode.’ If you do not want to, then leave the tab ‘Use Proxy Mode‘ unchecked and hit ‘Next.’

Step 7: Tap on ‘Next’

The system has connected to the ESXi server now. Provide the name that you like for the virtual machine. Once done, select the ‘Next‘ option.

Step 8: Select the location

Now, select the destination place for the virtual machine on the page ‘Destination Location.’ Here, users can even specify their virtual machine’s version. You can choose the latest version available. However, choosing the latest version is not always a great idea. Choose a version depending on your compatibility requirements and existing environment.

Step 9: Specify your options

At this point, users will specify the ‘Options‘ that they like for their new virtual machine. They can modify settings for CPUs RAM, recent drives, and so on. You can even leave all things as default if you prefer. Otherwise, make changes in settings like synchronization options, disk sizes, etc.

Note: If users modify the drive’s sizes, they would not be allowed to switch on Synchronization. So, don’t change the size and leave it as default.

Stop services that run on your source machine–Users have to ensure that they don’t lose information from services that run on their source machine. One can choose the services that one likes to halt before VMware P2V Converter Standalone coordinates data among the destination machine and source machine. Thus, the services don’t produce data while destination and source machines are coordinated.

Choose ‘Services‘ and then select the tab ‘Source Services.’ For stopping a service before synchronization on your source machine, highlight that service and click the checkbox against ‘Stop.’

After that, users can postulate synchronization options.

such as post-conversion tabs under the tab ‘Post-conversion‘ and select ‘Install VMware Tools on the destination virtual machine.’ Once done, tap on ‘Next.’

Step 10: Tap on ‘Finish’

After reviewing the summary, ensure everything is fine and then, tap on ‘Finish.’

Step 11: Examine the status

Now, users will see that the procedure has been given and now will be in the ‘Running‘ status, which is going to take a few hours.

Step 12: Fix errors

Once the preliminary cloning finishes, you might receive an error throughout Synchronization. If users do not face any error, skip to the next step. If you come across an error like “Failed: Unable to create a VSS snapshot of the source volume(s). Error code: 2147754774 (0x80042316).” This kind of error occurs when various providers are linked to the same operating system. You will find a solution for resolving these errors in the following steps.

Step 13:Enter “vssadmin list providers”

After logging into the physical server, run cmd.exe, enter ‘vssadmin list providers‘, and press Enter.

If two providers are linked to VSS, you need to eliminate one. Once the harmonization is done, you can add back the removed provider to VSS.

Step 14: Press ‘Enter’

For removing this VSS provider, you require editing the registry. Under the cmd tab, enter ‘regedit‘ and press Enter.

Next, go to ‘HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\VSS\Providers‘. Users will come across two providers.

Now, choose a non-Microsoft provider and tap on ‘Export‘ after right-clicking on it.

Save the registry tab in a secure location and enter a filename. Next, select the button ‘Selected branch‘ and tap on ‘Save.’ Save the .reg file carefully and restore the deleted registry access by tapping on that .reg file.

After you have exported the tab, right-tap on the key and choose ‘Delete.’

Next, choose ‘Yes‘ and reboot the physical server now.

Step 15: Choose ‘Synchronize’

After the server reboots, you need to right-tap on the failed function and choose ‘Synchronize.’

If you like to schedule or run it instantly, modify the Settings within the ‘Advanced Options‘ tab. Then, tap on ‘Next‘ and lastly, on ‘Finish.’

The synchronization task will begin, and for seeing individual operations, choose ‘Tasks‘ from the dropdown ‘View by.’

Step 16: VM is ready

Now, synchronization is done, and your virtual machine must be ready.

After this, log into the vSphere (ESXi) server.

Here, you will find that your virtual machine has come upon the record.

Step 17: Select ‘Edit Settings’

However, you should not power on the virtual machine yet. Right-tap on that VM and select ‘Edit Settings.’

Under the tab ‘Hardware,’ select ‘Network Adapter‘ and turn off the toggle against ‘Connect at power on.’ It is going to prevent conflicts in the current physical server and network.

Step 18: Start the machine

Now, you can start the virtual machine. The system will boot up if everything goes well. Examine for any absent driver and see if all things are operational. After this, one can proceed for turning off the physical server while you’re not connected. Switch off the virtual machine and visit ‘Settings.’ Now, connect back to the network adapter and turn on the virtual machine.

Ensure that the physical machine is turned off before you switch on the virtual machine along with the network card associated. Modify the VM’s IP address to one of the physical one.

Step 19: Tap on ‘Yes’

If you have faced an error, as mentioned in Step 12, you need to perform this step. Else, you can skip to the next step. In the virtual machine, go to the site, where you have saved the exported .reg file. Next, double-tap on it and select ‘Yes‘ when asked to add details to the archive.

Step 20: Test your applications

Lastly, move ahead and examine all of your apps. Now, you have migrated your physical server to the virtual machine carefully.

So, this is a procedure for converting a physical machine into a virtual one. Now, you can convert your physical server into a virtual system using VMware P2V vCenter Converter. So, go for it and enjoy a virtual experience!


Related Articles

Back to top button