Difference between revisions of "Ubuntu Enterprise Cloud"

From OnnoWiki
Jump to navigation Jump to search
 
(26 intermediate revisions by 2 users not shown)
Line 1: Line 1:
==Objective==
+
==Cloud computing di Ubuntu==
  
From this Tutorial you will learn how to install, configure, register and perform several operations on a basic UEC setup that results in a cloud with a one controller "front-end" and one or several node(s) for running Virtual Machine (VM) instances. You will also use examples to help get you started using your own private compute cloud.  
+
Ubuntu menyederhanakan komplexitas [[cloud computing]]. [[Cloud]] dapat dibuat untuk dapat di integrasikan dengan Amazon EC2 atau membuat private cloud dengan [[hardware]] sendiri. Edisi [[Server]] [[Ubuntu]] menolong kita untuk membuat dan mengontrol ke dua-nya.
  
 +
Sepertinya target Eucalyptus membuat sistem seperti Amazon EC2, Eucalyptus sendiri menggunakan Libvirt. Kelebihannya di [[clustering]] dan kompatibel dengan Amazon EC2.
  
 +
Kalau tidak perlu [[clustering]] naga-naganya virsh dan virt-manager masih lebih ringan dan mudah, sama-sama bisa kontrol Xen dan Qemu/KVM, pada akhirnya semua tergantung kebutuhan yang ada juga.
  
==Download==
+
==Kenapa Ubuntu?==
  
* Download iso Ubuntu Server dari
+
Ubuntu adalah langkah tercepat untuk membuat reliable [[cloud]] untuk usaha anda. Ubuntu adalah satu-satu-nya distribusi [[Linux]] yang menyertakan semua komponen yang anda butuhkan untuk membuat [[cloud]] secara langsung.
  
http://www.ubuntu.com/server/get-ubuntu/download
+
==Private cloud==
  
 +
[[Private cloud]] memberikan kita kemampuan dari [[cloud computing]] menggunakan infrastruktur [[IT]] yang kita miliki. Sehingga kita akan memperoleh keuntungan [[cloud computing]] dibelakang keamanan dari [[firewall]] kita. Menjalankan beban dan langsung jalan. Mengembangkan dan mengecilkan kapasitas komputasi menyesuaikan dengan aplikasi yang kita butuhkan.
  
 +
==Public cloud==
  
==STEP 1: Prerequisites==
+
Amazon Elastic Compute Cloud (EC2) memungkinkan kita untuk membuat virtual system on-demand untuk hampir semua skala tanpa perlu melakukan investasi [[hardware]]. Amazon EC2 cocok sekali dengan modularitas [[Ubuntu Enterprise Cloud]], kemampuan [[virtualisasi]], berbagai aplikasi dan performance yang di optimisasi.
  
To deploy a minimal cloud infrastructure, you’ll need at least two dedicated systems:
+
==Guide / Buku==
  
* a front end
+
* [[Ubuntu Enterprise Cloud: Panduan Untuk Pemula]]
* one or more node(s)
+
* [[Ubuntu Enterprise Cloud: Catatan kecil Instalasi & Operasi]]
 +
* [[Ubuntu Enterprise Cloud: Troubleshooting]]
 +
* [[Ubuntu Enterprise Cloud: Membuat Image Sendiri]]
 +
* [[Ubuntu Enterprise Cloud: Alternatif Cara Menjalankan Instance]]
 +
* [[Ubuntu Enterprise Cloud: Publish Tarball ke Cloud Controller]]
 +
* [[Ubuntu Enterprise Cloud: Menjalankan CC dan NC di satu mesin]]
 +
* [[Ubuntu Enterprise Cloud: Mengoperasikan tanpa Internet]]
  
The following are recommendations, rather than fixed requirements. However, our experience in developing this documentation indicated the following suggestions.
+
==e-book==
  
 
+
* http://cssoss.wordpress.com/2010/06/22/pdf-version-of-eucalyptus-beginners-guide-uec-edition/
===Front End===
+
* http://cssoss.wordpress.com/2010/05/10/eucalyptus-beginner%E2%80%99s-guide-%E2%80%93-uec%C2%A0edition/
 
+
* [[Ubuntu Enterprise Cloud: Panduan Untuk Pemula]]
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)
 
 
 
{| border="1" cellpadding=2 style="border-collapse: collapse"
 
! Hardware
 
! Minimum
 
! Suggested
 
! Notes
 
|-
 
| CPU
 
| 1GHz
 
| 2 x 2GHz
 
| for an all-in-one front end, it helps to have at least a dual core processor
 
|-
 
| Memory
 
| 2GB
 
| 4GB
 
| the Java web front end benefits from lots of available memory
 
|-
 
| Disk
 
| 5400rpm IDE
 
| 7200rpm SATA
 
| slower disks will work, but will yield much longer instance startup times
 
|-
 
| Disk Space
 
| 40GB
 
| 200GB
 
| 40GB is only enough space for only a single image, cache, etc., Eucalyptus does not like to run out of disk space
 
|-
 
| Networking
 
| 100Mbps
 
| 1000Mbps
 
| machine images are hundreds of MB, and need to be copied over the network to nodes
 
|}
 
 
 
 
 
===Node(s)===
 
 
 
The other system(s) are nodes, which will run:
 
 
 
* the node controller (nc)
 
 
 
These systems will actually run the instances. You will need one or more systems with:
 
 
 
{| border="1" cellpadding=2 style="border-collapse: collapse"
 
! Hardware
 
! Minimum
 
! Suggested
 
! Notes
 
|-
 
| CPU
 
| VT extensions
 
| VT, 64-bit, Multicore
 
| 64-bit can run both i386, and amd64 instances; by default, Eucalyptus will only run 1 VM per CPU core on a Node
 
|-
 
| Memory
 
| 1GB
 
| 4GB
 
| additional memory means more, and larger guests
 
|-
 
| Disk
 
| 5400rpm IDE
 
| 7200rpm SATA or SCSI
 
| Eucalyptus nodes are disk-intensive; I/O wait will likely be the performance bottleneck
 
|-
 
| Disk Space
 
| 40GB
 
| 100GB
 
| images will be cached locally, Eucalyptus does not like to run out of disk space
 
|-
 
| Networking
 
| 100Mbps
 
| 1000Mbps
 
| machine images are hundreds of MB, and need to be copied over the network to nodes
 
|}
 
 
 
==STEP 2: Install the Cloud/Cluster/Storage/Walrus Front End Server==
 
 
 
* Download the 10.04 Server ISO
 
* When you boot, select “Install Ubuntu Enterprise Cloud”.
 
 
 
[[Image:Bootscreen.png|center|200px|thumb]]
 
 
 
* The installer will detect if any other Eucalyptus components are present.
 
 
 
[[Image:Uec1.png|center|200px|thumb]]
 
 
 
* You can then choose which components to install, based on your chosen topology.
 
 
 
[[Image:Uec2.png|center|200px|thumb]]
 
 
 
* It will ask two other cloud-specific questions during the course of the install:
 
 
 
** Name of your cluster, e.g. cluster1.
 
 
 
[[Image:Uec3.png|center|200px|thumb]]
 
 
 
** A range of public IP addresses on the LAN that the cloud can allocate to instances, e.g. 192.168.1.200-192.168.1.249.
 
 
 
[[Image:Uec4.png|center|200px|thumb]]
 
 
 
 
 
 
 
==STEP 3: Install the Node Controller(s)==
 
 
 
The node controller install is even simpler. Just make sure that you are connected to the network on which the cloud/cluster controller is already running.
 
 
 
# Boot from the same ISO on the node(s)
 
# Select “Install Ubuntu Enterprise Cloud”
 
# It should detect the Cluster and preselect “Node” install for you
 
# Confirm the partitioning scheme
 
# The rest of the installation should proceed uninterrupted; complete the installation and reboot the node
 
 
 
 
 
 
 
==STEP 4: Register the Node(s)==
 
 
 
As of Ubuntu 10.04 LTS, all component registration should be automatic, assuming:
 
 
 
# Public SSH keys have been exchanged properly
 
# The services are configured properly
 
# The services are publishing their existence
 
# The appropriate uec-component-listener is running
 
# Verify Registration.
 
 
 
Steps a to e should only be required if you're using the UEC/PackageInstall method. Otherwise, if you are following the UEC/CDInstall method, these steps should already be completed automatically for you, and therefore you can skip a to e.
 
 
 
 
 
===Exchange Public SSH Keys===
 
 
 
The Cloud Controller's eucalyptus user needs to have SSH access to the Walrus Controller, Cluster Controller, and Storage Controller as the eucalyptus user.
 
 
 
Install the Cloud Controller's eucalyptus user's public ssh key by:
 
 
 
* On the target controller, temporarily set a password for the eucalyptus user:
 
 
 
sudo passwd eucalyptus
 
 
 
* Then, on the Cloud Controller:
 
 
 
sudo -u eucalyptus ssh-copy-id -i /var/lib/eucalyptus/.ssh/id_rsa.pub eucalyptus@<IP_OF_NODE>
 
 
 
* You can now remove the password of the eucalyptus account on the target controller, if you wish:
 
 
 
sudo passwd -d eucalyptus
 
 
 
 
 
 
 
===Configure the Services===
 
 
 
On the Cloud Controller:
 
 
 
* For the Cluster Controller Registration:
 
** Define the shell variable CC_NAME in /etc/eucalyptus/eucalyptus-cc.conf
 
** Define the shell variable CC_IP_ADDR in /etc/eucalyptus/eucalyptus-ipaddr.conf, as a space separated list of one or more IP addresses.  
 
 
 
* For the Walrus Controller Registration:
 
** Define the shell variable WALRUS_IP_ADDR in /etc/eucalyptus/eucalyptus-ipaddr.conf, as a single IP address.
 
 
 
On the Cluster Controller:
 
 
 
* For Storage Controller Registration:
 
** Define the cluster name in the shell variable CC_NAME in /etc/eucalyptus/eucalyptus-cc.conf
 
** Define the shell variable SC_IP_ADDR in /etc/eucalyptus/eucalyptus-ipaddr.conf, as a space separated list of one or more IP addresses.
 
 
 
 
 
===Publish===
 
 
 
Now start the publication services.
 
 
 
* Walrus Controller:
 
 
 
sudo start eucalyptus-walrus-publication
 
 
 
* Cluster Controller:
 
 
 
sudo start eucalyptus-cc-publication
 
 
 
* Storage Controller:
 
 
 
sudo start eucalyptus-sc-publication
 
 
 
* Node Controller
 
 
 
sudo start eucalyptus-nc-publication
 
 
 
 
 
===Start the Listener===
 
 
 
On the Cloud Controller and the Cluster Controller(s), run:
 
 
 
sudo start uec-component-listener
 
 
 
 
 
===Verify Registration===
 
 
 
cat /var/log/eucalyptus/registration.log
 
2010-04-08 15:46:36-05:00 | 24243 -> Calling node cluster1 node 10.1.1.75
 
2010-04-08 15:46:36-05:00 | 24243 -> euca_conf --register-nodes returned 0
 
2010-04-08 15:48:47-05:00 | 25858 -> Calling walrus Walrus 10.1.1.71
 
2010-04-08 15:48:51-05:00 | 25858 -> euca_conf --register-walrus returned 0
 
2010-04-08 15:49:04-05:00 | 26237 -> Calling cluster cluster1 10.1.1.71
 
2010-04-08 15:49:08-05:00 | 26237 -> euca_conf --register-cluster returned 0
 
2010-04-08 15:49:17-05:00 | 26644 -> Calling storage cluster1 storage 10.1.1.71
 
2010-04-08 15:49:18-05:00 | 26644 -> euca_conf --register-sc returned 0
 
  
 
==Referensi==
 
==Referensi==
Line 241: Line 42:
 
* https://help.ubuntu.com/community/UEC
 
* https://help.ubuntu.com/community/UEC
 
* https://help.ubuntu.com/community/UEC/CDInstall
 
* https://help.ubuntu.com/community/UEC/CDInstall
 +
* http://kiranmurari.wordpress.com/2010/05/05/uec-bundling-windows-instances-on-lucid-lynx/ - Bundling Windows
 +
 +
===Demo Setup===
 +
 +
* http://blog.dustinkirkland.com/2010/06/cloud-in-your-pocket-uec-liveiso.html - UEC LiveISO
 +
* http://ubuntu-smoser.blogspot.com/2010/05/easily-test-or-demo-ubuntu-enterprise.html
  
 
==Pranala Menarik==
 
==Pranala Menarik==
  
 +
* [[Ubuntu Enterprise Cloud]]
 +
* [[Ubuntu Enterprise Cloud: Panduan Untuk Pemula]] '''RECOMMENDED'''
 +
* [[Ubuntu Enterprise Cloud: Catatan kecil Instalasi & Operasi]]
 +
* [[Ubuntu Enterprise Cloud: Instalasi UEC]]
 
* [[Cloud Computing]]
 
* [[Cloud Computing]]
 
* [[Linux Howto]]
 
* [[Linux Howto]]

Latest revision as of 07:11, 18 June 2011

Cloud computing di Ubuntu

Ubuntu menyederhanakan komplexitas cloud computing. Cloud dapat dibuat untuk dapat di integrasikan dengan Amazon EC2 atau membuat private cloud dengan hardware sendiri. Edisi Server Ubuntu menolong kita untuk membuat dan mengontrol ke dua-nya.

Sepertinya target Eucalyptus membuat sistem seperti Amazon EC2, Eucalyptus sendiri menggunakan Libvirt. Kelebihannya di clustering dan kompatibel dengan Amazon EC2.

Kalau tidak perlu clustering naga-naganya virsh dan virt-manager masih lebih ringan dan mudah, sama-sama bisa kontrol Xen dan Qemu/KVM, pada akhirnya semua tergantung kebutuhan yang ada juga.

Kenapa Ubuntu?

Ubuntu adalah langkah tercepat untuk membuat reliable cloud untuk usaha anda. Ubuntu adalah satu-satu-nya distribusi Linux yang menyertakan semua komponen yang anda butuhkan untuk membuat cloud secara langsung.

Private cloud

Private cloud memberikan kita kemampuan dari cloud computing menggunakan infrastruktur IT yang kita miliki. Sehingga kita akan memperoleh keuntungan cloud computing dibelakang keamanan dari firewall kita. Menjalankan beban dan langsung jalan. Mengembangkan dan mengecilkan kapasitas komputasi menyesuaikan dengan aplikasi yang kita butuhkan.

Public cloud

Amazon Elastic Compute Cloud (EC2) memungkinkan kita untuk membuat virtual system on-demand untuk hampir semua skala tanpa perlu melakukan investasi hardware. Amazon EC2 cocok sekali dengan modularitas Ubuntu Enterprise Cloud, kemampuan virtualisasi, berbagai aplikasi dan performance yang di optimisasi.

Guide / Buku

e-book

Referensi

Demo Setup

Pranala Menarik