Eucalyptus Tutorial HPC and Cloud Computing Workshop http://portal.nersc.gov/project/magellan/euca-tutorial/abc.html



Similar documents
Building a Private Cloud Cloud Infrastructure Using Opensource

Eucalyptus Cloud Computing Platform User s Guide. Enterprise Edition 2.0

A technical whitepaper describing steps to setup a Private Cloud using the Eucalyptus Private Cloud Software and Xen hypervisor.

THE EUCALYPTUS OPEN-SOURCE PRIVATE CLOUD

Eucalyptus User Guide

Eucalyptus User Guide

Setting up of an Open Source based Private Cloud

Implementation of Database as a Service in a Private Cloud using EUCALYPTUS

Implementation of Private Cloud using Eucalyptus and an open source Operating System

Ubuntu 下 的 云 计 算. UbuntuChin 互 动 社 区 王 大 亮

AdWhirl Open Source Server Setup Instructions

IaaS Implementation of a Private Cloud using Open Source Technology

Moving Drupal to the Cloud: A step-by-step guide and reference document for hosting a Drupal web site on Amazon Web Services

MIFOS 2.2 ON CLOUD. Arun Philip Jacob Latha Madhuri Pratti

OpenStack Cloud Deployment on UCS B-Series Servers and UCS Fabric

Eucalyptus User Console Guide

AWS and Cisco OpenStack Private Cloud API Compatibility

Online Backup Guide for the Amazon Cloud: How to Setup your Online Backup Service using Vembu StoreGrid Backup Virtual Appliance on the Amazon Cloud

MATLAB Distributed Computing Server Cloud Center User s Guide

How to Backup XenServer VM with VirtualIQ

Introduction to analyzing big data using Amazon Web Services

Comsol Multiphysics. Running COMSOL on the Amazon Cloud. VERSION 4.3a

Chapter 9 PUBLIC CLOUD LABORATORY. Sucha Smanchat, PhD. Faculty of Information Technology. King Mongkut s University of Technology North Bangkok

How to Run Spark Application

13.1 Backup virtual machines running on VMware ESXi / ESX Server

OnCommand Performance Manager 1.1

Amazon Web Services EC2 & S3

Zend Server Amazon AMI Quick Start Guide

Using The Hortonworks Virtual Sandbox

Altor Virtual Network Security Analyzer v1.0 Installation Guide

Getting Started with Amazon EC2 Management in Eclipse

FleSSR Project: Installing Eucalyptus Open Source Cloud Solution at Oxford e- Research Centre

Deploying a Virtual Machine (Instance) using a Template via CloudStack UI in v4.5.x (procedure valid until Oct 2015)

Implementing Microsoft Windows Server Failover Clustering (WSFC) and SQL Server 2012 AlwaysOn Availability Groups in the AWS Cloud

Prerequisites and Configuration Guide

VMTurbo Operations Manager 4.5 Installing and Updating Operations Manager

VXOA AMI on Amazon Web Services

Cloud Storage Quick Start Guide

Eucalyptus Hybrid Cloud Guide

USER CONFERENCE 2011 SAN FRANCISCO APRIL Running MarkLogic in the Cloud DEVELOPER LOUNGE LAB

Using and Contributing Virtual Machines to VM Depot

Server Installation Manual 4.4.1

Distributed convex Belief Propagation Amazon EC2 Tutorial

Hadoop Data Warehouse Manual

Cloud Computing For Bioinformatics. EC2 and AMIs

CloudCIX Bootcamp. The essential IaaS getting started guide.

Introduction to Cloud computing. Viet Tran

The KOALA Cloud Management Service

WinSCP PuTTY as an alternative to F-Secure July 11, 2006

Amazon Elastic Compute Cloud Getting Started Guide. My experience

An Oracle White Paper September Oracle WebLogic Server 12c on Microsoft Windows Azure

Private Cloud in Educational Institutions: An Implementation using UEC

Biznet GIO Cloud Connecting VM via Windows Remote Desktop

Installing and Scaling out Ubuntu Enterprise Cloud in Virtual Environment

Talari Virtual Appliance CT800. Getting Started Guide

LSKA 2010 Survey Report I Device Drivers & Cloud Computing

In order to upload a VM you need to have a VM image in one of the following formats:

Deploy XenApp 7.5 and 7.6 and XenDesktop 7.5 and 7.6 with Amazon VPC

VX 9000E WiNG Express Manager INSTALLATION GUIDE

Alfresco Enterprise on AWS: Reference Architecture

System Administration Training Guide. S100 Installation and Site Management

Cedric Rajendran VMware, Inc. Security Hardening vsphere 5.5

Using Google Compute Engine

Cloud Models and Platforms

KeyControl Installation on Amazon Web Services

How To Install Storegrid Server On Linux On A Microsoft Ubuntu 7.5 (Amd64) Or Ubuntu (Amd86) (Amd77) (Orchestra) (For Ubuntu) (Permanent) (Powerpoint

HCIbench: Virtual SAN Automated Performance Testing Tool User Guide

Department of Veterans Affairs VistA Integration Adapter Release Enhancement Manual

DVS-100 Installation Guide

CSE 344 Introduction to Data Management. Section 9: AWS, Hadoop, Pig Latin TA: Yi-Shu Wei

This computer will be on independent from the computer you access it from (and also cost money as long as it s on )

ServerPronto Cloud User Guide

Virtual Appliance Setup Guide

Eucalyptus 3.2: Design, Build, Manage

Install Guide for JunosV Wireless LAN Controller

Setting Up Scan to SMB on TaskALFA series MFP s.

WHMCS LUXCLOUD MODULE

Migration of virtual machine to cloud using Openstack Python API Clients

How To Set Up Egnyte For Netapp Sync For Netapp

VMUnify EC2 Gateway Guide

How To Backup In Cisco Uk Central And Cisco Cusd (Cisco) Cusm (Custodian) (Cusd) (Uk) (Usd).Com) (Ucs) (Cyse

Web Application Firewall

Comsol Multiphysics. Running COMSOL on the Amazon Cloud. VERSION 4.3b

Scyld Cloud Manager User Guide

Spectrum Technology Platform. Version 9.0. Spectrum Spatial Administration Guide

Cloud Computing. Command Line Tools

Configuring MailArchiva with Insight Server

Knowledge Base Article: Article 218 Revision 2 How to connect BAI to a Remote SQL Server Database?

INF-110. GPFS Installation

2) Xen Hypervisor 3) UEC

Release Notes for McAfee(R) VirusScan(R) Enterprise for Linux Version Copyright (C) 2014 McAfee, Inc. All Rights Reserved.

MATLAB on EC2 Instructions Guide

NETASQ SSO Agent Installation and deployment

Cloud Computing: Amazon Web Services

Comparison of Open Source Cloud System for Small and Medium Sized Enterprises

Extending Remote Desktop for Large Installations. Distributed Package Installs

Cloud Providers, SciCloudand

Transcription:

Eucalyptus Tutorial HPC and Cloud Computing Workshop http://portal.nersc.gov/project/magellan/euca-tutorial/abc.html Iwona Sakrejda Lavanya Ramakrishna Shane Canon June24th, UC Berkeley

Tutorial Outline - I Eucalyptus Account and Credentials How to talk to the cloud the euca2ools Eucalyptus candy store pre-loaded images VM access Firewall control, security groups authentication private keys VM life cycle start an instance, instance types Monitor Console access reboot terminate

Tutorial Outline - II VM Storage Hybridfox a GUI for the cloud How to customize and save images Build your own cluster Volatile Local storage on VM S3 storage - Walrus Elastic Block Storage Why clusters? Look under the hood of a cluster building script Just do it! Where to look for help Cleanup 3

Eucalyptus Account and Credentials In your browsers go to https://mageuca.nersc.gov:8443/#login You will be asked for: Username: train<n> Password: makeupyourown Password, again: Full Name: Your Name Email address: for notification 4

Credentials Go to https://mageuca.nersc.gov:8443 Select Credentials from the top bar Click on Download Credentials scp zip file with credentials to carver.nersc.gov scp euca2-$user-x509(3).zip carver.nersc.gov:~/. ssh to carver.nersc.gov mkdir ~/.euca mv euca2-$user-x509(3).zip.euca/. cd ~/.euca unzip euca2-$user-x509(3).zip.euca/. chmod 0700 ~/.euca chmod 0600 ~/.euca/* Set up your environment and look at what s new source ~/.euca/eucarc printenv Create ssh keys to access your VMs cd ~/.euca euca-add-keypair $USER-euca > $USER-euca.private cat $USER-euca.private 5

How to talk to the clouds? euca2ools command-line tools for interacting with cloud and compatible with Amazon EC2 and S3 services. can be used with both Amazon's services and with installations of the Eucalyptus open-source cloudcomputing infrastructure. inspired by command-line tools distributed by Amazon (api-tools and ami-tools) and largely accept the same options and environment variables. However, implemented from scratch in Python Summary of features: Query of availability zones (i.e. clusters in Eucalyptus) SSH key management (add, list, delete) VM management (start, list, stop, reboot, get console output) Security group management Volume and snapshot management (attach, list, detach, create, bundle, delete) Image management (bundle, upload, register, list, deregister) IP address management (allocate, associate, list, release) ssh carver.nersc.gov Source ~/.euca/euca2ools module load tig euca2ools ls l $EUCA_HOME/bin 6

Stored Images https://mageuca.nersc.gov:8443/ 7

Stored Images euca-describe-images eki-a86f17cd IMAGE eki-a86f17cd centos-kernel-bucket/vmlinuz-2.6.28-11generic.manifest.xml admin available public x86_64 kernel euca-describe-images eri-1062190b IMAGE eri-1062190b centos-ramdisk-bucket/initrd.img-2.6.28-11generic.manifest.xml admin available public x86_64 ramdisk euca-describe-images emi-5b7b12ee IMAGE emi-5b7b12ee canon-torque-bucket/torque1.0.1.manifest.xml canon available public x86_64 machine eri-1062190b eki-a86f17cd 8

Security Groups Security groups are sets of networking rules (in effect a firewall) applied to all VM instances associated with a group. Security group defines the access rules for all VM instances associated with a group. User can specify ingress rules, such as allowing ping (ICMP) or SSH (TCP, port 22) traffic to reach VMs in a specific security group. VM instance, unless otherwise specified at instance run-time, is assigned to a "default" security group that denies incoming network traffic from all sources. To allow login and usage of a new VM instance you must authorize network access to the default security group with the euca-authorize command. Security groups are available in MANAGED and MANAGED-NOVLAN Mode. euca-authorize --help Add a new rule to a security group. euca-authorize [-P, --protocol protocol] [-p, --port-range port_range] [-t, --icmp-type-code type:code] [-o, --source-group source_group] [-u, --source-group-user source_group_user] [-s, --source-subnet source_subnet] [-h, --help] [--version] [--debug] group_name euca-authorize -P tcp -p 22 -s 0.0.0.0/0 default 9

Let s run.. Decide what image you want to run Decide what kind of VM you need euca-run-instances -k $USER-euca -t m1.small --kernel eki-a86f17cd --ramdisk eri-1062190b emi-5b7b12ee 10

and look euca-describe-instances i-3b4d06f3 RESERVATION r-44040811 sakrejda INSTANCE i-3b4d06f3 emi-5b7b12ee image ID 128.55.70.210 public IP 192.168.3.194 private IP running state sakrejda-euca key m1.large image type 2011-06-18T00:11:50.18Z date started euca cluster name eki-a86f17cd kernel ID eri-1062190b RAM ID default euca-get-console-output i-3b4d06f3 11

Reboot or terminate? Reboot euca-reboot-instances <instance id>[,<another instance id> ] same as if you rebooted real system instance does not go away modifications persist Terminate euca-terminate-instances <instance id>[,<another instance id> ] the instance goes away all modifications lost the right thing to do when you are done with your task Eucalyptus has no time limits and will not clean up after you! 12

VM Storage Volatile storage on the node -bash-3.2# df Filesystem /dev/vda1 /dev/vda2 1K-blocks Used Available Use% Mounted on 3144632 1106204 1878684 38% / 6419528 52 6093376 1% /mnt /dev/vda2 partition will be created for you You need to mount this partition Data will vanish when you terminate the instance Walrus (s3 storage) Images are kept in Walrus Any data can be uploaded/downloaded from your client as well as the VM Tools exist to communicate with Walrus (3s-curl) http://open.eucalyptus.com/wiki/s3curl 13

Elastic Block Storage EBS provides block level storage volumes for use with instances. EBS volumes are off-instance storage that persists independently from the life of an instance. EBS can be attached to a running instance and exposed as a device within the instance. EBS is particularly suited for applications that require a database, file system, or access to raw block level storage. euca-create-volume s size -z zone -s, --size size of the volume (in GiB). -z, --zone availability zone to create the volume in euca-describe-volumes <volume id> euca-attach-volume i <instance_id> -d /dev/vdb <volume id> 14

Hybridfox Download Hybridfox from http://code.google.com/p/hybridfox/ Configure following instructions http://yogeshg1987.in/blog/ 2010/06/using-hybridfox-with-eucalyptus/ Add http://mageuca.nersc.gov:8773/services/eucalyptus to regions Run! 15

Hybridfox 16

How to customize and save images Get your credentials into a running instance (scp) source /root/.euca/eucarc Make any modifications you need, install packages, change configuration euca-bundle-vol --. -s, --size Size for the image in MB (default: 10GB or 10240MB). -p, --prefix The prefix for the bundle image files. (default: image name); let s you keep several images in one bucket. --[no-]inherit Add (or do not add) instance metadata to the bundled image. Inherit is set by default (http://docs.amazonwebservices.com/awsec2/latest/userguide/ index.html?instancedata-data-categories.html). -e, --exclude Comma-separated list of directories to exclude (/root/.euca/eucarc) -r, --arch Target architecture for the image('x86_64' or 'i386. -v, --volume Path to mounted volume to create the bundle from (default: "/"). 17

How to save a customized image Make sure time is set properly in your instance Upload your customized image to the server euca-upload-bundle -b, --bucket bucket name -m, --manifest manifest_path You ll get the path to the manifest at the end of the euca-bundle-vol Register the uploaded image euca-register image_location image_location - - path to the uploaded image (bucket/manifest) you ll get an image ID when the process works Check that the image is available euca-describe-images <image id> 18

/root/mkbundle -bash-3.2# more mkbundle #!/bin/sh KERNEL=eki-A86F17CD RD=eri-1062190B VERSION=torque1.0.1 EUCA=/root/.euca. $EUCA/eucarc # Get the username from the cert USER=$(openssl x509 -in $EC2_CERT -subject grep subject sed 's/.*o=//' sed 's/\/.*// ) BDIR=/mnt BUCKET=${USER}-torque-bucket IMG=$VERSION.manifest.xml EXCLUDE=$EUCA, /root/.ssh,$bdir/*, /apps,/global euca-bundle-vol --kernel $KERNEL --ramdisk $RD -d $BDIR -s 3120 -r x86_64 --no-inherit -e $EXCLUDE -p $VERSION euca-upload-bundle -b $BUCKET -m $BDIR/$IMG --debug euca-register $BUCKET/$IMG 19

Build your own cluster! Why a cluster? virtualcluster module load tig virtualcluster module show virtualcluster documentation available in: $VIRTUALCLUSTER_HOME/doc/README vc-launcher options vc-launcher newcluster <nonodes> vc-launcher addnodes <nonodes> vc-launcher terminatecluster <nonodes> vc-launcher pubcluster <nonodes> vc-launcher pubclusterebs <nonodes> <path to file with ebs info> 20

Clean up! Terminate all your running instances vc-launcher terminatecluster <nonodes> and check ec2-describe-instances ec2-terminate-instances Delete images Delete S3 buckets Delete EBS volumes Thank You! 21