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

PDF
Open Stack Cheat Sheet V1
PPTX
Integrating Consul and Puppet
PDF
Integrating Consul and Puppet
PPTX
Montreal User Group - Cloning Cassandra
PPTX
DevStack
PDF
Docker 1.12 Introduction (Docker Meetup Cluj-Napoca)
PPTX
Introduction to Apache ZooKeeper
PDF
openstack源码分析(1)
Open Stack Cheat Sheet V1
Integrating Consul and Puppet
Integrating Consul and Puppet
Montreal User Group - Cloning Cassandra
DevStack
Docker 1.12 Introduction (Docker Meetup Cluj-Napoca)
Introduction to Apache ZooKeeper
openstack源码分析(1)

What's hot (20)

PDF
Painless ruby deployment on shelly cloud
PPTX
Couch to OpenStack: Nova - July, 30, 2013
PDF
How to operate containerized OpenStack
PPTX
OpenStack Development Using devstack
PPTX
How to deploy spark instance using ansible 2.0 in fiware lab v2
PDF
Clustering with Docker Swarm - Dockerops 2016 @ Cento (FE) Italy
PDF
Docker 1.12 and swarm mode
PPTX
Docker Swarm for Beginner
PDF
The age of orchestration: from Docker basics to cluster management
ODP
OpenStack DevStack Tutorial
PPS
Oracle goldengate and RAC12c
PDF
Docker 1.12 & Swarm Mode [Montreal Docker Meetup Sept. 2016]
PPTX
Running High Performance & Fault-tolerant Elasticsearch Clusters on Docker
PDF
Introduction to the Mysteries of ClickHouse Replication, By Robert Hodges and...
PDF
Dockercon Swarm Updated
PDF
Swarm mode
PPTX
Couch to OpenStack: Glance - July, 23, 2013
PDF
tack Deployment in the Enterprise
PPTX
Docker Swarm Introduction
PPTX
Introduction to docker swarm
Painless ruby deployment on shelly cloud
Couch to OpenStack: Nova - July, 30, 2013
How to operate containerized OpenStack
OpenStack Development Using devstack
How to deploy spark instance using ansible 2.0 in fiware lab v2
Clustering with Docker Swarm - Dockerops 2016 @ Cento (FE) Italy
Docker 1.12 and swarm mode
Docker Swarm for Beginner
The age of orchestration: from Docker basics to cluster management
OpenStack DevStack Tutorial
Oracle goldengate and RAC12c
Docker 1.12 & Swarm Mode [Montreal Docker Meetup Sept. 2016]
Running High Performance & Fault-tolerant Elasticsearch Clusters on Docker
Introduction to the Mysteries of ClickHouse Replication, By Robert Hodges and...
Dockercon Swarm Updated
Swarm mode
Couch to OpenStack: Glance - July, 23, 2013
tack Deployment in the Enterprise
Docker Swarm Introduction
Introduction to docker swarm
Ad

Viewers also liked (20)

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

Similar to OpenStack Cheat Sheet V2 (20)

PDF
Chris Swan ONUG Academy - Container Networks Tutorial
PDF
Cutting through the fog of cloud
PPTX
Simple docker hosting in FIWARE Lab
PDF
What's New in Docker 1.12?
PDF
Percona Live 2012PPT:mysql-security-privileges-and-user-management
PPTX
Тарас Кирилюк — Docker basics. How-to for Drupal developers
PDF
Service Discovery & Load-Balancing under Docker 1.12.0 @ Docker Meetup #22
PDF
Deep Dive into Docker Swarm Mode
PDF
Justin Corbin Portfolio Labs
PDF
OpenNebulaConf 2016 - Evolution of OpenNebula at Netways by Sebastian Saemann...
PPTX
Couch to OpenStack: Neutron (Quantum) - August 13, 2013 Featuring Sean Winn
PDF
Workshop Consul .- Service Discovery & Failure Detection
PDF
Integration of neutron, nova and designate how to use it and how to configur...
PDF
Build your own private openstack cloud
PPTX
Academy PRO: Docker. Lecture 3
PDF
廣宣學堂: 容器進階實務 - Docker進深研究班
PDF
Docker 進階實務班
PPTX
How to create a secured cloudera cluster
PPTX
Federating new FIWARE Lab nodes
PDF
Huawei Switch How To - Configuring a basic DHCP server
Chris Swan ONUG Academy - Container Networks Tutorial
Cutting through the fog of cloud
Simple docker hosting in FIWARE Lab
What's New in Docker 1.12?
Percona Live 2012PPT:mysql-security-privileges-and-user-management
Тарас Кирилюк — Docker basics. How-to for Drupal developers
Service Discovery & Load-Balancing under Docker 1.12.0 @ Docker Meetup #22
Deep Dive into Docker Swarm Mode
Justin Corbin Portfolio Labs
OpenNebulaConf 2016 - Evolution of OpenNebula at Netways by Sebastian Saemann...
Couch to OpenStack: Neutron (Quantum) - August 13, 2013 Featuring Sean Winn
Workshop Consul .- Service Discovery & Failure Detection
Integration of neutron, nova and designate how to use it and how to configur...
Build your own private openstack cloud
Academy PRO: Docker. Lecture 3
廣宣學堂: 容器進階實務 - Docker進深研究班
Docker 進階實務班
How to create a secured cloudera cluster
Federating new FIWARE Lab nodes
Huawei Switch How To - Configuring a basic DHCP server

More from Anuchit Chalothorn (20)

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

Recently uploaded (20)

PDF
Approach and Philosophy of On baking technology
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PPT
Teaching material agriculture food technology
PDF
Machine learning based COVID-19 study performance prediction
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
GDG Cloud Iasi [PUBLIC] Florian Blaga - Unveiling the Evolution of Cybersecur...
PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
cuic standard and advanced reporting.pdf
PPTX
Cloud computing and distributed systems.
PDF
Advanced IT Governance
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
solutions_manual_-_materials___processing_in_manufacturing__demargo_.pdf
PPTX
Big Data Technologies - Introduction.pptx
PPTX
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
PPTX
Understanding_Digital_Forensics_Presentation.pptx
DOCX
The AUB Centre for AI in Media Proposal.docx
Approach and Philosophy of On baking technology
Review of recent advances in non-invasive hemoglobin estimation
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Teaching material agriculture food technology
Machine learning based COVID-19 study performance prediction
Diabetes mellitus diagnosis method based random forest with bat algorithm
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
GDG Cloud Iasi [PUBLIC] Florian Blaga - Unveiling the Evolution of Cybersecur...
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
cuic standard and advanced reporting.pdf
Cloud computing and distributed systems.
Advanced IT Governance
Per capita expenditure prediction using model stacking based on satellite ima...
The Rise and Fall of 3GPP – Time for a Sabbatical?
solutions_manual_-_materials___processing_in_manufacturing__demargo_.pdf
Big Data Technologies - Introduction.pptx
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
Understanding_Digital_Forensics_Presentation.pptx
The AUB Centre for AI in Media Proposal.docx

OpenStack Cheat Sheet V2