|
|
|
### Get credentials
|
|
|
|
Folow [this guide](https://cloud.gitlab-pages.ics.muni.cz/documentation/cli/#getting-credentials)
|
|
|
|
### Get application credentials
|
|
|
|
- Go to Identity > Application Credentials and click Create Application Credential
|
|
|
|
- Check the Unrestricted checkbox
|
|
|
|
- Create Application Credentials
|
|
|
|
- Download openrc file
|
|
|
|
|
|
|
|
### Upload image
|
|
|
|
Use the application credentials by running
|
|
|
|
```bash
|
|
|
|
. <name-of-the-openrc-file>
|
|
|
|
```
|
|
|
|
All openstack commands will then use the credentials.
|
|
|
|
|
|
|
|
Once you have access to OpenStack via console, use ```openstack image create --file <pathToImage> --property hw_scsi_model=virtio-scsi --property hw_disk_bus=scsi --property hw_rng_model=virtio --property hw_qemu_guest_agent=yes --property os_require_quiesce=yes --property os_type=<linux/windows> --property os_distro=<distroName> <newImageName>```.
|
|
|
|
### Upload image
|
|
|
|
Run
|
|
|
|
```bash
|
|
|
|
openstack image create --file <pathToImage> --property hw_scsi_model=virtio-scsi \
|
|
|
|
--property hw_disk_bus=scsi --property hw_rng_model=virtio \
|
|
|
|
--property hw_qemu_guest_agent=yes --property os_require_quiesce=yes \
|
|
|
|
--property os_type=<linux/windows> --property os_distro=<distroName> <newImageName>
|
|
|
|
```
|
|
|
|
|
|
|
|
List of valid distribution names and more properties is [here](https://docs.openstack.org/glance/latest/admin/useful-image-properties.html).
|
|
|
|
|
| ... | ... | |