Skip to content

Commit

Permalink
Update glance image create howto section (#290)
Browse files Browse the repository at this point in the history
  • Loading branch information
lgrebe-sys authored Jan 13, 2025
1 parent 6560dfb commit 843eb59
Showing 1 changed file with 3 additions and 25 deletions.
28 changes: 3 additions & 25 deletions user/pages/03.Howtos/07.upload-images/docs.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,36 +21,14 @@ There are three different ways to upload custom images.
### OpenStack-CLI

You need to have the [OpenStack-CLI](../../03.Howtos/02.openstack-cli/docs.en.md) installed and configured.
Download an image you want to use, e.g. an [Ubuntu cloud image](https://cloud-images.ubuntu.com).
After [sourcing the openrc.sh](../../02.Tutorials/02.api-access/docs.en.md) you can easily upload your own image and use it right after, like this:

```shell
glance --os-image-api-version 1 image-create --progress --is-public False --disk-format=qcow2 \
--container-format=bare --property architecture=x86_64 --name="Debian Stretch" \
--location https://cdimage.debian.org/cdimage/openstack/current-9/debian-9-openstack-amd64.qcow2
openstack image create --progress --private --disk-format=qcow2 --container-format=bare \
--property architecture=x86_64 --name="Ubuntu Noble" --file noble-server-cloudimg-amd64.img
```

### Heat-Template

It is also possible to upload images with heat.
An example can look like this:

```yaml
heat_template_version: 2016-04-08

description: Simple template to upload an image

resources:
glance_image:
type: OS::Glance::Image
properties:
container_format: bare
disk_format: qcow2
name: Debian Stretch
location: https://cdimage.debian.org/cdimage/openstack/current-9/debian-9-openstack-amd64.qcow2
```
Further information can be found [here](https://cloud.syseleven.de/horizon/project/resource_types/OS::Glance::Image/).
## Image sources

!!! [This overview](../../04.Reference/06.images/docs.en.md#image-sources) contains a list of standard images sources.

0 comments on commit 843eb59

Please sign in to comment.