Add OS Image docs

This commit is contained in:
Elana Hashman 2018-08-11 11:54:01 -04:00
parent e2a343fb57
commit fc2a0ea314
2 changed files with 50 additions and 0 deletions

View File

@ -14,3 +14,4 @@ the Ocata version).
## For administrators
- [User Setup]({filename}
- [Adding a New OS Image]({filename}

content/pages/ Normal file
View File

@ -0,0 +1,49 @@
title: Adding a New OS Image
slug: docs/admin/os-image
status: hidden
## Adding an Ubuntu Image
Use the daily builds for the Ubuntu Cloud Server images. These can be found
### 1. Download the target image
On ``, download your target image. Ensure you
pick a qcow2 formatted image. These usually end in the `*.img` extension.
For example,
cd /tmp
### 2. Upload the image to OpenStack
Note that you must have set your OpenStack environment variables correctly for
this step to work. See Appendix A below.
Make sure to set your `$FILENAME` and `$IMAGE_NAME` variables to the location
and name of your desired image. For example,
IMAGE_NAME="Ubuntu Server 18.04 LTS (Bionic Beaver) daily build"
openstack image create --container-format bare --disk-format qcow2 --file $FILENAME --public $IMAGE_NAME
### Appendix A: OpenStack Environment Variables
export OS_USERNAME=<username>
export OS_PROJECT_NAME=csc
export OS_USER_DOMAIN_NAME=csclub
export OS_AUTH_URL=
NOTE: To control your personal project, change `OS_PROJECT_NAME` to your username.