Global Open Versity ICT Labs Step-by-Step Install Guide Linux Ubuntu 11.04 Natty UEC v1.1
Global Open Versity
HPC Cloud Computing Hands-on Labs Training Manual
Build Private Cloud with Ubuntu 11.04 Natty
Eucalyptus Enterprise Cloud
Kefa Rabah
Global Open Versity, Vancouver Canada
krabah@globalopenversity.org
www.globalopenversity.org
Table of Contents Page No.
BUILD PRIVATE CLOUD WITH UBUNTU 11.04 NATTY EUCALYPTUS ENTERPRISE CLOUD 2
1.0 Introduction 2
Part 1: Install & Configure Ubuntu 11.04 LTS Server 3
Step 1: Getting Started & Hardware Pre-requisites 3
1.1 Front-end Hardware Requirements 3
1.2 Node(s) Hardware Requirements 3
Step 2: Install Linux Ubuntu 11.04 LTS 4
Step 3: Update Ubuntu 11.04 Operating Systems 20
Part 2: Ubuntu Linux Node Installation 21
Part 3: Publish 23
Step 1: Publish Controllers 23
Step 1: Verify Listener is started 24
Part 4: Cloud provisioning from Ubuntu 25
Step 1: Logging into Ubuntu Cloud Admin console 25
Step 2: Install Euca2ools on the Client Machine, Client01 28
Step 3: Obtain Credentials & Create Key Pairs on Client01 29
Step 4: A closer look at Ubuntu enterprise cloud 32
Step 5: Install an image from the store 33
Step 6: Run an Image 35
Part 5: Need More Training on Linux: 37
Ubuntu Enterprise Cloud Training: 37
Part 6: Hands-on Labs Assignments 38
A GOV Open Access Technical Academic Publications
Enhancing education & empowering people worldwide through eLearning in the 21st Century
1
© April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada
www.globalopenversity.org ICT302 – Build Private Cloud Computing with Ubuntu UEC
Global Open Versity ICT Labs Step-by-Step Install Guide Linux Ubuntu 11.04 Natty UEC v1.1
Global Open Versity
HPC Cloud Computing Hands-on Labs Training Manual
Build Private Cloud with Ubuntu 11.04 Natty
Eucalyptus Enterprise Cloud
By Kefa Rabah, krabah@globalopenversity.org July, 2011 GTS Institute
1.0 Introduction
In this Hands-on Labs session, we’re going to learn how to install, configure, administer and maintenance
of the Linux Ubuntu 11.04 (Natty Narwhal) Enterprise Cloud Computing. It’s expected that Ubuntu 11.04,
Natty Narwhal, will easily become the platform of choice for anybody who intends to build and deploy
large-scale infrastructure, whether you're trying to build the next Facebook, or the next Google, or the next
eBay. May be you want to start on [Amazon's cloud-platform] EC2 and migrate to your own managed
private cloud, Ubuntu 11.04 is going to be the platform for you. The new Natty Narwhal now has a Default
dhcpd server updated from dhcp3 to isc-dhcp (version 4), ISC (or Internet Sharing Connection) is the new
dhcp-server.
There are some great feature e.g., the ease-of-use that the Ubuntu 11.04 (Natty Narwhal) release has
brought with it. One of these changes is the ability to allow the automatic installation of Flash, closed-
source drivers, and support for MP3 and other non-free media while installing Ubuntu. Ubuntu Server
delivers services reliably, predictably and economically - and easily integrates with your existing
infrastructure. It has almost 100 open-source and proprietary application providers certifying their
programs on Ubuntu Server Edition. Ubuntu 11.04 includes Alfresco, Ingres, IBM, VMware, Yahoo and
Zimbra. It also includes improved installation and management tools for Ubuntu Enterprise Cloud (UEC)
and Amazon EC2.
Eucalyptus is now the latest stable point release (2.0.2) with security and efficiency fixes. Cloud-init has
been updated to 0.60. It includes support for resizing of the root file system at first boot, adds minimal
OVF transport (iso) support and allows setting of hostname when first booting. Rightscale support has
been added to cloud-config and cloud-init. Cloud images now have support for being run as an LXC guest.
Some of the supporting technologies that have been packaged, these are Cassandra 0.7.0, ZeroMQ,
Membase, and XtraBackup.
Hand-on Solution:
In this Hands-on Lab session, you’ll learn how to setup virtual network on VMware (you may also use any
other virtual machines like MS VirtualPC, Linux Xen, or VirtualBox from Sun). In this lab session, you’ll
learn how to Build and deploy your Own Private Cloud using Ubuntu 11.04 (Natty) Eucalyptus Enterprise
Cloud Computing Platform. Once you’re done with the lab session you can proceed to build and deploy
your private cloud on physical servers.
2
© April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada
www.globalopenversity.org ICT302 – Build Private Cloud Computing with Ubuntu UEC
Global Open Versity ICT Labs Step-by-Step Install Guide Linux Ubuntu 11.04 Natty UEC v1.1
Part 1: Install & Configure Ubuntu 11.04 LTS Natty Enterprise Cloud
Step 1: Getting Started & Hardware Pre-requisites
In this Hands-on Labs, it’s assumed that your target computer is connected to the internet. After installing
the cluster controller, log into your machine and ensure you perform software updates to bring your
systems up-to-date. In the second part, you will install the node controller.
1.1 Front-end Hardware Requirements
1. For your Front-end hardware requirements, use the following table for a system that will run one or
more of:
• the cloud controller (clc)
• the cluster controller (cc)
• walrus (the S3-like storage service)
• the storage controller (sc)
Table 1: Front-end Hardware Requirements
Hardware Minimum Suggested Notes
for an all-in-one front end, it helps to have at least a dual
CPU 1GHz 2 x 2GHz
core processor
the Java web front end benefits from lots of available
Memory 2GB 4GB
memory
5400rpm 7200rpm slower disks will work, but will yield much longer instance
Disk
IDE SATA startup times
40GB is only enough space for only a single image, cache,
Disk Space 40GB 200GB
etc., Eucalyptus does not like to run out of disk space
machine images are hundreds of MB, and need to be copied
Networking 100Mbps 1000Mbps
over the network to nodes
1.2 Node(s) Hardware Requirements
For other system(s) are nodes, which will run:
• the node controller (nc)
2. These systems will actually run the instances, the requirements are as follows:
3
© April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada
www.globalopenversity.org ICT302 – Build Private Cloud Computing with Ubuntu UEC
Global Open Versity ICT Labs Step-by-Step Install Guide Linux Ubuntu 11.04 Natty UEC v1.1
Table 2: Note Controller Hardware Requirements
Hardware Minimum Suggested Notes
64-bit can run both i386, and amd64 instances; by
VT VT, 64-bit,
CPU default, Eucalyptus will only run 1 VM per CPU core on
extensions Multicore
a Node
Memory 1GB 4GB additional memory means more, and larger guests
5400rpm 7200rpm SATA Eucalyptus nodes are disk-intensive; I/O wait will likely
Disk
IDE or SCSI be the performance bottleneck
images will be cached locally, Eucalyptus does not like
Disk Space 40GB 100GB
to run out of disk space
machine images are hundreds of MB, and need to be
Networking 100Mbps 1000Mbps
copied over the network to nodes
Note: in this Hands-on Labs, it’s assumed that your target computer(s) is connected to the
internet. After installing the operating system, log into your machine and ensure you can perform
software updates to bring your system up-to-date.
Step 2: Install Linux Ubuntu 11.04 LTS Natty Enterprise Cloud
1. Hope over to http://www.ubuntu.com/download/server/download website and download the Linux
Ubuntu 11.04 64-bit ISO which at the time of writing this lab manual was "Ubuntu-11.04-server-
i386.iso" or change as desired.
2. Once you have downloaded the Ubuntu ISO specific to your distribution, you have the option burning
it into CD or just by using the ISO package to install it from your virtual machine, in our case VMware.
3. Fire-up a new virtual machine and perform the initial configuration and setup to use ISO package.
4. Start the virtual machine, and you should be able to see the first Ubuntu installation screen.
5. From Fig. 1, select the language desired and hit Enter key.
4
© April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada
www.globalopenversity.org ICT302 – Build Private Cloud Computing with Ubuntu UEC
Global Open Versity ICT Labs Step-by-Step Install Guide Linux Ubuntu 11.04 Natty UEC v1.1
Fig. 1
6. From Fig. 2, select the option desired and then hit the Enter key to commence installation. In our case
we have selected to Install Ubuntu Enterprise Cloud option.
Fig. 2
5
© April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada
www.globalopenversity.org ICT302 – Build Private Cloud Computing with Ubuntu UEC
Global Open Versity ICT Labs Step-by-Step Install Guide Linux Ubuntu 11.04 Natty UEC v1.1
7. From Fig. 3, Choose language screen, select English option, and hit the Enter key.
Fig. 3
8. From Fig. 4, Choose language screen, Choose a country, select United States option, and hit Enter
Fig. 4
6
© April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada
www.globalopenversity.org ICT302 – Build Private Cloud Computing with Ubuntu UEC
Global Open Versity ICT Labs Step-by-Step Install Guide Linux Ubuntu 11.04 Natty UEC v1.1
9. From the Ubuntu installer main menu screen, Fig. 5, accept the default selected and hit the
Enter key to continue.
Fig. 5
10. From the Ubuntu installer main menu screen, Fig. 6, Origin of keyboard, select USA and hit
the Enter key to continue.
Fig. 6
11. From the Ubuntu installer main menu screen, Fig. 7, Keyboard layout, select USA and hit the
Enter key to continue.
7
© April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada
www.globalopenversity.org ICT302 – Build Private Cloud Computing with Ubuntu UEC
Global Open Versity ICT Labs Step-by-Step Install Guide Linux Ubuntu 11.04 Natty UEC v1.1
Fig. 7
12. From Fig. 8, the Detecting hardware to find CD-ROM drives screen, wait for the system complete
the process.
Fig. 8
13. From Fig. 9, the Loading additional components screen, wait for the system complete the process.
Fig. 9
14. From Fig. 10, the Configure the network screen, enter desired the Hostname:
"cluster01.netalbscloud.com", change as desired, and hit the Tab key to select
and hit the Enter key to continue.
8
© April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada
www.globalopenversity.org ICT302 – Build Private Cloud Computing with Ubuntu UEC
Global Open Versity ICT Labs Step-by-Step Install Guide Linux Ubuntu 11.04 Natty UEC v1.1
Fig. 10
15. From Fig. 11, the Select cloud installation mode screen, leave the cloud control address blank, hit
the Tab key to select and hit the Enter key to continue.
Fig. 11
16. From Fig. 12, the Select cloud installation mode screen, accept the selected default options, hit the
Tab key to select and hit the Enter key to continue.
Fig. 12
17. From Fig. 13, the setting up the clock screen, wait for the system to complete the process.
9
© April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada
www.globalopenversity.org ICT302 – Build Private Cloud Computing with Ubuntu UEC
Global Open Versity ICT Labs Step-by-Step Install Guide Linux Ubuntu 11.04 Natty UEC v1.1
Fig. 13
18. From Fig. 14, the Configure the clock screen, accept the default selection for the time zone, or
change as desired, and then hit the Enter key to continue.
Fig. 14
19. From Fig. 15, the Detecting disks and all other hardware screen, wait for the system to complete
the process.
Fig. 15
20. From Fig. 16, the Starting up the partitioner screen, wait for the system to complete the process.
Fig. 16
21. From Fig. 17, the Partition disks screen, accept the default selection, or change as desired, and then
hit the Enter key to continue.
10
© April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada
www.globalopenversity.org ICT302 – Build Private Cloud Computing with Ubuntu UEC
Global Open Versity ICT Labs Step-by-Step Install Guide Linux Ubuntu 11.04 Natty UEC v1.1
Fig. 17
22. From Fig. 18, the Partition disks screen, accept the default selection, or change as desired, and then
hit the Enter key to continue.
Fig. 18
23. From Fig. 19, the Partition disks screen, select , or change as desired, and then hit the Enter
key to continue.
Fig. 19
24. From Fig. 20, the Partition disks screen, accept the default selection of 21.2GB, or change as
desired, and then hit the Tab key to select and hit the Enter key to continue.
11
© April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada
www.globalopenversity.org ICT302 – Build Private Cloud Computing with Ubuntu UEC
Global Open Versity ICT Labs Step-by-Step Install Guide Linux Ubuntu 11.04 Natty UEC v1.1
Fig. 20
25. From Fig. 21, the Starting up the partitioner screen, wait for the system to complete the process.
Fig. 21
26. From Fig. 22, the Partition disks screen, read the warning and then select , or change as
desired, and then hit the Enter key to continue.
Fig. 22
27. From Fig. 23, the Partition disks screen, wait for the system to complete the process.
12
© April 2007, Kefa Rabah, Global Open Versity, Vancouver Canada
www.globalopenversity.org ICT302 – Build Private Cloud Computing with Ubuntu UEC
Global Open Versity ICT Labs Step-by-Step Install Guide Linux Ubuntu 11.04 Natty UEC v1.1
Fig. 23
28. From Fig. 24, the Installing the base system screen, wait for the system to complete the process.
Fig. 24
29. From Fig. 25, the Setup users and passwords screen, enter the full name of the user: "Cloud
Admin", or change as desired, and then select and hit the Enter key to continue.
Fig. 25