Running the VM in Azure


#1

Has anyone been able to successfully run the VM in Azure? I believe I’m running into a problem with the VM Size at a 1MB boundary and Dynamic type according to this post:

https://disqus.com/home/discussion/thewindowsazureproductsite/create_and_upload_a_linux_vhd_in_windows_azure/

Relevant text: “Note that the OS disk must be a fixed-VHD and aligned to the 1MB boundary.”

The Azure download at http://manageiq.org/download/ for the Stable build seems to have the following characteristics (pulled from Get-VHD in Hyper-V):
VhdType : Dynamic
FileSize : 4184913920
Size : 45097156608
MinimumSize : 37582012416

Has anyone else run into this issue? Apologies if it’s somewhere else on the forum.

Thanks.


Vhd has an unsupported virtual size in Azure
#2

@simaishi can you review this question from @epennaz and forward to a SME if necessary.


#3

Hello @epennaz

When you use the PowerShell command as per the instruction in the download page, it converts the disk to Fixed and you should be able to create a VM from it.

How are you uploading the image to Azure?


#4

I was using the Azure CLI. Thanks @simaishi it looks like the cmdlet Add-AzureRmVhd does indeed take care of this.