SlideShare a Scribd company logo
Technical User Group
EMEA Architects, Bart van den Heuvel
Running an OpenStack Instance
July, 2014
8/5/2014 2Red Hat Confidential
Agenda
โ€ข Introduction to IaaS with OpenStack
โ€ข demo
โ€ข OpenStack components available to images
โ€ข Creating Cloud Images
โ€ข Image factoryline
as a service
Software as a Service
Platform as a Service
Infrastructure as a Service
Data Center as a Service
What they have in common
โ€ข Self service
โ€ข Automated deployment
โ€ข Management built in
โ€ข Low initial cost to deploy
โ€ข Incremental cost as your usage grows
โ€ข Best Practices embedded
โ€ข Lifecycle built in
โ€ข Re-use
โ€ข Resource sharing
IaaS
Common misinterpretations
โ€ข Scale out of the box
โ€ข Is same as Virtualization
โ€ข IaaS is cloud management or cloud orchestration solution
โ€ข Runs any workload, i can replace my virtualization with
this
IaaS Jargon
โ€ข Stateful and stateless workloads
โ€ข Scale out not scale up
โ€ข Tenants
โ€ข Flavors
โ€ข Private and public networks
SLA for cloud services typically target the
Infrastructure, not the actual virtual machine
Datacenter
Virtualization
Private IaaS /
Private Cloud
Hybrid IaaS /
Hybrid Cloud
LEGACY WORKLOADS
โ—
application defined in VM
โ—
Big VMs: vCPU, vRAM, local storage
inside VM
โ—
Application SLA = SLA of VM
โ—
SLA requires enterprise
virtualization features to keep VMs
highly available
โ—
Life cycle measured in years
โ—
VMs scale up: add vCPU, vRAM, etc.
โ—
Applications not
designed to tolerate
failure of VMs
CLOUD WORKLOADS
โ—
Stateless VMs, application distributed
โ—
Small VMs: vCPU, vRAM, storage
separate
โ—
Application SLA not dependent on any
one VM
โ—
SLA requires ability to create and destroy
VMs where needed
โ—
Life cycle measured in hours to months
โ—
Applications scale out: add more VMs
โ—
Applications designed to
tolerate failure of VMs
OpenStack
OpenStack is a NOT a replacement for
Enterprise Virtualization!
OpenStack components
8/5/2014 10Red Hat Confidential
Maturity model
Demo
The OpenStack VM
โ—
Called 'Instance'
โ—
Only exists for a limited amount of time
โ—
'ephemeral' disk
โ—
Based on a 'cloud' OS image
โ—
Can be Linux, Windows, ...
โ—
Small replaceable engine, made to be unimportant
Features directly available to the Instance
Compute
Storage
Networking
VPNaaS, DBaaS, LBaaS, MaaS, ...
Networking in OpenStack (SDN)
โ€ข Tenant networks are completely isolated
โ€ข Tenants are free to create what they want:
โ€ข Any number of layer 2 networks
โ€ข Subnets, IP4 / IP6
โ€ข Connect networks via virtual routers
โ€ข Connect to a external network, created by admin
Tip of the iceberg
Storage available to the Instance
Ephemeral storage Block storage Object storage
Used to... Run operating system
and scratch space
Add additional
persistent storage to a
virtual machine (VM)
Store data, including
VM images
Accessed throughโ€ฆ A file system A block device that can
be partitioned,
formatted, and
mounted (such as,
/dev/vdc)
The REST API
Accessible fromโ€ฆ Within a VM Within a VM Anywhere
Managed byโ€ฆ OpenStack Compute
(nova)
OpenStack Block
Storage (cinder)
OpenStack Object
Storage (swift)
Persists untilโ€ฆ VM is terminated Deleted by user Deleted by user (or by
set expiration date)
Sizing determined
byโ€ฆ
Administrator
configuration of size
settings, known as
flavors
User specification in
initial request
Amount of available
physical storage
Example of typical
usageโ€ฆ
10 GB first disk, 30 GB
second disk
1 TB disk 10s of TBs of dataset
storage
Creating a OpenStack Image
Many options are possible, manual and automated
There is no image-factory in OpenStack
- Create one manually on a libvirt host
- Create one semi-automatic with OZ
- Create a image-factory production line
Common components in cloud images
Based on a QCOW2 disk image
โ€ข very flexible, rich featured format
โ€ข Overhead compared to raw
โ€ข Minimal disk image size (deployed instance)
โ€ข
โ€ข
See:
http://kashyapc.com/2012/10/04/creating-rapid-thin-provisioned-g
uests-using-qemu-backing-files/
See:
https://people.gnome.org/~markmc/qcow-image-format.html
cloud-init package
Capabilities
โ€ข Setting a default locale
โ€ข Setting a instance hostname
โ€ข Generating instance ssh private keys
โ€ข Adding ssh keys to a users .ssh/authorized_keys so
they can log in
โ€ข Setting up ephemeral mount points
โ€ข Various tasks to make the system useful
The meta data agent
Set or request information about the running VM.
โ€ข Facts set by OpenStack
โ€ข Facts set by user, scripts or third party software
โ€ข AWS compatible or OpenStack's version
nova meta <instancename or id> set role=database 
partner=thelastone script="/scripts/database-v1-2014.shโ€
curl http://169.254.169.254/openstack/latest/meta_data.json
The metadata agent
โ€ข ami-id
โ€ข ami-launch-index
โ€ข ami-manifest-path
โ€ข block-device-mapping
โ€ข hostname
โ€ข instance-action
โ€ข instance-id
โ€ข instance-type
โ€ข kernel-id
โ€ข local-hostname
โ€ข local-ipv4
โ€ข placement
โ€ข public-hostname
โ€ข public-ipv4
โ€ข public-keys
โ€ข ramdisk-id
โ€ข reservation-id
{"random_seed":
"yJn2cgiJMI/OJ/StW4mFQnFeR2MaboH/Mt9N0MJ1hzv5
GGvLgiGZ8/kW6tebU6L0kI7D+VCIVvGCq6EnDDb2cbt
lenzol26ky8dcqEwnx3qCf4vLpHO+PWONtL7VR2AHR
Q2ZIOO9VXnmCiUFudtCGETlXVXdXbcF4M56UsGy36b
166fZGg/iRibcDVcDUzAnByNmd+Vb2WZH/GVNCGb5
k0p/FVk/97SUpC9i5b+4AJiFXx1e5sK/sHi65514KA8AYe
+jPRw5qrCbgpypLroAWWNvUEJTh5OmQVs229sFY9x
mrIjjUbCg3BhkQnGP6QJ7KQoM2CHROh2cPbOLalaSQ
Mh8SlZia2aqk6RaHrRlHkF0bxe/CZYCnDnYwuHlTGUu
OdTPYeL87iy8VAQao4sulb0Z4uAojiqYgCw6ZsW3iPKx
MvtlKrSkpq+8Clvk1NCplkWj10tWuBNMxgQcazTj+vW
+yAuS2Qk1zp/gOYS670/AtpS+S3ycRf700IOVZnmlWD
jK12Vt2l8Vs/UooDlvKXBzUoOmrNZeSBguyzIsjn1UTr9
K7ghpdtMBE71aQDM+oKvchesInn9jBU9j4DRhdZ3ZC
BFjQheEZKReIUO8rzO/bYYWPcxWEBpVJlqinmkkk8ZV4
bPH5lVgMKFLY+mXygcT/maHNw8fp0ZJEqOjW4c=",
"uuid": "118888de-0dbc-40bb-913e-b372ceb673d7",
"availability_zone": "nova", "hostname":
"custometadatakeys.novalocal", "launch_index": 0,
"meta": {"partner": "thelastone",
"role": "database", "script":
"/scripts/database-v1-2014.sh"},
"public_keys": {"VLAN-120-thelastone-key": "ssh-rsa
AAAAB3NzaC1yc2EAAAABIwAAAQEApNVrYIHoaCcsUf
sSFtArqQJFc3J7aoM0ubUu/j61xjtE9HyhM3aQi5twfNQy
cDj0aBw1XF6PZu3yJ6/gPW+UX7YAl1LwgCH03uXSIrC
FHxKO3JzGaYbgn5/xmEaRuSzl8qnR82tFntn3k3oBXzU
laPspmZZPQ0eJjsp+dF9xZD2JfUgtYm8aN7HnTHg19n
+1PF86twDXvRj46ExpwdTqvY0N+nnEaoW1YQOrdxn
2Bz2bt0enXsDaaq1aOmjzItfGBVRB2WJw8hJTz7hGfLp
TOh+NYUQ6qv0WTHaw7sSnscP533aKDbUznlfr0ogUE
AZ7WWbqPXujETV0+u7SaAMA1Q== Generated by
Novan"}, "name": "custometadatakeys"}
The Nova Meta-data agent
Registry of meta-data available to the instance
Provide 'hooks' for puppet and bootstrap scripts
Creating your own, via libvirt
โ€ข create a qcow2 file
โ€ข install the desired OS in the qcow2 file
โ€ข tune the OS, install any add-ons
โ€ข make the cloud alterations
โ€ข install the cloud-init package
โ€ข run virt-sysprep
โ€ข upload the image to glance
Creating your own, via Oz
Install operating systems.
Customize operating systems.
Generate metadata (ICICLE) about operating
systems.
https://github.com/clalancette/oz/wiki
โ€ข Create a Kickstart
โ€ข Create a OZ definition file (TDL)
# oz-install -a Fedora20-ks.auto -d 4 f20.tdl
Installing via Oz (Kickstart)
install
text
keyboard us
lang en_US.UTF-8
network --device eth0 --bootproto dhcp
rootpw fedora
firewall --enabled ssh
selinux --enforcing
timezone --utc America/New_York
bootloader --location=mbr --append="console=tty0 console=ttyS0,115200"
zerombr
clearpart --all --drives=vda
autopart --type=btrfs
reboot
%packages
@core
%end
Installing via Oz (TDL)
<template>
<name>f20btrfs</name>
<os>
<name>Fedora</name>
<version>20</version>
<arch>x86_64</arch>
<install type='url'>
<url>http://dl.fedoraproject.org/pub/fedora/linux/releases/20/Fedora/x86_64/os/</url>
</install>
<rootpw>fedora</rootpw>
</os>
<description>Fedora 20</description>
</template>
Setting up a image factoryline with Oz
What should be in the image
โ€ข Common collection of packages
โ€ข OS layout
โ€ข Filesystems
โ€ข Network
โ€ข Management tools

More Related Content

PPTX
Getting Started with Apache CloudStack
ODP
Guaranteeing Storage Performance by Mike Tutkowski
PPTX
Build public private cloud using openstack
PPT
Openstack - An introduction/Installation - Presented at Dr Dobb's conference...
PPTX
Apache CloudStack from API to UI
PPTX
Introduction to openstack
PDF
CloudStack-Developer-Day
PPTX
Deploying Apache CloudStack from API to UI
Getting Started with Apache CloudStack
Guaranteeing Storage Performance by Mike Tutkowski
Build public private cloud using openstack
Openstack - An introduction/Installation - Presented at Dr Dobb's conference...
Apache CloudStack from API to UI
Introduction to openstack
CloudStack-Developer-Day
Deploying Apache CloudStack from API to UI

What's hot (20)

PDF
2 Day Bootcamp for OpenStack--Cloud Training by Mirantis (Preview)
PDF
CloudStack - LinuxFest NorthWest
ย 
PPT
Openstack presentation
PPTX
PPTX
Introduction to CloudStack
PPT
Intro to CloudStack Build a Cloud Day
PDF
Cloud stack for_beginners
PDF
An Introduction to OpenStack
PDF
Making Cloudy Peanut Butter Cups: Apache CloudStack + Riak CS
PPTX
Utilizing Public AND Private Clouds with Bright Cluster Manager
PPT
How to Design a Scalable Private Cloud
ย 
PDF
CloudStack Hyderabad Meetup: How the Apache community works
PPTX
Architecture of massively scalable, distributed systems - InfoShare 2015
ODP
Build a Cloud Day - CloudStack
ย 
PPTX
Running OpenStack on Amazon AWS, Alex Fishman
PPTX
OpenStack + VMware: Everything You Need to Know (Kilo-edition)
PPTX
Taking the open cloud to 11
PPTX
Cloudstack vs Openstack
PDF
Txlf2012
PPTX
Cloud stack overview
2 Day Bootcamp for OpenStack--Cloud Training by Mirantis (Preview)
CloudStack - LinuxFest NorthWest
ย 
Openstack presentation
Introduction to CloudStack
Intro to CloudStack Build a Cloud Day
Cloud stack for_beginners
An Introduction to OpenStack
Making Cloudy Peanut Butter Cups: Apache CloudStack + Riak CS
Utilizing Public AND Private Clouds with Bright Cluster Manager
How to Design a Scalable Private Cloud
ย 
CloudStack Hyderabad Meetup: How the Apache community works
Architecture of massively scalable, distributed systems - InfoShare 2015
Build a Cloud Day - CloudStack
ย 
Running OpenStack on Amazon AWS, Alex Fishman
OpenStack + VMware: Everything You Need to Know (Kilo-edition)
Taking the open cloud to 11
Cloudstack vs Openstack
Txlf2012
Cloud stack overview
Ad

Similar to Running an openstack instance (20)

PPTX
Cloud computing and OpenStack
PDF
Bitnami Bootcamp. OpenStack
PDF
Cloud Architect Alliance #15: Openstack
PDF
OpenStack- A ringside view of Services and Architecture
PDF
Openstackinsideoutv10 140222065532-phpapp01
ย 
PDF
OpenStack: Inside Out
PDF
Openstack on Fedora, Fedora on Openstack: An Introduction to cloud IaaS
PDF
Visรฃo Tรฉcnica - RHOS (Red Hat Enterprise Linux OpenStack)
PPTX
Workshop - Openstack, Cloud Computing, Virtualization
PPTX
Openstack workshop @ Kalasalingam
PDF
RedHat OpenStack Platform Overview
PPTX
An Intrudction to OpenStack 2017
PPTX
Introduction To OpenStack
PPTX
Cloud and OpenStack
PDF
Introduction to cloud and openstack
PPTX
OpenStack Ecosystem (10000 feet oveview)
PDF
Introduction openstack-meetup-nov-28
PDF
151121 e openstack-api-nfv
PPTX
Power of OpenStack & Hadoop
PPT
Unraveling OpenStack Clouds
Cloud computing and OpenStack
Bitnami Bootcamp. OpenStack
Cloud Architect Alliance #15: Openstack
OpenStack- A ringside view of Services and Architecture
Openstackinsideoutv10 140222065532-phpapp01
ย 
OpenStack: Inside Out
Openstack on Fedora, Fedora on Openstack: An Introduction to cloud IaaS
Visรฃo Tรฉcnica - RHOS (Red Hat Enterprise Linux OpenStack)
Workshop - Openstack, Cloud Computing, Virtualization
Openstack workshop @ Kalasalingam
RedHat OpenStack Platform Overview
An Intrudction to OpenStack 2017
Introduction To OpenStack
Cloud and OpenStack
Introduction to cloud and openstack
OpenStack Ecosystem (10000 feet oveview)
Introduction openstack-meetup-nov-28
151121 e openstack-api-nfv
Power of OpenStack & Hadoop
Unraveling OpenStack Clouds
Ad

Recently uploaded (20)

PDF
๐Ÿ’ฐ ๐”๐Š๐“๐ˆ ๐Š๐„๐Œ๐„๐๐€๐๐†๐€๐ ๐Š๐ˆ๐๐„๐‘๐Ÿ’๐ƒ ๐‡๐€๐‘๐ˆ ๐ˆ๐๐ˆ ๐Ÿ๐ŸŽ๐Ÿ๐Ÿ“ ๐Ÿ’ฐ
ย 
PDF
An introduction to the IFRS (ISSB) Stndards.pdf
PPTX
presentation_pfe-universite-molay-seltan.pptx
PPTX
Introuction about ICD -10 and ICD-11 PPT.pptx
PPTX
international classification of diseases ICD-10 review PPT.pptx
PDF
Cloud-Scale Log Monitoring _ Datadog.pdf
PPTX
Internet___Basics___Styled_ presentation
PDF
Sims 4 Historia para lo sims 4 para jugar
PDF
Paper PDF World Game (s) Great Redesign.pdf
PDF
RPKI Status Update, presented by Makito Lay at IDNOG 10
ย 
PDF
Automated vs Manual WooCommerce to Shopify Migration_ Pros & Cons.pdf
PDF
Unit-1 introduction to cyber security discuss about how to secure a system
PPTX
INTERNET------BASICS-------UPDATED PPT PRESENTATION
PDF
Vigrab.top โ€“ Online Tool for Downloading and Converting Social Media Videos a...
PPT
tcp ip networks nd ip layering assotred slides
PPTX
Job_Card_System_Styled_lorem_ipsum_.pptx
PDF
Decoding a Decade: 10 Years of Applied CTI Discipline
PDF
How to Ensure Data Integrity During Shopify Migration_ Best Practices for Sec...
PDF
APNIC Update, presented at PHNOG 2025 by Shane Hermoso
ย 
PPTX
PptxGenJS_Demo_Chart_20250317130215833.pptx
๐Ÿ’ฐ ๐”๐Š๐“๐ˆ ๐Š๐„๐Œ๐„๐๐€๐๐†๐€๐ ๐Š๐ˆ๐๐„๐‘๐Ÿ’๐ƒ ๐‡๐€๐‘๐ˆ ๐ˆ๐๐ˆ ๐Ÿ๐ŸŽ๐Ÿ๐Ÿ“ ๐Ÿ’ฐ
ย 
An introduction to the IFRS (ISSB) Stndards.pdf
presentation_pfe-universite-molay-seltan.pptx
Introuction about ICD -10 and ICD-11 PPT.pptx
international classification of diseases ICD-10 review PPT.pptx
Cloud-Scale Log Monitoring _ Datadog.pdf
Internet___Basics___Styled_ presentation
Sims 4 Historia para lo sims 4 para jugar
Paper PDF World Game (s) Great Redesign.pdf
RPKI Status Update, presented by Makito Lay at IDNOG 10
ย 
Automated vs Manual WooCommerce to Shopify Migration_ Pros & Cons.pdf
Unit-1 introduction to cyber security discuss about how to secure a system
INTERNET------BASICS-------UPDATED PPT PRESENTATION
Vigrab.top โ€“ Online Tool for Downloading and Converting Social Media Videos a...
tcp ip networks nd ip layering assotred slides
Job_Card_System_Styled_lorem_ipsum_.pptx
Decoding a Decade: 10 Years of Applied CTI Discipline
How to Ensure Data Integrity During Shopify Migration_ Best Practices for Sec...
APNIC Update, presented at PHNOG 2025 by Shane Hermoso
ย 
PptxGenJS_Demo_Chart_20250317130215833.pptx

Running an openstack instance

  • 1. Technical User Group EMEA Architects, Bart van den Heuvel Running an OpenStack Instance July, 2014
  • 2. 8/5/2014 2Red Hat Confidential Agenda โ€ข Introduction to IaaS with OpenStack โ€ข demo โ€ข OpenStack components available to images โ€ข Creating Cloud Images โ€ข Image factoryline
  • 3. as a service Software as a Service Platform as a Service Infrastructure as a Service Data Center as a Service
  • 4. What they have in common โ€ข Self service โ€ข Automated deployment โ€ข Management built in โ€ข Low initial cost to deploy โ€ข Incremental cost as your usage grows โ€ข Best Practices embedded โ€ข Lifecycle built in โ€ข Re-use โ€ข Resource sharing
  • 5. IaaS Common misinterpretations โ€ข Scale out of the box โ€ข Is same as Virtualization โ€ข IaaS is cloud management or cloud orchestration solution โ€ข Runs any workload, i can replace my virtualization with this
  • 6. IaaS Jargon โ€ข Stateful and stateless workloads โ€ข Scale out not scale up โ€ข Tenants โ€ข Flavors โ€ข Private and public networks SLA for cloud services typically target the Infrastructure, not the actual virtual machine
  • 7. Datacenter Virtualization Private IaaS / Private Cloud Hybrid IaaS / Hybrid Cloud LEGACY WORKLOADS โ— application defined in VM โ— Big VMs: vCPU, vRAM, local storage inside VM โ— Application SLA = SLA of VM โ— SLA requires enterprise virtualization features to keep VMs highly available โ— Life cycle measured in years โ— VMs scale up: add vCPU, vRAM, etc. โ— Applications not designed to tolerate failure of VMs CLOUD WORKLOADS โ— Stateless VMs, application distributed โ— Small VMs: vCPU, vRAM, storage separate โ— Application SLA not dependent on any one VM โ— SLA requires ability to create and destroy VMs where needed โ— Life cycle measured in hours to months โ— Applications scale out: add more VMs โ— Applications designed to tolerate failure of VMs
  • 8. OpenStack OpenStack is a NOT a replacement for Enterprise Virtualization!
  • 10. 8/5/2014 10Red Hat Confidential Maturity model
  • 11. Demo
  • 12. The OpenStack VM โ— Called 'Instance' โ— Only exists for a limited amount of time โ— 'ephemeral' disk โ— Based on a 'cloud' OS image โ— Can be Linux, Windows, ... โ— Small replaceable engine, made to be unimportant
  • 13. Features directly available to the Instance Compute Storage Networking VPNaaS, DBaaS, LBaaS, MaaS, ...
  • 14. Networking in OpenStack (SDN) โ€ข Tenant networks are completely isolated โ€ข Tenants are free to create what they want: โ€ข Any number of layer 2 networks โ€ข Subnets, IP4 / IP6 โ€ข Connect networks via virtual routers โ€ข Connect to a external network, created by admin
  • 15. Tip of the iceberg
  • 16. Storage available to the Instance Ephemeral storage Block storage Object storage Used to... Run operating system and scratch space Add additional persistent storage to a virtual machine (VM) Store data, including VM images Accessed throughโ€ฆ A file system A block device that can be partitioned, formatted, and mounted (such as, /dev/vdc) The REST API Accessible fromโ€ฆ Within a VM Within a VM Anywhere Managed byโ€ฆ OpenStack Compute (nova) OpenStack Block Storage (cinder) OpenStack Object Storage (swift) Persists untilโ€ฆ VM is terminated Deleted by user Deleted by user (or by set expiration date) Sizing determined byโ€ฆ Administrator configuration of size settings, known as flavors User specification in initial request Amount of available physical storage Example of typical usageโ€ฆ 10 GB first disk, 30 GB second disk 1 TB disk 10s of TBs of dataset storage
  • 17. Creating a OpenStack Image Many options are possible, manual and automated There is no image-factory in OpenStack - Create one manually on a libvirt host - Create one semi-automatic with OZ - Create a image-factory production line
  • 18. Common components in cloud images Based on a QCOW2 disk image โ€ข very flexible, rich featured format โ€ข Overhead compared to raw โ€ข Minimal disk image size (deployed instance) โ€ข โ€ข See: http://kashyapc.com/2012/10/04/creating-rapid-thin-provisioned-g uests-using-qemu-backing-files/ See: https://people.gnome.org/~markmc/qcow-image-format.html
  • 19. cloud-init package Capabilities โ€ข Setting a default locale โ€ข Setting a instance hostname โ€ข Generating instance ssh private keys โ€ข Adding ssh keys to a users .ssh/authorized_keys so they can log in โ€ข Setting up ephemeral mount points โ€ข Various tasks to make the system useful
  • 20. The meta data agent Set or request information about the running VM. โ€ข Facts set by OpenStack โ€ข Facts set by user, scripts or third party software โ€ข AWS compatible or OpenStack's version nova meta <instancename or id> set role=database partner=thelastone script="/scripts/database-v1-2014.shโ€ curl http://169.254.169.254/openstack/latest/meta_data.json
  • 21. The metadata agent โ€ข ami-id โ€ข ami-launch-index โ€ข ami-manifest-path โ€ข block-device-mapping โ€ข hostname โ€ข instance-action โ€ข instance-id โ€ข instance-type โ€ข kernel-id โ€ข local-hostname โ€ข local-ipv4 โ€ข placement โ€ข public-hostname โ€ข public-ipv4 โ€ข public-keys โ€ข ramdisk-id โ€ข reservation-id {"random_seed": "yJn2cgiJMI/OJ/StW4mFQnFeR2MaboH/Mt9N0MJ1hzv5 GGvLgiGZ8/kW6tebU6L0kI7D+VCIVvGCq6EnDDb2cbt lenzol26ky8dcqEwnx3qCf4vLpHO+PWONtL7VR2AHR Q2ZIOO9VXnmCiUFudtCGETlXVXdXbcF4M56UsGy36b 166fZGg/iRibcDVcDUzAnByNmd+Vb2WZH/GVNCGb5 k0p/FVk/97SUpC9i5b+4AJiFXx1e5sK/sHi65514KA8AYe +jPRw5qrCbgpypLroAWWNvUEJTh5OmQVs229sFY9x mrIjjUbCg3BhkQnGP6QJ7KQoM2CHROh2cPbOLalaSQ Mh8SlZia2aqk6RaHrRlHkF0bxe/CZYCnDnYwuHlTGUu OdTPYeL87iy8VAQao4sulb0Z4uAojiqYgCw6ZsW3iPKx MvtlKrSkpq+8Clvk1NCplkWj10tWuBNMxgQcazTj+vW +yAuS2Qk1zp/gOYS670/AtpS+S3ycRf700IOVZnmlWD jK12Vt2l8Vs/UooDlvKXBzUoOmrNZeSBguyzIsjn1UTr9 K7ghpdtMBE71aQDM+oKvchesInn9jBU9j4DRhdZ3ZC BFjQheEZKReIUO8rzO/bYYWPcxWEBpVJlqinmkkk8ZV4 bPH5lVgMKFLY+mXygcT/maHNw8fp0ZJEqOjW4c=", "uuid": "118888de-0dbc-40bb-913e-b372ceb673d7", "availability_zone": "nova", "hostname": "custometadatakeys.novalocal", "launch_index": 0, "meta": {"partner": "thelastone", "role": "database", "script": "/scripts/database-v1-2014.sh"}, "public_keys": {"VLAN-120-thelastone-key": "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEApNVrYIHoaCcsUf sSFtArqQJFc3J7aoM0ubUu/j61xjtE9HyhM3aQi5twfNQy cDj0aBw1XF6PZu3yJ6/gPW+UX7YAl1LwgCH03uXSIrC FHxKO3JzGaYbgn5/xmEaRuSzl8qnR82tFntn3k3oBXzU laPspmZZPQ0eJjsp+dF9xZD2JfUgtYm8aN7HnTHg19n +1PF86twDXvRj46ExpwdTqvY0N+nnEaoW1YQOrdxn 2Bz2bt0enXsDaaq1aOmjzItfGBVRB2WJw8hJTz7hGfLp TOh+NYUQ6qv0WTHaw7sSnscP533aKDbUznlfr0ogUE AZ7WWbqPXujETV0+u7SaAMA1Q== Generated by Novan"}, "name": "custometadatakeys"}
  • 22. The Nova Meta-data agent Registry of meta-data available to the instance Provide 'hooks' for puppet and bootstrap scripts
  • 23. Creating your own, via libvirt โ€ข create a qcow2 file โ€ข install the desired OS in the qcow2 file โ€ข tune the OS, install any add-ons โ€ข make the cloud alterations โ€ข install the cloud-init package โ€ข run virt-sysprep โ€ข upload the image to glance
  • 24. Creating your own, via Oz Install operating systems. Customize operating systems. Generate metadata (ICICLE) about operating systems. https://github.com/clalancette/oz/wiki โ€ข Create a Kickstart โ€ข Create a OZ definition file (TDL) # oz-install -a Fedora20-ks.auto -d 4 f20.tdl
  • 25. Installing via Oz (Kickstart) install text keyboard us lang en_US.UTF-8 network --device eth0 --bootproto dhcp rootpw fedora firewall --enabled ssh selinux --enforcing timezone --utc America/New_York bootloader --location=mbr --append="console=tty0 console=ttyS0,115200" zerombr clearpart --all --drives=vda autopart --type=btrfs reboot %packages @core %end
  • 26. Installing via Oz (TDL) <template> <name>f20btrfs</name> <os> <name>Fedora</name> <version>20</version> <arch>x86_64</arch> <install type='url'> <url>http://dl.fedoraproject.org/pub/fedora/linux/releases/20/Fedora/x86_64/os/</url> </install> <rootpw>fedora</rootpw> </os> <description>Fedora 20</description> </template>
  • 27. Setting up a image factoryline with Oz
  • 28. What should be in the image โ€ข Common collection of packages โ€ข OS layout โ€ข Filesystems โ€ข Network โ€ข Management tools