Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update glance image create howto section #290

Merged
merged 1 commit into from
Jan 13, 2025
Merged
Changes from all commits
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
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.
Loading