By Keith Mayer | Article Rating: |
|
September 19, 2012 10:00 AM EDT | Reads: |
1,800 |

Hyper-V Server 2012 is Microsoft's completely free type-1 hypervisor product. Unlike some other competing free hypervisors, Hyper-V Server 2012 has the same virtualization scale and availability features as the Hyper-V role in licensed editions of Windows Server 2012, but it's optimized for running only the Hyper-V hypervisor on bare metal. It's a great solution when you're looking to deploy dedicated hypervisor hosts within your shop. The result? An enterprise-scale type-1 hypervisor for FREE! You can get more details on Hyper-V Server 2012 here.
Recently, I was involved in a project that was migrating from Hyper-V Server 2008 R2 to Hyper-V Server 2012. Due to architectural changes involved in implementing the new features in Hyper-V Server 2012, a direct in-place upgrade is not possible. However, the across-the-wire migration process we used below was straight-forward and worked very well. A ton of work has been done by the product team on improving the virtual machine export/import process, and we definitely saw this area shine during our project. Here's the migration steps we used:
Preparation Steps for New Target Hyper-V Server 2012
- Install and configure a new Hyper-V Server 2012 box.
- Set up the same Virtual Networks as the source host in Hyper-V Manager using the "Virtual Switch Manager" host action.
Migration Steps for Existing Source Hyper-V Server 2008 R2
- Backup the original source Hyper-V Server 2008 R2 server as a precaution. We won't be making any changes to this box during the migration, but it never hurts to be safe! :-)
- Shutdown running virtual machines on original source Hyper-V Server 2008 R2 server.
- Review each virtual machine for snapshots - any snapshots taken of a running virtual machine should be merged by using the "Delete Snapshot ..." guest action in Hyper-V Manager. Snapshots of running VM's are not supported for migration due to hardware and software architectural differences on the source and target servers.
- Review each virtual machine and ensure that any Saved States are removed using the "Delete Saved State ..." guest action in Hyper-V Manager. Saved states of VM's are not supported for migration due to hardware and software architectural differences on the source and target servers.
Important! If there are important changes saved in a VM's saved state that you wish to capture, start and gracefully shutdown the VM rather than simply deleting it's saved state.
- Set the MAC address option in the settings of each VM to "Static" prior to migrating. This allows the guest OS to maintain a fixed relationship between virtual NIC and MAC address even after migrating to the target Hyper-V Server 2012 server and prevents you from needing to potentially reconfigure virtual NICs post-migration.
- Export each VM using the "Export ..." action in Hyper-V Manager to an external storage location or network location that is reachable from both the new target Hyper-V Server 2012 box and your remote administration PC.
Migration Steps for New Target Hyper-V Server 2012
- Import each exported VM on the new target Hyper-V Server 2012 box using the "Import Virtual Machine ..." host action in Hyper-V Manager.
Important! When using the new Import Virtual Machine wizard, you will be prompted to "Register", "Restore", or "Copy" the virtual machine when importing. You will want to select the "Restore" option and confirm the path on the new Hyper-V host to which the VM will be restored.
- Review the settings of each imported VM using the "Settings ..." guest action in Hyper-V Manager. Hyper-V Server 2012 provides the ability to assign more virtual processors (up to 64 per VM), more virtual memory (up to 1TB per VM) and new virtual hardware options, such as Virtual Fiber Channel HBAs and network offloading/security. For some VMs, you may wish to take advantage of these new capabilities by adding virtual hardware resources.
- Start each VM using the "Start" guest action in Hyper-V Manager to confirm that the VM starts successfully.
- Connect to the console of each VM using the "Connect ..." guest action in Hyper-V Manager to confirm successful guest OS boot.
- Login at the console of each VM and confirm that all services have started
- Update the Hyper-V Integration Services for each VM by using the "Action -> Insert Integration Services Setup Disk" option on the menu bar of each Virtual Machine Connection window.
Rinse and Repeat ...
If you have multiple Hyper-V Server 2008 R2 hosts that you are migrating, you can perform this same set of migration steps for each host - one at a time - and, after each host is migrated, rebuild the old source host as a new Hyper-V Server 2012 box for migrating the VMs from your next Hyper-V Server 2008 R2 machine.
What If I'm Migrating from VMware?
If you're migrating VM's from a VMware host, rather than using the middle set of migration steps for exporting VMs, you can instead use the new FREE Microsoft Virtual Machine Converter solution accelerator tool. This tool provides a streamlined conversion process that accomplishes the following tasks in the migration process:
- Converts and deploys virtual machines from VMware hosts to Hyper-V hosts. As part of the machine conversion MVMC converts the virtual disks attached to the source virtual machine. It also migrates configuration such as memory, virtual processor and so on from the source virtual machine to the converted virtual machine deployed on Hyper-V. It adds virtual network interface cards (NICs) to the converted virtual machine on Hyper-V.
- Supports conversion of virtual machines from VMware vSphere 4.1 and 5.0 hosts to Hyper-V.
- Note: MVMC also supports conversion of virtual machines from VMware vSphere 4.0 if the host is managed by vCenter 4.1 or vCenter 5.0. You have to connect to vCenter 4.1 or 5.0 through MVMC to convert virtual machines on vSphere 4.0.
- Supports conversion of virtual machines from VMware vSphere 4.1 and 5.0 hosts to Hyper-V.
- Converts VMware virtual disks to Hyper-V based virtual hard disks (VHDs).
- Uninstalls VMware tools prior to conversion to provide a clean way to migrate VMware-based virtual machines to Hyper-V.
- Installs Hyper-V Integration Services on the converted virtual machine if the guest operating system is Windows Server 2003 SP2.
- Has a wizard-driven GUI, making it simple to perform virtual machine conversion.
- Offers fully scriptable command-line interfaces for performing virtual machine and disk conversions that integrates well with data center automation workflows and Windows PowerShell scripts.
Share Your Migration Tips!
These steps have worked well for me in migrating to Hyper-V Server 2012, but please feel free to share your migration tips in the comments below if you've migrated differently so that we can grow our set of migration "best practices" together.
Hope this helps!
Keith
Published September 19, 2012 Reads 1,800
Copyright © 2012 SYS-CON Media, Inc. — All Rights Reserved.
Syndicated stories and blog feeds, all rights reserved by the author.
More Stories By Keith Mayer
Keith Mayer is a Technical Evangelist at Microsoft focused on Windows Infrastructure, Data Center Virtualization, Systems Management and Private Cloud. Keith has over 17 years of experience as a technical leader of complex IT projects, in diverse roles, such as Network Engineer, IT Manager, Technical Instructor and Consultant. He has consulted and trained thousands of IT professionals worldwide on the design and implementation of enterprise technology solutions.
Keith is currently certified on several Microsoft technologies, including System Center, Hyper-V, Windows, Windows Server, SharePoint and Exchange. He also holds other industry certifications from IBM, Cisco, Citrix, HP, CheckPoint, CompTIA and Interwoven.
Keith is the author of the IT Pros ROCK! Blog on Microsoft TechNet, voted as one of the Top 50 "Must Read" IT Blogs.
Keith also manages the Windows Server 2012 "Early Experts" Challenge - a FREE online study group for IT Pros interested in studying and preparing for certification on Windows Server 2012. Join us and become the next "Early Expert"!
- Cloud People: A Who's Who of Cloud Computing
- Network Add-Ons for Web Traffic and Cloud Technology
- Cloud Expo: Reaching China with Your Website & Cloud Application
- Enterprise Java EE PaaS - OpenShift vs Google App Engine for Java
- Acer America introduces Aspire S7 Series, the World's Thinnest Touch Ultrabooks
- Cloud Brings Foreign IT Spending to U.S.
- Big Data – Business Value
- Lessons Learned from Real-World Big Data Implementations
- Day 3 Keynote at Cloud Expo Silicon Valley | Cloud Apps: Assembly Required
- Workday Discloses Its Financials Ahead of IPO
- Why Your Analytics Should Be Hosted
- Red Hat Wants to Decaffeinate JBossAS
- Cloud People: A Who's Who of Cloud Computing
- Eleven Reasons Why Windows Phone Will Overtake Android
- Network Add-Ons for Web Traffic and Cloud Technology
- Know Your Road Map for IT Maturity in the Age of Cloud Computing
- Cloud Expo: Reaching China with Your Website & Cloud Application
- Enterprise Java EE PaaS - OpenShift vs Google App Engine for Java
- Acer America introduces Aspire S7 Series, the World's Thinnest Touch Ultrabooks
- The Human Factor in Cloud’s Next Big Thing
- Cloud Brings Foreign IT Spending to U.S.
- Big Data – Business Value
- Google Backs DocuSign
- Lessons Learned from Real-World Big Data Implementations
- Where Are RIA Technologies Headed in 2008?
- Personal Branding Checklist
- AJAXWorld 2006 West Power Panel with Google's Adam Bosworth
- The Top 250 Players in the Cloud Computing Ecosystem
- Why Microsoft Loves Google's Android
- Cloud People: A Who's Who of Cloud Computing
- Google's OpenSocial: A Technical Overview and Critique
- Wal-Mart To Sell $399 Ubuntu Linux-based Laptop with Google Operating System
- Cloud Expo New York Call for Papers Now Open
- i-Technology Blog: Google Trends on Java, McNealy, AJAX, and SOA Give Pause For Thought
- i-Technology Blog: Is There Life Beyond Google?
- Android: Who Hates Google Over the Phone?