shwstppr opened a new issue, #13067: URL: https://github.com/apache/cloudstack/issues/13067
### problem When importing a KVM VM via API and if a template is not specified, import fails with error, **Template is needed and unable to use default template for hypervisor KVM** Even though templateid parameter is specified as optional in the API documentation: https://cloudstack.apache.org/api/apidocs-4.22/apis/importUnmanagedInstance.html In UI, template is a required field though. <img width="1772" height="760" alt="Image" src="https://github.com/user-attachments/assets/006045ee-59bc-46b5-9d4e-5f57fbb020e3" /> Documentation doesn't talk about this restriction on KVM https://docs.cloudstack.apache.org/en/4.22.0.0/adminguide/virtual_machines/importing_unmanaging_vms.html This is more of a documentation issue if the following block can not be updated: https://github.com/apache/cloudstack/blob/4.22.0.0/server/src/main/java/org/apache/cloudstack/vm/UnmanagedVMsManagerImpl.java#L1605-L1607 ### versions 4.22; Maybe other versions as well Import VM ### The steps to reproduce the bug _No response_ ### What to do about it? Either update the documentation or remove the restriction to use default dummy template. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
