Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
restructure cloud-image-templates.json
  • Loading branch information
sudo87 committed Jun 19, 2025
commit 0939c8c9a373702a5c3b64f27af36ca01dcb3c69
72 changes: 18 additions & 54 deletions ui/public/cloud-image-templates.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,145 +2,109 @@
{
"id": 1,
"name": "Ubuntu 24.04",
Comment thread
sudo87 marked this conversation as resolved.
"version": "24.04",
"distro": "Ubuntu",
"arch": "x86_64",
"filename": "ubuntu-24.04-server-cloudimg-amd64.img"
"url": "https://download.cloudstack.org/templates/cloud-images/ubuntu/ubuntu-24.04-server-cloudimg-amd64.img"
},
Comment thread
weizhouapache marked this conversation as resolved.
{
"id": 2,
"name": "Ubuntu 22.04",
"version": "22.04",
"distro": "Ubuntu",
"arch": "x86_64",
"filename": "ubuntu-22.04-server-cloudimg-amd64.img"
"url": "https://download.cloudstack.org/templates/cloud-images/ubuntu/ubuntu-22.04-server-cloudimg-amd64.img"
},
{
"id": 3,
"name": "Ubuntu 20.04",
"version": "20.04",
"distro": "Ubuntu",
"arch": "x86_64",
"filename": "ubuntu-20.04-server-cloudimg-amd64.img"
"url": "https://download.cloudstack.org/templates/cloud-images/ubuntu/ubuntu-20.04-server-cloudimg-amd64.img"
},
{
"id": 4,
"name": "Debian GNU/Linux 12 (64-bit)",
"version": "12",
"distro": "Debian",
"arch": "x86_64",
"filename": "debian-12-genericcloud-amd64.qcow2"
"url": "https://download.cloudstack.org/templates/cloud-images/debian/debian-12-genericcloud-amd64.qcow2"
},
{
"id": 5,
"name": "Rocky Linux 8",
"version": "8",
"distro": "Rockylinux",
"arch": "x86_64",
"filename": "Rocky-8-GenericCloud.latest.x86_64.qcow2"
"url": "https://download.cloudstack.org/templates/cloud-images/rockylinux/Rocky-8-GenericCloud.latest.x86_64.qcow2"
},
{
"id": 6,
"name": "Rocky Linux 9",
"version": "9",
"distro": "Rockylinux",
"arch": "x86_64",
"filename": "Rocky-9-GenericCloud.latest.x86_64.qcow2"
"url": "https://download.cloudstack.org/templates/cloud-images/rockylinux/Rocky-9-GenericCloud.latest.x86_64.qcow2"
},
{
"id": 7,
"name": "OpenSUSE 15.5",
"version": "15.5",
"distro": "OpenSUSE",
"arch": "x86_64",
"filename": "openSUSE-Leap-15.5-Minimal-VM.x86_64-Cloud.qcow2"
"url": "https://download.cloudstack.org/templates/cloud-images/opensuse/openSUSE-Leap-15.5-Minimal-VM.x86_64-Cloud.qcow2"
},
{
"id": 8,
"name": "Ubuntu 24.04",
"version": "24.04",
"distro": "Ubuntu",
"arch": "aarch64",
"filename": "ubuntu-24.04-server-cloudimg-arm64.img"
"url": "https://download.cloudstack.org/templates/cloud-images/ubuntu/ubuntu-24.04-server-cloudimg-arm64.img"
},
{
"id": 9,
"name": "Ubuntu 22.04",
"version": "22.04",
"distro": "Ubuntu",
"arch": "aarch64",
"filename": "ubuntu-22.04-server-cloudimg-arm64.img"
"url": "https://download.cloudstack.org/templates/cloud-images/ubuntu/ubuntu-22.04-server-cloudimg-arm64.img"
},
{
"id": 10,
"name": "Ubuntu 20.04",
"version": "20.04",
"distro": "Ubuntu",
"arch": "aarch64",
"filename": "ubuntu-20.04-server-cloudimg-arm64.img"
"url": "https://download.cloudstack.org/templates/cloud-images/ubuntu/ubuntu-20.04-server-cloudimg-arm64.img"
},
{
"id": 11,
"name": "Debian GNU/Linux 12 (64-bit)",
"version": "12",
"distro": "Debian",
"arch": "aarch64",
"filename": "debian-12-genericcloud-arm64.qcow2"
"url": "https://download.cloudstack.org/templates/cloud-images/debian/debian-12-genericcloud-arm64.qcow2"
},
{
"id": 12,
"name": "Rocky Linux 8",
"version": "8",
"distro": "Rockylinux",
"arch": "aarch64",
"filename": "Rocky-8-GenericCloud.latest.aarch64.qcow2"
"url": "https://download.cloudstack.org/templates/cloud-images/rockylinux/Rocky-8-GenericCloud.latest.aarch64.qcow2"
},
{
"id": 13,
"name": "Rocky Linux 9",
"version": "9",
"distro": "Rockylinux",
"arch": "aarch64",
"filename": "Rocky-9-GenericCloud.latest.aarch64.qcow2"
"url": "https://download.cloudstack.org/templates/cloud-images/rockylinux/Rocky-9-GenericCloud.latest.aarch64.qcow2"
},
{
"id": 14,
"name": "OpenSUSE 15.5",
"version": "15.5",
"distro": "OpenSUSE",
"arch": "aarch64",
"filename": "openSUSE-Leap-15.5-Minimal-VM.aarch64-Cloud.qcow2"
"url": "https://download.cloudstack.org/templates/cloud-images/opensuse/openSUSE-Leap-15.5-Minimal-VM.aarch64-Cloud.qcow2"
},
{
"id": 15,
"name": "Oracle Linux 8",
"version": "8.10",
"distro": "OracleLinux",
"arch": "aarch64",
"filename": "OL8U10_aarch64-kvm-b122.qcow2"
"url": "https://download.cloudstack.org/templates/cloud-images/oraclelinux/OL8U10_aarch64-kvm-b122.qcow2"
},
{
"id": 16,
"name": "Oracle Linux 8",
"version": "8.10",
"distro": "OracleLinux",
"arch": "x86_64",
"filename": "OL8U10_x86_64-kvm-b258.qcow2"
"url": "https://download.cloudstack.org/templates/cloud-images/oraclelinux/OL8U10_x86_64-kvm-b258.qcow2"
},
{
"id": 17,
"name": "Oracle Linux 9",
"version": "9.5",
"distro": "OracleLinux",
"arch": "aarch64",
"filename": "OL9U5_aarch64-kvm-b126.qcow2"
"url": "https://download.cloudstack.org/templates/cloud-images/oraclelinux/OL9U5_aarch64-kvm-b126.qcow2"
},
{
"id": 18,
"name": "Oracle Linux 9",
"version": "9.5",
"distro": "OracleLinux",
"arch": "x86_64",
"filename": "OL9U5_x86_64-kvm-b259.qcow2"
"url": "https://download.cloudstack.org/templates/cloud-images/oraclelinux/OL9U5_x86_64-kvm-b259.qcow2"
}
]
7 changes: 1 addition & 6 deletions ui/src/views/infra/zone/ZoneWizardRegisterTemplate.vue
Original file line number Diff line number Diff line change
Expand Up @@ -223,12 +223,7 @@ export default {
if (!response.ok) {
throw new Error(`Error fetching predefined templates, status_code: ${response.status}`)
}
const templates = await response.json()
const templatesBaseUrl = 'https://download.cloudstack.org/templates/cloud-images/'
for (const template of templates) {
template.url = templatesBaseUrl + template.distro.toLowerCase() + '/' + template.filename
}
this.predefinedTemplates = templates
this.predefinedTemplates = await response.json()
} catch (error) {
console.error('Error fetching predefined templates:', error)
this.predefinedTemplates = []
Expand Down
Loading