Courtenay Bernier Infrastructure Blog

Bringing you detailed information around System Center, Windows Server, and Windows Azure

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

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

  • Comments 12
  • Likes

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
  • Great tip, thanks Courtenay!!!

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

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

  • Awesome! Simple and Easy...

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

Your comment has been posted.   Close
Thank you, your comment requires moderation so it may take a while to appear.   Close
Leave a Comment