0% found this document useful (0 votes)
38 views2 pages

On A Fresh Centos Install: $ Sudo Yum Install - Y / $ Sudo Yum Install - Y Openstack-Packstack $ Sudo Packstack - Allinone and You'Re Done!

This document provides instructions for common tasks when managing resources with OpenStack, including: 1. Installing OpenStack with Packstack on CentOS, listing available images and flavors, creating instances, volumes, and attaching volumes. 2. Creating and managing key pairs for SSH access to instances, adding and managing users/projects/roles for authorization. 3. Creating and managing networks for instances to connect to, and useful links for OpenStack documentation and support forums.

Uploaded by

Cang Phan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as ODT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
38 views2 pages

On A Fresh Centos Install: $ Sudo Yum Install - Y / $ Sudo Yum Install - Y Openstack-Packstack $ Sudo Packstack - Allinone and You'Re Done!

This document provides instructions for common tasks when managing resources with OpenStack, including: 1. Installing OpenStack with Packstack on CentOS, listing available images and flavors, creating instances, volumes, and attaching volumes. 2. Creating and managing key pairs for SSH access to instances, adding and managing users/projects/roles for authorization. 3. Creating and managing networks for instances to connect to, and useful links for OpenStack documentation and support forums.

Uploaded by

Cang Phan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as ODT, PDF, TXT or read online on Scribd
You are on page 1/ 2

Get started Managing images Managing SSH keys

Community OpenStack Packaging


On a fresh CentOS install: List available images: Creating a new key pair:
$ sudo yum install -y \ $ openstack image list $ openstack keypair create mykey > mykey.pem
https://rdoproject.org/repos/rdo-release.rpm Uploading a new image: Uploading a pre-existing key:
$ sudo yum install -y openstack-packstack
$ openstack image create <name> \ $ openstack keypair create \
$ sudo packstack --allinone --public --disk-format qcow2 \ –public-key mykey.pub mykey
--container-format ovf \
And you're done! --file <qcow2 image file> \ List available SSH keys:
--property os_distro=[fedora|
$ openstack keypair list
ubuntu|...]
Useful Links Creating a new QCOW2 image: Managing users and projects
RDO OpenStack $ qemu-img create -f qcow2 \ List projects/users/roles:
<image> <size>
 rdoproject.org  www.openstack.org $ openstack {project,user,role} list
 @rdocommunity  docs.openstack.org Installing an image from an ISO:
Add new user:
 rdoproject.org/blog  www.openstack.org $ qemu -m 1024 -hda <image> \
-cdrom <iso> \ $ openstack user create <user-name> \
 trystack.org  ask.openstack.org -kernel-kqemu -boot d --project <project> --password <user-password>
-net nic -net user
 planet.openstack.org Grant role to user:
openstack role add --user <user> \
--project <project> <role>
Icons: Font Awesome by Dave Gandy – fontawesome.io
Managing instances Managing volumes Attach a volume to an instance:

Community OpenStack Packaging


$ openstack server add volume \
Show running instances: Create bootable volume from an image: <server-name> <volume-name>
$ openstack server list $ openstack volume create <volume-name> \
--image <image> --size <size in GB> Managing networks
Start a new instance:
$ openstack server create <server-name> \
Create a snapshot: Create network:
--flavor <flavor> \ $ openstack snapshot create <volume> \ $ openstack network create \
--image <image> \ --name <snaphost-name> [--prefix PREFIX] [--enable | --disable] \
--key-name <key-name> [--share | --no-share] <network-name>
List available volumes:
List flavors: Delete network:
$ openstack volume list
$ openstack flavor list $ openstack network delete <network>
Booting an instance from a volume:
Migrate an instance to a different host: List networks:
$ openstack server create <server-name> \
$ openstack server migrate <server-name> \ --flavor <flavor> --key-name <key-name> \ $ openstack network list
--live <target> --image <image> \
--block-device-mapping \ Show network:
Reboot instance: <device-name>=<volume ID> $ openstack network show <network>
$ openstack server reboot <server-name>
Creating a new volume:
Destroy instance: $ openstack volume create <name> \
Got Questions?
$ openstack server delete <server-name> --size <size in GB> Join us on #rdo, on the Freenode IRC network!

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy