24 Juli 2012 6:43
Using a trial account I tried to upload a Linux vhd file (approx. 10 GB) to a container (vhds) that I assume is being created on the fly (?):
"C:\Program Files\Microsoft SDKs\Windows Azure\.NET SDK\2012-06\bin>csupload Add-PersistentVMImage -Destination "https://coutinho.blob.core.windows.net/vhds/test.vhd" -LiteralPath C:\Users\kvandenberg\Documents\test.vhd -Label Test -OS Linux"
The upload seems to complete ok, but then:
"Registering the image 'test.vhd' with repository.
The VHD https://coutinho.blob.core.windows.net/vhds/test.vhd has an unsupported virtual size of 10191437824 bytes. The size must be a whole number (in MBs)."
What's the problem? I didn't find mention of this error anywhere.
24 Juli 2012 9:46
according to the error message your VHD image is 9719.3125MB, where Azure expects a whole number size (so at least 9720MB in your case). And we're re talking size if the virtual disk, not the plain file size of the uploaded vhd.
Not sure how you created the image, but you should use some tool to resize the virtual disk, e.g. using Hyper-V tools and set the size to 10GB or so before uploading the image again.
- Ditandai sebagai Jawaban oleh Arwind - MSFTModerator 30 Juli 2012 9:05
24 Juli 2012 12:52
Thanks for your answer, which suggests a very straightforward solution :). I'm not running Hyper-V and used the freeware StarWind Converter to perform a vmdk-to-vhd conversion. This tool doesn't allow to set the file size of the vhd, so I found and used vmToolkit's Vhd Resizer to resize the vhd to 9720 MB.
Just started to upload. Had to use the -Overwrite option, since csupload reports the presence of the image that failed to register.