...
- I m using 2 machines:
-management server = 192.168.146.211
-host = 192.168.146.212 - in my host i have created a directory : /var/www/repo/img
- in this "img" directory, i put all my qcow2, vmdk, iso files, or whatever you need
- it is important to correctly add the extensions to each files, for example a qcow2 must be named "myFile.qcow2"
- I cd in this img directory, and enter "python -m SimpleHTTPServer 443" => This exposes the contents of my "img" directory on the port 443, as a simple http server (as the command lets it guess!)
- now, I can access this content on my web browser: _http://192.168.146.212:443_Image Removed
- since it is a local repo, i have to fill in the global settings of CloudStack: "secstorage.allowed.internal.sites" to value "192.168.146.0/24" (since this is my CIDR here)
- I now just have to go to the template tab, select "create template" or "create iso" according to my need
- as URL I enter: _http://192.168.146.212:443/myFile.qcow2_ andImage Removed fill in the other fields correctly, validate and it should download!
...
{"serverDuration": 139, "requestCorrelationId": "2130303b1ea48626"}