Chris, If you intend to boot from this VHD, it should be set as ROOT type.
If you add a template through cloudstack UI or api - registerTemplate, it is set as type ROOT.
If you use createTemplate, it will create a template from ROOT disk of existing VMs ROOT disk.
If you are using "upload volume", then its going to be a DATA disk. Try posting on [email protected] for better answer. Regards ilya On 6/24/14, 10:36 PM, chris wrote:
I'm trying to use the .NET SDK to upload a bootable VHD to eventually use to deploy a VM. I assume the correct sequence is upload > create template > deploy VM. However, when I upload a volume, there seems to be no way to make that volume bootable (it's has the type DATADISK). Using it to create a template once it's uploaded does not work. An error is thrown stating that that image cannot be used to create a template. I've also tried registering a template, using a URL to the VHD file I want to upload in the process. Unfortunately, nothing seems to happen when I try that. Going through this process also makes me wonder what the difference of createTemplate & registerTemplate are. I get "create", but there's no way to register a created template. If "register" creates one, why bother with "create"? I feel like I'm missing something obvious when failing at this process :)
