Skip to Content
Deploying OpenStack
book

Deploying OpenStack

by Ken Pepple
July 2011
Intermediate to advanced
88 pages
1h 52m
English
O'Reilly Media, Inc.
Content preview from Deploying OpenStack

Chapter 8. Using Nova

Now that we have a working Nova installation, we need to ready it for use by our initial users. This requires us to do some command-line configuration on the Nova controller (or the server with the database). First, we will add a user, then upload a virtual disk image, launch the instance, and finally configure network access for it.

Creating User and Projects

The first step is using our new Nova installation is to create a user. This is a multi-step process that uses the nova-manage utility to create a project.

# nova-manage user create ken
export EC2_ACCESS_KEY=d77406c3-cea1-45af-bbd9-acfd16ff49e3
export EC2_SECRET_KEY=b9c6ab50-65d7-4185-a1a9-267a2afe30f9
# nova-manage role add ken cloudadmin
# nova-manage project create book ken
# nova-manage project zipfile book ken

The final command in the example will produce a zip-compressed file called nova.zip. Now uncompress the credential zip file and source the resulting novarc. This will set a number of environmental variables needed to access your Nova installation with other utilities. If you are creating this user on behalf of another user, you will need to give him this zipfile.

# unzip nova.zip
Archive:  nova.zip
 extracting: novarc
 extracting: pk.pem
 extracting: cert.pem
 extracting: cacert.pem
# . ./novarc

While not necessary, you might want to view novarc to find out what environmental variables it is setting for you. Remember that you will need to source this file in every session if you want to access your Nova ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

OpenStack Essentials

OpenStack Essentials

Dan Radez

Publisher Resources

ISBN: 9781449311223Errata