none
P2V of GPT partition disk RRS feed

  • Question

  • I have just come to do a P2V of a server setup with a GPT partition table and discovered that the P2V tool on 2008 R2 VMM doesn't support conversion of GPT disks.

    MS article suggests two ways around this;

    http://blogs.technet.com/b/scvmm/archive/2012/05/15/kb-p2v-fails-with-gpt-partitions-in-system-center-virtual-machine-manager.aspx

    1) Use Disk2Vhd.exe tool to create the VHD files, create a new VM, link in the VHD files, then boot to the 2008 R2 DVD to repair it.

    I tried this and unsurprisingly it wouldn't boot straight off and it also wouldn't let me use the repair option when booting from the Virtual DVD (something about wrong version of Windows even though it was the correct version).

    2) Convert partition table type from GPT to MBR (which wipes all data), then restore the "data" from a backup.

    Crucially, it doesn't mention boot/system partitions. In fact, if you just want to convert a drive containing data for the purposes of P2V, you might as well just create the new VHD on the VM and restore the data directly into the VM.

    Note that the MS article on requirements on P2V neglects to mention that there are any issue with GPT partitions. Does it need updating?

    http://technet.microsoft.com/en-us/library/bb963740.aspx

    Has anyone uncounted this issue with GPT disks before? Or have any advice?

    Will this other option (I have come up with) work?

    Perform a Bare Metal Recovery backup of the system/boot partition, change the disk type to GPT (thereby wiping the OS from the server), then restore the OS from the BMR backup? Will be BMR backup set the partition type back to GPT? If not, will the OS handle the change in partition type?

    If it doesn't work, I could be left with no working version of the server (either physical or virtual).

    Looking ahead, as newer servers are fitted with EFI motherboards and with 2008 R2 defaulting to GPT if it detects EFI, then this is surely going to be a increasing problem? Does 2012 default to GPT as well?

    Are there plans for future versions of Hyper-V VMs to support GPT disks (would presumably need to emulate the EFI type BIOS)? If not, will there be an approved method to P2V servers with GPT partitioned disks?

    Regards,

    Bruce.



    • Edited by Redbruce Monday, July 23, 2012 8:35 AM
    Monday, July 23, 2012 8:19 AM

Answers

  • This post is older than 30 days ..  Did this issue get resolved?  If so, please share with community how you resolved.  Otherwise, re-activate post if you still require assistance.  Forums are best effort support and so if you require assistance this more detailed I recommend opening a case with Microsoft Support.

    Mohamed Fawzi | http://fawzi.wordpress.com

    Saturday, October 13, 2012 1:52 PM
    Moderator

All replies

  • There are no workarounds for moving a Windows system with an EFI partition to non-EFI architecture. EFI and Itanium are in lockstep. Classic x86 and x64 cannot boot EFI, and there and is no simple switch back to MBR boot.

    Mohamed Fawzi | http://fawzi.wordpress.com

    Saturday, October 13, 2012 1:51 PM
    Moderator
  • This post is older than 30 days ..  Did this issue get resolved?  If so, please share with community how you resolved.  Otherwise, re-activate post if you still require assistance.  Forums are best effort support and so if you require assistance this more detailed I recommend opening a case with Microsoft Support.

    Mohamed Fawzi | http://fawzi.wordpress.com

    Saturday, October 13, 2012 1:52 PM
    Moderator
  • Does Microsoft intend to fix this?  I have the same issue - I cannot PtoV a server for the same reasons - GPT volumes.  Seriously needs attention!  The way we plan to work around this is to create a bare-metal backup of the server and then restoring to a VM - fortunately our backup software supports this.  But I think that MS and VMware need to address the GPT issue.

    I see that the 30 days have gone by and no-one has come up with a suitable answer.  This is not a good vibe.  We debated pulling the GPT volumes off of the server and doing the conversion using only the OS - which is on a MBR volume - then robo-copying back the data.  However, since this is a bit of a conundrum - we will attempt a bare-metal backup/restore.

    Perhaps you can find a backup software that enables you to do this as well!

    Monday, October 22, 2012 10:56 PM
  • One aspect to consider is Hyper-v does not have support for EFI or UEFI.  So P2Ving a boot volume would not work.
    Wednesday, December 5, 2012 4:29 AM
  • I'm in the same boat - need to P2V a server which has has boot partition that is on a GPT partition. I'm about to try the Disk2Vhd approach, and eventually maybe cloning the OS drive from the GPT drive (using Ghost or other cloning utilities from the 'Ultimate Boot CD' download) and restoring the clone to a VHD to see if that would do the trick.
    Friday, June 7, 2013 2:57 PM
  • I successfully did a P2V of a Windows 8.1 PC based on UEFI and GPT partitions using disk2vhd.

    However, what I realisedis that disk2vhd doesn't seemed to correctly copy the EFI System partition (ESP). The Generation 2 VM initially failed to boot with a UEFI error.

    By booting from an installation DVD ISO image and using the Repair/Recovery command window, I was able to run diskpart and realise that the ESP partition wasn't being correctly recognised as a FAT32 EFI partition and was instead showing a raw and unreadable.

    I corrected this by using diskpart to delete then recreate the EFI partiton using the 'create partition efi ..' command and format to fat32. I also recreated the MSR partition.

    To recreate the Boot Manager in the ESP, I assigned the volume a letter using diskpart, then still in the Recovery Console, used bootrec and bcdboot commands to create the Boot Manager and BCD store. I first though created the EFI directory structure manually. .. \EFI\Microsoft\Boot.

    Once the Boot Manager and BCD had been recreated, I ran BCDEDIT to check the BCD store inforamtion and that it was correctly targetting the Windows boot loader at c:\windows.

    Finaly, I used diskpart to remove the drive letter I'd assigned earlier (eg. z:), as the boot didn't seem to work with the drive letter. Once I'd removed the drive letter, the BCD information seemed to update automatically to replace the device entry of Partition=Z: with the harddrive\vol reference.  


    • Edited by SteveW43 Friday, January 31, 2014 10:01 AM
    Friday, January 31, 2014 10:00 AM
  • It works ! Royal pain in arse, but it is the fix. Thanks SteveW43 !
    Friday, October 3, 2014 1:53 AM
  • Hi

    I found a workaround, but you need a disk manager

    I converted P2V a domain controller Windows 2012 R2 using disk2vhd 2.01, the one that recognize Windows 2012

    I use Advanced Disk Manager. where I saw that the disk were create like GPT

    1. I copied the original disk and I presented both to DM, I erase one
    2. Initialized the disk and let it "MBR"
    3. I copied one to one every partition (same space and order BUT being "Primary" partition all)
    4. The only partition that I activated was where the \Windows directory reside.
    5. Try to boot, but not luck
    6. So I followed: https://blogs.technet.microsoft.com/jonjor/2011/10/04/vm-does-not-boot-following-p2v-or-disk2vhd/

    Voila! it Works!!I Hope this can help others!


    Héctor Ponce TechNet

    Wednesday, September 14, 2016 1:13 AM