SlideShare a Scribd company logo
OpenStack Cheat Sheet
Version : 2.0
Last modified : 6 Oct 2013
1. Nova
1.1 Management
Services status:
$ sudo nova­manage service list
Enable/disable a service:
$ sudo nova­manage service enable|disable ­­host=host
     ­­service=nova­compute
Add a new network:
$ sudo nova­manage network create ­­label vlan1
     ­­fixed_range_v4 10.0.1.0/24 ­­num_networks 1
     ­­network_size 256 ­­vlan 1
Remove a network, first disassociate it to a project:
$ sudo nova­manage project scrub projectname
$ sudo nova­manage network delete [cidr]
List networks:
$ sudo nova­manage network list
Add a floating IPs address range:
$ sudo nova­manage floating create ­­pool [my­pool]
     ­­ip_range 172.17.1.32/27
1/6
OpenStack Cheat Sheet
Version : 2.0
Last modified : 6 Oct 2013
Add a floating to your tenant (you will get a floating IP address, but unused):
$ nova floating­ip­create [my­pool]
Associate IP to an instance (specific tenant, according to your credentials)
$ nova add­floating­ip [my­instance] [ip]
Check the status of the floating IPs (tenant related):
$ nova floating­ip­list
List all instances running on every compute node:
$ sudo nova­manage vm list | column ­t
1.2 Common
Add a new security group:
$ nova secgroup­create web­server "Web server running"
Add rule to this group:
$ nova secgroup­add­rule web­server tcp 80 80 0.0.0.0/0
Add a security rules, allow ping and ssh:
$ nova secgroup­add­rule web­server icmp ­1 ­1 0.0.0.0/0
$ nova secgroup­add­rule web­server tcp 22 22 0.0.0.0/0
2/6
OpenStack Cheat Sheet
Version : 2.0
Last modified : 6 Oct 2013
Create credential:
$ nova keypair­add my_key > mey_key.pem
$ chmod 600 *.pem
List instances from the tenant in your credential:
$ nova list
Boot a new instance:
$ nova boot ­­flavor [flavor­id] ­­image [image­id] ­­key_name [key1]
       ­­security_groups [default] [instance­name]
Delete an instance:
$ nova delete [INSTANCE_ID]
Take a snapshot from an instance but first commit the buffer cache to disk:
my­instance:~$ sync
my­instance:~$ sudo echo 3 | sudo tee /proc/sys/vm/drop_caches
$ nova image­create [instance­id] [snapshot­name]
Get precise information about a specific instance:
$ nova show [instance­name]
Perform a block_migration:
$ nova live­migration ­­block_migrate [INSTANCE_ID] [TARGET_SERVER]
3/6
OpenStack Cheat Sheet
Version : 2.0
Last modified : 6 Oct 2013
2. Glance
Add an image to glance (public):
$ glance add name="my­image" is_public=True|False disk_format=qcow2
      container_format=ovf architecture=x86_64 < my­image.img
Check the glance backend:
$ glance index
Same with nova­common:
$ nova image­list
Set an image to public:
$ glance update [image­id] is_public=true
3. Keystone
List all the tenants:
$ keystone tenant­list
List all users:
$ keystone user­list
Create a new user:
$ keystone user­create ­­name [username] ­­tenant_id [tenant­id]
      ­­pass [password] ­­email [email] ­­enabled true
4/6
OpenStack Cheat Sheet
Version : 2.0
Last modified : 6 Oct 2013
4. Cinder
Create new volume:
$ cinder create ­­display­name myvol 1
List cinder volume:
$ cinder list
List cinder volume using nova­management:
$ nova volume­list
Attach volume to instance:
$ nova volume­attach [instance­id] [vol­name] /dev/vdc
5. Neutron
List floating ip:
$ neutron floatingip­list
Create router:
$ neutron router­list
List all router:
$ neutron router­list
List all subnet:
$ neutron subnet­list
5/6
OpenStack Cheat Sheet
Version : 2.0
Last modified : 6 Oct 2013
Load Balance as a Service:
$ neutron lb­pool­create ­­lb­method ROUND_ROBIN ­­name mypool
      ­­protocol HTTP ­­subnet­id [subnet­id]
$ neutron lb­member­create ­­address [server1­ip] ­­protocol­port 80 mypool
$ neutron lb­member­create ­­address [server2­ip] ­­protocol­port 80 mypool
$ neutron lb­healthmonitor­create ­­delay 3 ­­type HTTP ­­max­retries 3
      ­­timeout 3
$ neutron lb­healthmonitor­associate [healthmonitor­uuid] mypool
$ neutron lb­vip­create ­­name myvip ­­protocol­port 80 ­­protocol HTTP
      ­­subnet­id [subnet­id] mypool
6. Heat
Create a new stack:
$ heat stack­create [stack name] ­f [template­file]
       ­P "InstanceType=m1.medium;KeyName=silent;LinuxDistribution=F17"
List all resources from your stack:
$ heat resource­list [stack name]
7. Ceilometer
List all alarm:
$ ceilometer alarm list
6/6

More Related Content

What's hot (20)

PDF
Painless ruby deployment on shelly cloud
Giedrius Rimkus
 
PPTX
Couch to OpenStack: Nova - July, 30, 2013
Trevor Roberts Jr.
 
PDF
How to operate containerized OpenStack
Nalee Jang
 
PPTX
OpenStack Development Using devstack
mestery
 
PPTX
How to deploy spark instance using ansible 2.0 in fiware lab v2
Fernando Lopez Aguilar
 
PDF
Clustering with Docker Swarm - Dockerops 2016 @ Cento (FE) Italy
Giovanni Toraldo
 
PDF
Docker 1.12 and swarm mode
Wesley Charles Blake
 
PPTX
Docker Swarm for Beginner
Shahzad Masud
 
PDF
The age of orchestration: from Docker basics to cluster management
Nicola Paolucci
 
ODP
OpenStack DevStack Tutorial
Saju Madhavan
 
PPS
Oracle goldengate and RAC12c
Siraj Ahmed
 
PDF
Docker 1.12 & Swarm Mode [Montreal Docker Meetup Sept. 2016]
Brice Argenson
 
PPTX
Running High Performance & Fault-tolerant Elasticsearch Clusters on Docker
Sematext Group, Inc.
 
PDF
Introduction to the Mysteries of ClickHouse Replication, By Robert Hodges and...
Altinity Ltd
 
PDF
Dockercon Swarm Updated
Docker, Inc.
 
PDF
Swarm mode
Dharmit Shah
 
PPTX
Couch to OpenStack: Glance - July, 23, 2013
Trevor Roberts Jr.
 
PDF
tack Deployment in the Enterprise
Cisco Canada
 
PPTX
Docker Swarm Introduction
rajdeep
 
PPTX
Introduction to docker swarm
Walid Ashraf
 
Painless ruby deployment on shelly cloud
Giedrius Rimkus
 
Couch to OpenStack: Nova - July, 30, 2013
Trevor Roberts Jr.
 
How to operate containerized OpenStack
Nalee Jang
 
OpenStack Development Using devstack
mestery
 
How to deploy spark instance using ansible 2.0 in fiware lab v2
Fernando Lopez Aguilar
 
Clustering with Docker Swarm - Dockerops 2016 @ Cento (FE) Italy
Giovanni Toraldo
 
Docker 1.12 and swarm mode
Wesley Charles Blake
 
Docker Swarm for Beginner
Shahzad Masud
 
The age of orchestration: from Docker basics to cluster management
Nicola Paolucci
 
OpenStack DevStack Tutorial
Saju Madhavan
 
Oracle goldengate and RAC12c
Siraj Ahmed
 
Docker 1.12 & Swarm Mode [Montreal Docker Meetup Sept. 2016]
Brice Argenson
 
Running High Performance & Fault-tolerant Elasticsearch Clusters on Docker
Sematext Group, Inc.
 
Introduction to the Mysteries of ClickHouse Replication, By Robert Hodges and...
Altinity Ltd
 
Dockercon Swarm Updated
Docker, Inc.
 
Swarm mode
Dharmit Shah
 
Couch to OpenStack: Glance - July, 23, 2013
Trevor Roberts Jr.
 
tack Deployment in the Enterprise
Cisco Canada
 
Docker Swarm Introduction
rajdeep
 
Introduction to docker swarm
Walid Ashraf
 

Viewers also liked (20)

PDF
Running Docker with OpenStack | Docker workshop #1
dotCloud
 
PDF
OpenStack vs VMware vCloud
Innfinision Cloud and BigData Solutions
 
PPTX
Why Docker
dotCloud
 
PPTX
Openstack and eBay
Open Stack
 
PDF
Using PhoneGap Command Line
Anuchit Chalothorn
 
PDF
The Ubuntu OpenStack interoperability lab - Proven integration testing Nicola...
Cloud Native Day Tel Aviv
 
PDF
Chia sẻ kinh nghiệm và các nguồn tài nguyên để bắt đầu với OpenStack
Nguyen Tien
 
PDF
Using OpenShift PaaS
Anuchit Chalothorn
 
PDF
Các hướng tiếp cận để thử nghiệm và triển khai OpenStack
Nguyen Tien
 
PDF
How to deploy your own private cloud with openstack
Lakmal Warusawithana
 
PDF
How to install OpenStack MITAKA --allinone - cheat sheet -
Naoto MATSUMOTO
 
PDF
The Little Warehouse That Couldn't Or: How We Learned to Stop Worrying and Mo...
Spark Summit
 
PDF
Tachyon-2014-11-21-amp-camp5
Haoyuan Li
 
PDF
Linux Filesystems, RAID, and more
Mark Wong
 
PDF
Lessons Learned with Spark at the US Patent & Trademark Office-(Christopher B...
Spark Summit
 
PDF
The Hot Rod Protocol in Infinispan
Galder Zamarreño
 
PDF
Accelerating Cassandra Workloads on Ceph with All-Flash PCIE SSDS
Ceph Community
 
PDF
Advanced Data Retrieval and Analytics with Apache Spark and Openstack Swift
Daniel Krook
 
PDF
OpenStack Murano
openstackstl
 
PDF
Scaling up genomic analysis with ADAM
fnothaft
 
Running Docker with OpenStack | Docker workshop #1
dotCloud
 
OpenStack vs VMware vCloud
Innfinision Cloud and BigData Solutions
 
Why Docker
dotCloud
 
Openstack and eBay
Open Stack
 
Using PhoneGap Command Line
Anuchit Chalothorn
 
The Ubuntu OpenStack interoperability lab - Proven integration testing Nicola...
Cloud Native Day Tel Aviv
 
Chia sẻ kinh nghiệm và các nguồn tài nguyên để bắt đầu với OpenStack
Nguyen Tien
 
Using OpenShift PaaS
Anuchit Chalothorn
 
Các hướng tiếp cận để thử nghiệm và triển khai OpenStack
Nguyen Tien
 
How to deploy your own private cloud with openstack
Lakmal Warusawithana
 
How to install OpenStack MITAKA --allinone - cheat sheet -
Naoto MATSUMOTO
 
The Little Warehouse That Couldn't Or: How We Learned to Stop Worrying and Mo...
Spark Summit
 
Tachyon-2014-11-21-amp-camp5
Haoyuan Li
 
Linux Filesystems, RAID, and more
Mark Wong
 
Lessons Learned with Spark at the US Patent & Trademark Office-(Christopher B...
Spark Summit
 
The Hot Rod Protocol in Infinispan
Galder Zamarreño
 
Accelerating Cassandra Workloads on Ceph with All-Flash PCIE SSDS
Ceph Community
 
Advanced Data Retrieval and Analytics with Apache Spark and Openstack Swift
Daniel Krook
 
OpenStack Murano
openstackstl
 
Scaling up genomic analysis with ADAM
fnothaft
 
Ad

Similar to OpenStack Cheat Sheet V2 (20)

PDF
Minimal OpenStack LinuxCon NA 2015
Sean Dague
 
PDF
Oreilly solinea-managing-openstack
Vietnam Open Infrastructure User Group
 
PDF
"OpenStack — more than just software". Tom Fifield, OpenStack
Yandex
 
PPTX
Baylisa - Dive Into OpenStack
Jesse Andrews
 
PDF
OpenStack Networking
Ilya Shakhat
 
PPTX
Open Stack compute-service-nova
GHANSHYAM MANN
 
PPTX
Openstack: starter level
Alessandro Martellone
 
PDF
Compute 101 - OpenStack Summit Vancouver 2015
Stephen Gordon
 
PPTX
How to Develop OpenStack
Mehdi Ali Soltani
 
PPTX
Openstack Quantum + Devstack Tutorial
David Lapsley
 
PDF
SFScon16 - Michele Baldessari: "OpenStack – An introduction"
South Tyrol Free Software Conference
 
PPTX
Quick overview of Openstack architecture
Toni Ramirez
 
PPTX
Openstack study-nova-02
Jinho Shin
 
ODP
Deep Dive: OpenStack Summit (Red Hat Summit 2014)
Stephen Gordon
 
PPTX
Power of OpenStack & Hadoop
Tuan Yang
 
PDF
Intel's Out of the Box Network Developers Ireland Meetup on March 29 2017 - ...
Haidee McMahon
 
PPT
openstack-session.ppt
kaushal76thakur
 
PDF
Gordonh0945deepdive openstackcompute-140417174059-phpapp02
Công TÔ
 
PPTX
Getting started with open stack
Dan Radez
 
PPTX
Openstack meetup: Bootstrapping OpenStack to Corporate IT
Mirantis
 
Minimal OpenStack LinuxCon NA 2015
Sean Dague
 
Oreilly solinea-managing-openstack
Vietnam Open Infrastructure User Group
 
"OpenStack — more than just software". Tom Fifield, OpenStack
Yandex
 
Baylisa - Dive Into OpenStack
Jesse Andrews
 
OpenStack Networking
Ilya Shakhat
 
Open Stack compute-service-nova
GHANSHYAM MANN
 
Openstack: starter level
Alessandro Martellone
 
Compute 101 - OpenStack Summit Vancouver 2015
Stephen Gordon
 
How to Develop OpenStack
Mehdi Ali Soltani
 
Openstack Quantum + Devstack Tutorial
David Lapsley
 
SFScon16 - Michele Baldessari: "OpenStack – An introduction"
South Tyrol Free Software Conference
 
Quick overview of Openstack architecture
Toni Ramirez
 
Openstack study-nova-02
Jinho Shin
 
Deep Dive: OpenStack Summit (Red Hat Summit 2014)
Stephen Gordon
 
Power of OpenStack & Hadoop
Tuan Yang
 
Intel's Out of the Box Network Developers Ireland Meetup on March 29 2017 - ...
Haidee McMahon
 
openstack-session.ppt
kaushal76thakur
 
Gordonh0945deepdive openstackcompute-140417174059-phpapp02
Công TÔ
 
Getting started with open stack
Dan Radez
 
Openstack meetup: Bootstrapping OpenStack to Corporate IT
Mirantis
 
Ad

More from Anuchit Chalothorn (20)

PDF
Flutter Workshop 2021 @ ARU
Anuchit Chalothorn
 
PDF
Flutter workshop @ bang saen 2020
Anuchit Chalothorn
 
PDF
13 web service integration
Anuchit Chalothorn
 
PDF
09 material design
Anuchit Chalothorn
 
PDF
07 intent
Anuchit Chalothorn
 
PDF
05 binding and action
Anuchit Chalothorn
 
PDF
04 layout design and basic widget
Anuchit Chalothorn
 
PDF
03 activity life cycle
Anuchit Chalothorn
 
PDF
02 create your first app
Anuchit Chalothorn
 
PDF
01 introduction
Anuchit Chalothorn
 
PDF
Material Theme
Anuchit Chalothorn
 
PDF
00 Android Wear Setup Emulator
Anuchit Chalothorn
 
PDF
MongoDB Replication Cluster
Anuchit Chalothorn
 
PDF
MongoDB Shard Cluster
Anuchit Chalothorn
 
PDF
IT Automation with Chef
Anuchit Chalothorn
 
PDF
IT Automation with Puppet Enterprise
Anuchit Chalothorn
 
PDF
Collaborative development with Git | Workshop
Anuchit Chalothorn
 
PDF
REST API with CakePHP
Anuchit Chalothorn
 
PDF
Btf2013 OpenShift Live Demo
Anuchit Chalothorn
 
PDF
OpenShift live demo @ Bangkok Technology Forum
Anuchit Chalothorn
 
Flutter Workshop 2021 @ ARU
Anuchit Chalothorn
 
Flutter workshop @ bang saen 2020
Anuchit Chalothorn
 
13 web service integration
Anuchit Chalothorn
 
09 material design
Anuchit Chalothorn
 
05 binding and action
Anuchit Chalothorn
 
04 layout design and basic widget
Anuchit Chalothorn
 
03 activity life cycle
Anuchit Chalothorn
 
02 create your first app
Anuchit Chalothorn
 
01 introduction
Anuchit Chalothorn
 
Material Theme
Anuchit Chalothorn
 
00 Android Wear Setup Emulator
Anuchit Chalothorn
 
MongoDB Replication Cluster
Anuchit Chalothorn
 
MongoDB Shard Cluster
Anuchit Chalothorn
 
IT Automation with Chef
Anuchit Chalothorn
 
IT Automation with Puppet Enterprise
Anuchit Chalothorn
 
Collaborative development with Git | Workshop
Anuchit Chalothorn
 
REST API with CakePHP
Anuchit Chalothorn
 
Btf2013 OpenShift Live Demo
Anuchit Chalothorn
 
OpenShift live demo @ Bangkok Technology Forum
Anuchit Chalothorn
 

Recently uploaded (20)

PDF
Productivity Management Software | Workstatus
Lovely Baghel
 
PDF
Upskill to Agentic Automation 2025 - Kickoff Meeting
DianaGray10
 
PDF
Lecture A - AI Workflows for Banking.pdf
Dr. LAM Yat-fai (林日辉)
 
PDF
2025-07-15 EMEA Volledig Inzicht Dutch Webinar
ThousandEyes
 
PDF
"Effect, Fiber & Schema: tactical and technical characteristics of Effect.ts"...
Fwdays
 
PDF
HR agent at Mediq: Lessons learned on Agent Builder & Maestro by Tacstone Tec...
UiPathCommunity
 
PDF
Shuen Mei Parth Sharma Boost Productivity, Innovation and Efficiency wit...
AWS Chicago
 
PDF
Trading Volume Explained by CIFDAQ- Secret Of Market Trends
CIFDAQ
 
PDF
visibel.ai Company Profile – Real-Time AI Solution for CCTV
visibelaiproject
 
PPTX
UI5Con 2025 - Get to Know Your UI5 Tooling
Wouter Lemaire
 
PDF
How a Code Plagiarism Checker Protects Originality in Programming
Code Quiry
 
PDF
NewMind AI Journal - Weekly Chronicles - July'25 Week II
NewMind AI
 
PPTX
Darren Mills The Migration Modernization Balancing Act: Navigating Risks and...
AWS Chicago
 
PDF
Empowering Cloud Providers with Apache CloudStack and Stackbill
ShapeBlue
 
PDF
How Current Advanced Cyber Threats Transform Business Operation
Eryk Budi Pratama
 
PDF
Women in Automation Presents: Reinventing Yourself — Bold Career Pivots That ...
DianaGray10
 
PDF
Human-centred design in online workplace learning and relationship to engagem...
Tracy Tang
 
PDF
Building Resilience with Digital Twins : Lessons from Korea
SANGHEE SHIN
 
PPTX
The Yotta x CloudStack Advantage: Scalable, India-First Cloud
ShapeBlue
 
PPTX
Simplifying End-to-End Apache CloudStack Deployment with a Web-Based Automati...
ShapeBlue
 
Productivity Management Software | Workstatus
Lovely Baghel
 
Upskill to Agentic Automation 2025 - Kickoff Meeting
DianaGray10
 
Lecture A - AI Workflows for Banking.pdf
Dr. LAM Yat-fai (林日辉)
 
2025-07-15 EMEA Volledig Inzicht Dutch Webinar
ThousandEyes
 
"Effect, Fiber & Schema: tactical and technical characteristics of Effect.ts"...
Fwdays
 
HR agent at Mediq: Lessons learned on Agent Builder & Maestro by Tacstone Tec...
UiPathCommunity
 
Shuen Mei Parth Sharma Boost Productivity, Innovation and Efficiency wit...
AWS Chicago
 
Trading Volume Explained by CIFDAQ- Secret Of Market Trends
CIFDAQ
 
visibel.ai Company Profile – Real-Time AI Solution for CCTV
visibelaiproject
 
UI5Con 2025 - Get to Know Your UI5 Tooling
Wouter Lemaire
 
How a Code Plagiarism Checker Protects Originality in Programming
Code Quiry
 
NewMind AI Journal - Weekly Chronicles - July'25 Week II
NewMind AI
 
Darren Mills The Migration Modernization Balancing Act: Navigating Risks and...
AWS Chicago
 
Empowering Cloud Providers with Apache CloudStack and Stackbill
ShapeBlue
 
How Current Advanced Cyber Threats Transform Business Operation
Eryk Budi Pratama
 
Women in Automation Presents: Reinventing Yourself — Bold Career Pivots That ...
DianaGray10
 
Human-centred design in online workplace learning and relationship to engagem...
Tracy Tang
 
Building Resilience with Digital Twins : Lessons from Korea
SANGHEE SHIN
 
The Yotta x CloudStack Advantage: Scalable, India-First Cloud
ShapeBlue
 
Simplifying End-to-End Apache CloudStack Deployment with a Web-Based Automati...
ShapeBlue
 

OpenStack Cheat Sheet V2