Converting Hyper-V .vhdx to .vhd file formats for use in Windows Azure


So you’ve implemented Hyper-V and are using the .vhdx VM file formats for your virtual machines and want to go to the next level and take those virtual machines and move them into Windows Azure.

There are a few methods to accomplish this task, however I find using PowerShell is the quickest method to convert a .vhdx to .vhd.

CONVERTING YOUR VMs

Open a PowerShell window on the server that houses your .vhdx files and execute the following command:

PS C:\> Convert-VHD –Path c:\test\MY-VM.vhdx –DestinationPath c:\test\MY-NEW-VM.vhd

Note: if you’re utilizing differencing disks you’ll want to merge the disks with their parent before converting and uploading to Windows Azure.

Here’s an example:

clip_image002

That’s it!

Now you’re ready to upload your VM to Windows Azure.

ADDITIONAL REFERENCES

Convert-VHD http://technet.microsoft.com/en-us/library/hh848454.aspx


Comments (16)

  1. Richard Artes says:

    Great tip, thanks Courtenay!!!

  2. Anonymous says:

    Pingback from Running MS Office Demo VMs in Azure | Solving SharePoint issues – Eric Schrader

  3. Great tip, thanks Courtenay!!! For more details please visit http://www.newsline77.com/

  4. Anonymous says:

    One of the benefits when working with Hyper-V and Windows Azure is the portability of Virtual Machines

  5. sandeep says:

    Thanks alot …this saves my life on production environment ….

  6. Lawrence Lozzano says:

    Awesome! Simple and Easy…

  7. aa says:

    Don't convert to some network location in example: \myserverc$ because you will get error.

  8. Anonymous says:

    Pingback from Uploader sa machine virtuelle sur Azure! – Mafyou’s blog

  9. Anonymous says:

    Pingback from Uploader sa machine virtuelle sur Azure! – Mafyou’s blog

  10. Anonymous says:

    Pingback from Uploader sa machine virtuelle sur Azure! – Mafyou’s blog

  11. Anonymous says:

    Pingback from Uploader sa machine virtuelle sur Azure! – Mafyou’s blog

  12. Anonymous says:

    Pingback from Uploader sa machine virtuelle sur Azure! – Mafyou’s blog

  13. Deepu J says:

    Hi Sir,

    Thank u so much for the tip

  14. Brajendra Kumar says:

    This was very useful for me…This is the best and easiest way I found. I am hopeful now that my VM snapshot can be used on AWS. Thank you very much for sharing this.

  15. Sakthivel Loganatahan says:

    Awesome! Simple and Easy…
    Thank you very much for sharing this..

  16. Anonymous says:

    Convert Hyper-V VHDX to VHD for use in Azure