Juju, LXC, OpenStack: Fun with Private Clouds
-
Upload
sameer-verma -
Category
Education
-
view
392 -
download
0
description
Transcript of Juju, LXC, OpenStack: Fun with Private Clouds
Juju, LXC, Openstack: Fun with Private Clouds
Sameer Verma, Ph.D.Professor, Information SystemsCollege of Business, San Francisco State UniversitySan Francisco, CA 94132 USAhttp://verma.sfsu.edu/ [email protected]
Unless noted otherwise
Dept of ComputingPresented at:
Proxy? What proxy?
The Evil of Port 8080The Blessing of MonaConnect
@UWIMona #InsideJoke
me
University of the West Indies
Institutional Academic Partner
Centre of ExcellenceMona School of Business
University of the West IndiesJamaica
http://coe-msb.org/about
Drupal
One Laptop per Child
● Founder:– OLPC San Francisco
– OLPC Jamaica
● Projects in India, Madagascar, Jamaica● Research into adoption and use
The Commons Initiative
● Commons Initiative at San Francisco State University– Gather digital commons on campus
– Connect with upstream commons worldwide
● Some Projects– Software Freedom Day
– OLPC
– National Day of civic Hacking
– Bay Area Drupal Camp (BADCamp)
– OpenStack
– Moodle
– Printrbot (3D printing)
http://commons.sfsu.edu
Virtual Worlds
“You take the red pill - you stay in Wonderland, and I show you how deep the rabbit hole is.”
- Morpheus, The Matrix
Holodeck on StarTrek Enterprise TNG
Holodeck
● Star Trek: http://en.wikipedia.org/wiki/Holodeck
● A simulated reality, where 3D worlds could be simulated with force fields and projections.
● Load, run, freeze and store programs.
Final scene “Star Trek: Enterprise”
http://youtu.be/pXotJu1CapU
“Computer, end program”
As it was in the beginning
● Mainframe virtualization.● IBM's CP-40 research system in 1967.● Compartmentalize large processing
capabilities.● Run processes separately.● Lease “slices” to different customers.
Too many servers?
● Data center challenges– One physical server for one application
● Web● Storage● Authentication● Network
– Power, Cooling, Bandwidth...– Under-utilization
= 490%
40%20%
50%
Rise of Apache
● Apache VirtualHost.● Multiple virtual web hosts in each physical
server.● Led to the adoption of Apache in server
rooms.● Eventually led to Linux to run these websites.● Still one underlying OS.
Single point of failure?
Hypervisor
hypervisor
operating system operating system operating system
hardware
Type 1: Bare Metal (example: kvm)
apps appsapps apps apps apps apps
Hypervisor
hardware
hypervisor
operating system (guest) operating system operating system
operating system (host)
Type 2: Hosted (example: virtualbox)
apps apps apps apps apps appsapps
Paravirtualization
hardware
hypervisor
operating system (modified)
operating system (host)
apps appsapps
com
mon
Example: Linux Container (LXC)
operating system (modified)
apps appsapps
* as a Service
● Software as a Service (SaaS)– Salesforce.com, GoogleDocs
● Platform as a Service (PaaS)– Google App Engine, Heroku, OpenShift
● Infrastructure as a Service (IaaS)– OpenStack, Eucalyptus, CloudStack
● Metal as a Service (MaaS)– Ubuntu MaaS
Public and Private clouds
Public Private
Hybrid clouds
Public Private
+Two reasons: Compliance and spillover
Hypervisors galore!
Hypervisors (xen, kvm, vmware, hyper-v, virtualbox, ...)
https://www.openstack.org/software/
Start local, go global.
http://virtualbox.org
Build on Virtualbox, Deploy in the cloud.
Virtualbox
An extreme example...
Windows 3.1 on Virtualbox
Note: Some of you may not be old enough to remember this!
Moving VM into the cloud
Windows 3.1 in the cloud!
Juju + charms
Juju
charms
LXC
...
Student Projects
● Single machine OpenStack installation– http://commons.sfsu.edu/report-openstack-project-campus
● Private cloud on multiple nodes– http://commons.sfsu.edu/continuing-openstack-project-phase-2
Owncloud example
Juju commands to orchestrate a OwnCloud instance with a MySQL backend.
$ juju deploy owncloud
$ juju deploy mysql
$ juju addrelation owncloud mysql
$ juju expose owncloud
Owncloud with Juju + LXC
$ juju status
Owncloud with Juju + LXC
Owncloud with Juju + LXC
Cloud computing
Made with