22
はじめての Eucalyptus 2014/12/21 MayumiK0

Eucalyptus calendar 20141221

Embed Size (px)

Citation preview

  • Eucalyptus

    2014/12/21 MayumiK0

  • Eucalyptus

  • http://www.slideshare.net/shidat1234/eucalyptus-adventcalendar20141217

  • VM

  • 2013

  • Eucalyptus

  • Eucalyptus

    2014

  • bash

  • [root@eucalyptus ~]# uname -a Linux eucalyptus 2.6.32-431.el6.x86_64 #1 SMP Fri Nov 22 03:15:09 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux [root@eucalyptus ~]# bash

  • [Precheck] Checking if Chef Client is installed which: no chef-solo in (/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin) ===== [INFO] Chef not found. Installing Chef Client

    EucalyptusChef

  • [Prep] Tarring up cookbooks ===== Welcome to the Faststart installer! We're about to turn this system into a single-system Eucalyptus cloud. Note: it's STRONGLY suggested that you accept the default values where they are provided, unless you know that the values are incorrect. What's the physical NIC that will be used for bridging? (eth0)

  • 12/02 http://giraffeforestg.blog.fc2.com/blog-entry-187.html@giraffeforestg 12/20 http://tzpst.hatenablog.com/entry/2014/12/20/182526@saito_hideki

  • chef [root@eucalyptus ~]# pwd /root [root@eucalyptus ~]# ls anaconda-ks.cfg cookbooks install.log node.json ciab.json cookbooks.tgz install.log.syslog

  • Cookbook1 [root@eucalyptus cookbooks]# ls */* eucalyptus/Berksfile ntp/CONTRIBUTING.md selinux/metadata.rb eucalyptus/CHANGELOG.md ntp/Gemfile yum/Berksfile eucalyptus/LICENSE ntp/LICENSE yum/CHANGELOG.md eucalyptus/README.md ntp/README.md yum/CONTRIBUTING.md eucalyptus/Vagrantfile ntp/Rakefile yum/Gemfile eucalyptus/bootstrap.json ntp/TESTING.md yum/Guardfile eucalyptus/eucadev.md ntp/chefignore yum/LICENSE eucalyptus/metadata.json ntp/metadata.rb yum/README.md eucalyptus/metadata.rb selinux/CHANGELOG.md yum/Rakefile eucalyptus/motherbrain.rb selinux/CONTRIBUTING yum/TESTING.md ntp/Berksfile selinux/LICENSE yum/metadata.rb ntp/CHANGELOG.md selinux/README.md

  • Cookbook2 eucalyptus/attributes: default.rb eucalyptus/environments:

    edge-nightly.json eucalyptus/eucadev:

    post.sh prep.sh eucalyptus/faststart: HOWTO.txt get-started.txt nuke.json

    README install-emis nuke.sh ciab-template.json install-nc.sh simple-cloud-in-a-box.sh cloud-in-a-box.sh new-nuke.sh tutorials

    faststart-logger.priv node-template.json eucalyptus/libraries: enterprise.rb key-sync.rb

  • Cookbook3 eucalyptus/recipes: cloud-controller.rb eutester.rb user-console.rb cloud-service.rb install-source.rb user-facing.rb cluster-controller.rb node-controller.rb vmware-broker.rb

    configure.rb nuke.rb walrus.rb create-first-resources.rb register-components.rb default.rb storage-controller.rb

    eucalyptus/roles: cloud-in-a-box.json cluster.json endpoints.json frontend.json node.json

    eucalyptus/templates: default

    eucalyptus/test: integration

  • Cooknook/eucalyptus -rw-r--r--. 1 root root 123 12 22 06:52 2014 Berksfile -rw-r--r--. 1 root root 468 12 22 06:52 2014 CHANGELOG.md -rw-r--r--. 1 root root 598 12 22 06:52 2014 LICENSE -rw-r--r--. 1 root root 4671 12 22 06:52 2014 README.md

    -rw-r--r--. 1 root root 5908 12 22 06:52 2014 Vagrantfile drwxr-xr-x. 2 root root 4096 12 22 06:52 2014 attributes -rw-r--r--. 1 root root 397 12 22 06:52 2014 bootstrap.json

    drwxr-xr-x. 2 root root 4096 12 22 06:52 2014 environments drwxr-xr-x. 2 root root 4096 12 22 06:52 2014 eucadev -rw-r--r--. 1 root root 10907 12 22 06:52 2014 eucadev.md drwxr-xr-x. 4 root root 4096 12 22 06:52 2014 faststart drwxr-xr-x. 2 root root 4096 12 22 06:52 2014 libraries -rw-r--r--. 1 root root 5306 12 22 06:52 2014 metadata.json -rw-r--r--. 1 root root 352 12 22 06:52 2014 metadata.rb

    -rw-r--r--. 1 root root 2354 12 22 06:52 2014 motherbrain.rb drwxr-xr-x. 2 root root 4096 12 22 06:52 2014 recipes drwxr-xr-x. 2 root root 4096 12 22 06:52 2014 roles drwxr-xr-x. 3 root root 4096 12 22 06:52 2014 templates

    drwxr-xr-x. 3 root root 4096 12 22 06:52 2014 test

  • eucadev.md1 [root@eucalyptus eucalyptus]# cat eucadev.md ### **eucadev** _tools for Eucalyptus developers and testers_ These tools allow one to deploy a Eucalyptus cloudin a Vagrant-provisioned VM or in a cloud instance from AWS or Eucalyptuswith minimal effort. Currently, only single-node installations in virtual resources are supported, but we have plans to support multiple nodes, bare-metal provisioining, and more.

    https://github.com/eucalyptus/eucalyptus-cookbook/blob/

    master/eucadev.md

  • Vagrant

  • eucadev.md2 ### Dev/test environment in a VirtualBox VM This method produces a dev/test environment in a single virtual machine, with all Eucalyptus components deployed in it. By default, components will be built from latest source, which can be modified and immediately tested on the VM. The source will be located on a 'synced folder' (`eucalyptus-src`), which can be edited on the host system but built on the guest system. Alternatively, you can install from latest packages, saving time.

    1. Install [VirtualBox](https://www.virtualbox.org) 2. Install [Vagrant](http://www.vagrantup.com/) >= 1.5.2 3. Install [git](http://git-scm.com)

    4. Install [ChefDK](https://downloads.chef.io/chef-dk/) 5. Install vagrant plugins $ vagrant plugin install vagrant-berkshelf --plugin-version '>= 2.0.1'

    $ vagrant plugin install vagrant-omnibus

  • eucadev.md3 6. Check out [eucadev](https://github.com/eucalyptus/eucalyptus-cookbook/eucadev.md) (ideally [fork](http://help.github.com/fork-a-repo/) it and clone the fork to your local machine, so you can contribute):

    $ git clone https://github.com/eucalyptus/eucalyptus-cookbook.git

    7. *Optionally:* Check the default parameters in `eucadev/Vagrantfile` and `eucadev/roles/cloud-in-a-box.json` * `install-type` is `"source"` by default. Set the value to `"packages"` for an RPM-based installation, which can take less than half the time of a source install (e.g., 20 min instead of 48), but won't allow you to edit and re-deploy code easily. * In Vagrantfile, `memory` is 3GB (`3072`) by default. For a source-based install without a Web console, you may be able to get away with less, such as 1GB. Giving the VM more should improve performance.

    8. Start the VM and wait for eucadev to install Eucalyptus in it (may take a long time, _20-60 min_ or more):

    $ cd eucadev; vagrant up