Migration from physical to virtual servers explained

Migration from physical to virtual servers explained

Edward L. Haletky, Contributor
Physical-to-virtual server migration is not black magic. To migrate to a virtual server, you copy the bits residing on a physical disk to a virtual disk, inject some drivers, and modify some other bits to support those drivers.

Sound simple? The challenge is in knowing how to perform a physical-to-virtual (P2V) server migration -- or, more to the point, when.

For some versions of Windows operating systems and some virtual server migration tools, it is possible to run a conversion while the physical host is running. Other tools require the host to be powered off and booted off special media , such as CD-ROM or iSCSI Initiator. I would allow for some downtime for this, just in case your operating system can't perform a live P2V migration. It is critical to always plan for possible downtime.

In either case, the process is the same:

  1. For each local physical disk, first read the physical disk dimensions and used space by file system. Then, set the virtual disk file system dimensions, which cannot be less than the used space but can be less than the physical file system dimensions.


  2. Create the virtual machine configuration, including the VM name (different than the physical machine name), the network connections, the number of virtual CPUs and the amount of memory to assign to the virtual machine.


  3. Customize the IP address and other items as necessary using tools such as Sysprep that are embedded into the virtual server

    Requires Free Membership to View

    When you register, my team of editors will also send you the latest expert resources covering all areas of server virtualization, such as platforms, architectures and strategies, server hardware, managing virtual environments, application issues and more.

    Cathleen A. Gagne, Senior Editorial Director

    By submitting your registration information to SearchServerVirtualization.com you agree to receive email communications from TechTarget and TechTarget partners. We encourage you to read our Privacy Policy which contains important disclosures about how we collect and use your registration and other information. If you reside outside of the United States, by submitting this registration information you consent to having your personal data transferred to and processed in the United States. Your use of SearchServerVirtualization.com is governed by our Terms of Use. You may contact us at webmaster@TechTarget.com.

  1. migration tool.


  2. Copy the bits from one file system to the target file system on a virtual disk.


  3. Inject the appropriate drivers into the guest operating system for the devices now in use. In general, these will be the necessary SCSI and networking drivers. In many cases, this is just a reassignment of how to access the disk.


  4. Reboot the VM.

Now you're done with the steps for within the virtual server migration toolkit. But there are still some necessary administration steps.

  1. Setup the IP address within the VM if not already done.


  2. Install VMware Tools if using VMware, XenTools if using Xen, etc.


  3. Test the application within the VM.


  4. When ready, power down the physical server and move the VM to a live network.

Voila! You have just learned how to migrate to a virtual server.

While a P2V migration is not necessarily difficult, it is important to fully understand the operating system you are converting because such migrations sometimes transfer all the bits but fail to boot. Usually, this is due to a driver issue that can easily be fixed by booting from operating system rescue media.

Edward L. Haletky is the author of VMware ESX Server in the Enterprise: Planning and Securing Virtualization Servers. He recently left Hewlett-Packard Co., where he worked on the virtualization, Linux and high-performance computing teams. Haletky owns AstroArch Consulting Inc. and is a champion and moderator for the VMware Communities Forums.


This was first published in November 2009

Disclaimer: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.