Fedora Draft Documentation Cloud Guide
Total Page:16
File Type:pdf, Size:1020Kb
Fedora Draft Documentation Cloud Guide Fedora in the cloud. Jared Smith Eric Christensen Kaleb Keithley Robyn Bergeron Cloud Guide Draft Fedora Draft Documentation Cloud Guide Fedora in the cloud. Edition 16.4 Author Jared Smith [email protected] Author Eric Christensen [email protected] Author Kaleb Keithley [email protected] Author Robyn Bergeron [email protected] Copyright © 2010-2011 Fedora Project Contributors. The text of and illustrations in this document are licensed by Red Hat under a Creative Commons Attribution–Share Alike 3.0 Unported license ("CC-BY-SA"). An explanation of CC-BY-SA is available at http://creativecommons.org/licenses/by-sa/3.0/. The original authors of this document, and Red Hat, designate the Fedora Project as the "Attribution Party" for purposes of CC-BY-SA. In accordance with CC-BY-SA, if you distribute this document or an adaptation of it, you must provide the URL for the original version. Red Hat, as the licensor of this document, waives the right to enforce, and agrees not to assert, Section 4d of CC-BY-SA to the fullest extent permitted by applicable law. Red Hat, Red Hat Enterprise Linux, the Shadowman logo, JBoss, MetaMatrix, Fedora, the Infinity Logo, and RHCE are trademarks of Red Hat, Inc., registered in the United States and other countries. For guidelines on the permitted uses of the Fedora trademarks, refer to https://fedoraproject.org/wiki/ Legal:Trademark_guidelines. Linux® is the registered trademark of Linus Torvalds in the United States and other countries. Java® is a registered trademark of Oracle and/or its affiliates. XFS® is a trademark of Silicon Graphics International Corp. or its subsidiaries in the United States and/or other countries. MySQL® is a registered trademark of MySQL AB in the United States, the European Union and other countries. All other trademarks are the property of their respective owners. The Cloud Guide contains information on building and managing your own cloud using free and open source solutions. Draft Draft Preface v 1. Document Conventions ................................................................................................... v 1.1. Typographic Conventions ...................................................................................... v 1.2. Pull-quote Conventions ........................................................................................ vi 1.3. Notes and Warnings ........................................................................................... vii 2. We Need Feedback! ...................................................................................................... vii 1. Cloud Concepts 1 1.1. An Introduction into Cloud Services using Fedora .......................................................... 1 1.1.1. What is Cloud Computing .................................................................................. 1 1.1.2. Types of Cloud Services .................................................................................... 1 1.1.3. Infrastructure as a Service ................................................................................. 1 1.1.4. Platform as a Service ........................................................................................ 1 1.1.5. Software as a Service ....................................................................................... 1 2. Using Fedora in the Cloud 3 2.1. Amazon EC2 ............................................................................................................... 3 2.1.1. Overview of EC2 ............................................................................................... 3 2.1.2. EC2 concepts .................................................................................................... 3 2.1.3. Signing up for an EC2 account .......................................................................... 4 2.1.4. Connecting to EC2 using euca2ools ................................................................... 6 2.1.5. Running EC2 Instances ..................................................................................... 8 2.1.6. Using Elastic Block Storage (EBS) ................................................................... 10 2.2. BoxGrinder ................................................................................................................. 12 2.2.1. Installing BoxGrinder ........................................................................................ 12 2.2.2. Using BoxGrinder to Create a Fedora Image ..................................................... 13 2.2.3. Using BoxGrinder to Create a Fedora Instance on Amazon EC2 ......................... 13 2.2.4. BoxGrinder Plugins and Platforms .................................................................... 13 3. Using Tools in Fedora to Manage the Cloud 15 3.1. Deltacloud .................................................................................................................. 15 3.1.1. Overview of Deltacloud .................................................................................... 15 3.1.2. Typical Use Cases for Deltacloud ..................................................................... 15 3.1.3. Getting Started with Deltacloud ........................................................................ 15 3.2. Aeolus ....................................................................................................................... 15 3.3. Matahari .................................................................................................................... 15 4. Building your own cloud infrastructure using Fedora 17 4.1. Infrastructure as a Service (IaaS) ................................................................................ 17 4.1.1. Creating your own cloud with Openstack ........................................................... 17 4.1.2. CloudStack ...................................................................................................... 17 4.1.3. Sheepdog ........................................................................................................ 18 4.1.4. HekaFS ........................................................................................................... 18 4.2. Platform as a Service (PaaS) ...................................................................................... 19 4.2.1. What is OpenShift? .......................................................................................... 19 4.3. Software as a Service (SaaS) ..................................................................................... 19 5. Using Fedora to Create Cloud Images 21 5.1. Creating cloud images using Fedora ........................................................................... 21 6. Storage in the Cloud 23 6.1. Ceph ......................................................................................................................... 23 6.2. Amazon S3 ................................................................................................................ 23 6.2.1. Overview of S3 ................................................................................................ 23 A. Revision History 25 Index 27 iii iv Draft Draft Preface 1. Document Conventions This manual uses several conventions to highlight certain words and phrases and draw attention to specific pieces of information. In PDF and paper editions, this manual uses typefaces drawn from the Liberation Fonts1 set. The Liberation Fonts set is also used in HTML editions if the set is installed on your system. If not, alternative but equivalent typefaces are displayed. Note: Red Hat Enterprise Linux 5 and later includes the Liberation Fonts set by default. 1.1. Typographic Conventions Four typographic conventions are used to call attention to specific words and phrases. These conventions, and the circumstances they apply to, are as follows. Mono-spaced Bold Used to highlight system input, including shell commands, file names and paths. Also used to highlight keycaps and key combinations. For example: To see the contents of the file my_next_bestselling_novel in your current working directory, enter the cat my_next_bestselling_novel command at the shell prompt and press Enter to execute the command. The above includes a file name, a shell command and a keycap, all presented in mono-spaced bold and all distinguishable thanks to context. Key combinations can be distinguished from keycaps by the hyphen connecting each part of a key combination. For example: Press Enter to execute the command. Press Ctrl+Alt+F2 to switch to the first virtual terminal. Press Ctrl+Alt+F1 to return to your X-Windows session. The first paragraph highlights the particular keycap to press. The second highlights two key combinations (each a set of three keycaps with each set pressed simultaneously). If source code is discussed, class names, methods, functions, variable names and returned values mentioned within a paragraph will be presented as above, in mono-spaced bold. For example: File-related classes include filesystem for file systems, file for files, and dir for directories. Each class has its own associated set of permissions. Proportional Bold This denotes words or phrases encountered on a system, including application names; dialog box text; labeled buttons; check-box and radio button labels; menu titles and sub-menu titles. For example: Choose System Preferences Mouse from the main menu bar to launch Mouse Preferences. In the Buttons tab, click the Left-handed mouse