特殊:Badtitle/NS100:UEC/PackageInstallSeparate:修订间差异
小 以内容'{{From|https://help.ubuntu.com/community/UEC/PackageInstallSeparate}} {{Languages|UbuntuHelp:UEC/PackageInstallSeparate}} === Overview === This tutorial covers UEC installa…'创建新页面 |
(没有差异)
|
2010年5月20日 (四) 00:38的最新版本
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/UEC/PackageInstallSeparate }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:UEC/PackageInstallSeparate | UbuntuHelp:UEC/PackageInstallSeparate | {{#if: | :}}UEC/PackageInstallSeparate}}/af | • {{#if: UbuntuHelp:UEC/PackageInstallSeparate|Afrikaans| [[::UEC/PackageInstallSeparate/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UEC/PackageInstallSeparate | UbuntuHelp:UEC/PackageInstallSeparate | {{#if: | :}}UEC/PackageInstallSeparate}}/ar | • {{#if: UbuntuHelp:UEC/PackageInstallSeparate|العربية| [[::UEC/PackageInstallSeparate/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UEC/PackageInstallSeparate | UbuntuHelp:UEC/PackageInstallSeparate | {{#if: | :}}UEC/PackageInstallSeparate}}/az | • {{#if: UbuntuHelp:UEC/PackageInstallSeparate|azərbaycanca| [[::UEC/PackageInstallSeparate/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UEC/PackageInstallSeparate | UbuntuHelp:UEC/PackageInstallSeparate | {{#if: | :}}UEC/PackageInstallSeparate}}/bcc | • {{#if: UbuntuHelp:UEC/PackageInstallSeparate|جهلسری بلوچی| [[::UEC/PackageInstallSeparate/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UEC/PackageInstallSeparate | UbuntuHelp:UEC/PackageInstallSeparate | {{#if: | :}}UEC/PackageInstallSeparate}}/bg | • {{#if: UbuntuHelp:UEC/PackageInstallSeparate|български| [[::UEC/PackageInstallSeparate/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UEC/PackageInstallSeparate | UbuntuHelp:UEC/PackageInstallSeparate | {{#if: | :}}UEC/PackageInstallSeparate}}/br | • {{#if: UbuntuHelp:UEC/PackageInstallSeparate|brezhoneg| [[::UEC/PackageInstallSeparate/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UEC/PackageInstallSeparate | UbuntuHelp:UEC/PackageInstallSeparate | {{#if: | :}}UEC/PackageInstallSeparate}}/ca | • {{#if: UbuntuHelp:UEC/PackageInstallSeparate|català| [[::UEC/PackageInstallSeparate/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UEC/PackageInstallSeparate | UbuntuHelp:UEC/PackageInstallSeparate | {{#if: | :}}UEC/PackageInstallSeparate}}/cs | • {{#if: UbuntuHelp:UEC/PackageInstallSeparate|čeština| [[::UEC/PackageInstallSeparate/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UEC/PackageInstallSeparate | UbuntuHelp:UEC/PackageInstallSeparate | {{#if: | :}}UEC/PackageInstallSeparate}}/de | • {{#if: UbuntuHelp:UEC/PackageInstallSeparate|Deutsch| [[::UEC/PackageInstallSeparate/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UEC/PackageInstallSeparate | UbuntuHelp:UEC/PackageInstallSeparate | {{#if: | :}}UEC/PackageInstallSeparate}}/el | • {{#if: UbuntuHelp:UEC/PackageInstallSeparate|Ελληνικά| [[::UEC/PackageInstallSeparate/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UEC/PackageInstallSeparate | UbuntuHelp:UEC/PackageInstallSeparate | {{#if: | :}}UEC/PackageInstallSeparate}}/es | • {{#if: UbuntuHelp:UEC/PackageInstallSeparate|español| [[::UEC/PackageInstallSeparate/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UEC/PackageInstallSeparate | UbuntuHelp:UEC/PackageInstallSeparate | {{#if: | :}}UEC/PackageInstallSeparate}}/fa | • {{#if: UbuntuHelp:UEC/PackageInstallSeparate|فارسی| [[::UEC/PackageInstallSeparate/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UEC/PackageInstallSeparate | UbuntuHelp:UEC/PackageInstallSeparate | {{#if: | :}}UEC/PackageInstallSeparate}}/fi | • {{#if: UbuntuHelp:UEC/PackageInstallSeparate|suomi| [[::UEC/PackageInstallSeparate/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UEC/PackageInstallSeparate | UbuntuHelp:UEC/PackageInstallSeparate | {{#if: | :}}UEC/PackageInstallSeparate}}/fr | • {{#if: UbuntuHelp:UEC/PackageInstallSeparate|français| [[::UEC/PackageInstallSeparate/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UEC/PackageInstallSeparate | UbuntuHelp:UEC/PackageInstallSeparate | {{#if: | :}}UEC/PackageInstallSeparate}}/gu | • {{#if: UbuntuHelp:UEC/PackageInstallSeparate|ગુજરાતી| [[::UEC/PackageInstallSeparate/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UEC/PackageInstallSeparate | UbuntuHelp:UEC/PackageInstallSeparate | {{#if: | :}}UEC/PackageInstallSeparate}}/he | • {{#if: UbuntuHelp:UEC/PackageInstallSeparate|עברית| [[::UEC/PackageInstallSeparate/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UEC/PackageInstallSeparate | UbuntuHelp:UEC/PackageInstallSeparate | {{#if: | :}}UEC/PackageInstallSeparate}}/hu | • {{#if: UbuntuHelp:UEC/PackageInstallSeparate|magyar| [[::UEC/PackageInstallSeparate/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UEC/PackageInstallSeparate | UbuntuHelp:UEC/PackageInstallSeparate | {{#if: | :}}UEC/PackageInstallSeparate}}/id | • {{#if: UbuntuHelp:UEC/PackageInstallSeparate|Bahasa Indonesia| [[::UEC/PackageInstallSeparate/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UEC/PackageInstallSeparate | UbuntuHelp:UEC/PackageInstallSeparate | {{#if: | :}}UEC/PackageInstallSeparate}}/it | • {{#if: UbuntuHelp:UEC/PackageInstallSeparate|italiano| [[::UEC/PackageInstallSeparate/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UEC/PackageInstallSeparate | UbuntuHelp:UEC/PackageInstallSeparate | {{#if: | :}}UEC/PackageInstallSeparate}}/ja | • {{#if: UbuntuHelp:UEC/PackageInstallSeparate|日本語| [[::UEC/PackageInstallSeparate/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UEC/PackageInstallSeparate | UbuntuHelp:UEC/PackageInstallSeparate | {{#if: | :}}UEC/PackageInstallSeparate}}/ko | • {{#if: UbuntuHelp:UEC/PackageInstallSeparate|한국어| [[::UEC/PackageInstallSeparate/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UEC/PackageInstallSeparate | UbuntuHelp:UEC/PackageInstallSeparate | {{#if: | :}}UEC/PackageInstallSeparate}}/ksh | • {{#if: UbuntuHelp:UEC/PackageInstallSeparate|Ripoarisch| [[::UEC/PackageInstallSeparate/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UEC/PackageInstallSeparate | UbuntuHelp:UEC/PackageInstallSeparate | {{#if: | :}}UEC/PackageInstallSeparate}}/mr | • {{#if: UbuntuHelp:UEC/PackageInstallSeparate|मराठी| [[::UEC/PackageInstallSeparate/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UEC/PackageInstallSeparate | UbuntuHelp:UEC/PackageInstallSeparate | {{#if: | :}}UEC/PackageInstallSeparate}}/ms | • {{#if: UbuntuHelp:UEC/PackageInstallSeparate|Bahasa Melayu| [[::UEC/PackageInstallSeparate/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UEC/PackageInstallSeparate | UbuntuHelp:UEC/PackageInstallSeparate | {{#if: | :}}UEC/PackageInstallSeparate}}/nl | • {{#if: UbuntuHelp:UEC/PackageInstallSeparate|Nederlands| [[::UEC/PackageInstallSeparate/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UEC/PackageInstallSeparate | UbuntuHelp:UEC/PackageInstallSeparate | {{#if: | :}}UEC/PackageInstallSeparate}}/no | • {{#if: UbuntuHelp:UEC/PackageInstallSeparate|norsk| [[::UEC/PackageInstallSeparate/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UEC/PackageInstallSeparate | UbuntuHelp:UEC/PackageInstallSeparate | {{#if: | :}}UEC/PackageInstallSeparate}}/oc | • {{#if: UbuntuHelp:UEC/PackageInstallSeparate|occitan| [[::UEC/PackageInstallSeparate/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UEC/PackageInstallSeparate | UbuntuHelp:UEC/PackageInstallSeparate | {{#if: | :}}UEC/PackageInstallSeparate}}/pl | • {{#if: UbuntuHelp:UEC/PackageInstallSeparate|polski| [[::UEC/PackageInstallSeparate/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UEC/PackageInstallSeparate | UbuntuHelp:UEC/PackageInstallSeparate | {{#if: | :}}UEC/PackageInstallSeparate}}/pt | • {{#if: UbuntuHelp:UEC/PackageInstallSeparate|português| [[::UEC/PackageInstallSeparate/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UEC/PackageInstallSeparate | UbuntuHelp:UEC/PackageInstallSeparate | {{#if: | :}}UEC/PackageInstallSeparate}}/ro | • {{#if: UbuntuHelp:UEC/PackageInstallSeparate|română| [[::UEC/PackageInstallSeparate/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UEC/PackageInstallSeparate | UbuntuHelp:UEC/PackageInstallSeparate | {{#if: | :}}UEC/PackageInstallSeparate}}/ru | • {{#if: UbuntuHelp:UEC/PackageInstallSeparate|русский| [[::UEC/PackageInstallSeparate/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UEC/PackageInstallSeparate | UbuntuHelp:UEC/PackageInstallSeparate | {{#if: | :}}UEC/PackageInstallSeparate}}/si | • {{#if: UbuntuHelp:UEC/PackageInstallSeparate|සිංහල| [[::UEC/PackageInstallSeparate/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UEC/PackageInstallSeparate | UbuntuHelp:UEC/PackageInstallSeparate | {{#if: | :}}UEC/PackageInstallSeparate}}/sq | • {{#if: UbuntuHelp:UEC/PackageInstallSeparate|shqip| [[::UEC/PackageInstallSeparate/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UEC/PackageInstallSeparate | UbuntuHelp:UEC/PackageInstallSeparate | {{#if: | :}}UEC/PackageInstallSeparate}}/sr | • {{#if: UbuntuHelp:UEC/PackageInstallSeparate|српски / srpski| [[::UEC/PackageInstallSeparate/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UEC/PackageInstallSeparate | UbuntuHelp:UEC/PackageInstallSeparate | {{#if: | :}}UEC/PackageInstallSeparate}}/sv | • {{#if: UbuntuHelp:UEC/PackageInstallSeparate|svenska| [[::UEC/PackageInstallSeparate/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UEC/PackageInstallSeparate | UbuntuHelp:UEC/PackageInstallSeparate | {{#if: | :}}UEC/PackageInstallSeparate}}/th | • {{#if: UbuntuHelp:UEC/PackageInstallSeparate|ไทย| [[::UEC/PackageInstallSeparate/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UEC/PackageInstallSeparate | UbuntuHelp:UEC/PackageInstallSeparate | {{#if: | :}}UEC/PackageInstallSeparate}}/tr | • {{#if: UbuntuHelp:UEC/PackageInstallSeparate|Türkçe| [[::UEC/PackageInstallSeparate/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UEC/PackageInstallSeparate | UbuntuHelp:UEC/PackageInstallSeparate | {{#if: | :}}UEC/PackageInstallSeparate}}/vi | • {{#if: UbuntuHelp:UEC/PackageInstallSeparate|Tiếng Việt| [[::UEC/PackageInstallSeparate/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UEC/PackageInstallSeparate | UbuntuHelp:UEC/PackageInstallSeparate | {{#if: | :}}UEC/PackageInstallSeparate}}/yue | • {{#if: UbuntuHelp:UEC/PackageInstallSeparate|粵語| [[::UEC/PackageInstallSeparate/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UEC/PackageInstallSeparate | UbuntuHelp:UEC/PackageInstallSeparate | {{#if: | :}}UEC/PackageInstallSeparate}}/zh | • {{#if: UbuntuHelp:UEC/PackageInstallSeparate|中文| [[::UEC/PackageInstallSeparate/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UEC/PackageInstallSeparate | UbuntuHelp:UEC/PackageInstallSeparate | {{#if: | :}}UEC/PackageInstallSeparate}}/zh-hans | • {{#if: UbuntuHelp:UEC/PackageInstallSeparate|中文(简体)| [[::UEC/PackageInstallSeparate/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UEC/PackageInstallSeparate | UbuntuHelp:UEC/PackageInstallSeparate | {{#if: | :}}UEC/PackageInstallSeparate}}/zh-hant | • {{#if: UbuntuHelp:UEC/PackageInstallSeparate|中文(繁體)| [[::UEC/PackageInstallSeparate/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:UEC/PackageInstallSeparate|:UEC/PackageInstallSeparate|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :UEC/PackageInstallSeparate/zh | | {{#ifexist: UEC/PackageInstallSeparate/zh | | {{#ifeq: {{#titleparts:UEC/PackageInstallSeparate|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:UEC/PackageInstallSeparate|1|-1|}} | zh | | }}
Overview
This tutorial covers UEC installation by adding the Eucalyptus packages to previously installed Ubuntu 9.10 servers where you want to have separate servers for the following services:
- 1 Cloud Controller (CLC - eucalyptus-cloud) server
- 1 Walrus Controller (WS3 - eucalyptus-walrus) server
- N Cluster Controller (CC - eucalyptus-cc) + Storage Controller (EBS - eucalyptus-sc) servers
- N Node Controller (NC - eucalyptus-nc) servers on a dedicated network connected to on of the CC+EBS server
Objective
From this tutorial, you will learn how to install, configure, register and perform several operations on a advanced UEC setup that results in a cloud as described in the above section. This topology is recommended if you would like to build a generic purpose scalable cloud. Our current testing indicate that a given cluster should limit itself to the management of up to 250 instances.
Tutorial
STEP 1: Prerequisites
To deploy a minimal cloud infrastructure, you’ll need at least 4 dedicated systems:
- 1 CLC
- 1 WS3
- 1 CC + EBS
- 1 NC
<<Include(UEC/SystemRequirementsSeparate)>>
STEP 2a: Install the Cloud Controller Server
<<Include(UEC/BaseServerIntall)>>
- Install the eucalyptus-cloud package on the server
sudo apt-get install eucalyptus-cloud
Answer debconf's questions as follow:
- Configure postfix for internet delivery
- Make sure process eucalyptus-cloud is running
ps -ef | grep eucalyptus-cloud
STEP 2b: Install the Cluster Controller Server(s)
<<Include(UEC/BaseServerIntall)>>
- Install the eucalyptus-cc and eucalyptus-sc packages on the server
sudo apt-get install eucalyptus-cc eucalyptus-sc
Answer debconf's questions as follow:
- Configure postfix for internet delivery
- Name your cluster
- e.g. cluster1
- Add a list of available IP addresses on your external (public) network
- e.g. 192.168.1.200-192.168.1.249
- Configure the second network interface
sudo apt-get install bridge-utils vtun interface=eth1 bridge=br1 sudo sed -i "s/^iface $interface inet \(.*\)$/iface $interface inet manual\n\nauto $bridge\niface $bridge inet \1/" /etc/network/interfaces sudo tee -a /etc/network/interfaces <<EOF bridge_ports $interface bridge_fd 9 bridge_hello 2 bridge_maxage 12 bridge_stp off EOF sudo /etc/init.d/networking restart
- Edit /etc/eucalyptus/eucalyptus.conf so that
- br1 is the internal (private) interface and the bridge interface
- eth0 the external (public) interface
- you provide the correct address of the cloud controller (CLC) that you just installed in place of <CLC_ipaddress>
by editing the following 3 variables, the third one (VNET_CLOUDIP) needing to be added manually:
VNET_PUBINTERFACE="eth0" VNET_PRIVINTERFACE="br1" VNET_CLOUDIP="<CLC_ipaddress>"
- Edit /etc/eucalyptus/eucalyptus-ipaddr.conf so that the following variable are set to the internal (private) ip address of the server
CC_IP_ADDR="<CC_ipaddress>" SC_IP_ADDR="<CC_ipaddress>"
- Restart the service with a config reinitialisation
sudo restart eucalyptus-cc CLEAN=1 sudo restart eucalyptus-sc
- Make sure processes eucalyptus-cc and eucalyptus-sc are running
ps -ef | grep eucalyptus-
STEP 2c: Install the Walrus Controller Server
<<Include(UEC/BaseServerIntall)>>
- Install the eucalyptus-walrus package on the server
sudo apt-get install eucalyptus-walrus
STEP 3: Install and Configure the Node Controller(s)
Installing the Eucalyptus Node Service on a running Ubuntu system consists of doing the following on one or more systems: <<Include(UEC/BaseServerIntall)>> <<Include(UEC/NodeInstallationSeparate)>>
STEP 4: Register the Cluster, Storage, and Walrus Servers
The cloud controller must be aware the storage (SC, WS3) and of the clusters controllers, so you will need to allow password-less authentication between the CLC and the other server and then register them.
SSH Key Authentication Setup
<<Include(UEC/SSHKeyAuthSetup)>>
Registration
To register the controllers on the CLC:
- Register the WS3 server:
sudo euca_conf --no-rsync --register-walrus <WS3_ipaddresss>
- Then for each of your CC:
sudo euca_conf --no-rsync --register-cluster <CC_name> <CC_ipaddress> sudo euca_conf --no-rsync --register-sc <CC_name> <CC_ipaddress>
Note: If you get prompted for passwords, or receive errors from scp, you may need to revisit the key synchronization instructions at SSH Key Authentication Setup
- Then edit the /etc/eucalyptus/eucalyptus-ipaddr.conf to fill the 3 following variables appropriately with the ip address of the respective service, replacing the "$addr" value. If you have multiple CC and SC, you can specify multiple IP addresses separating them with a space.
CC_IP_ADDR="$addr" WALRUS_IP_ADDR="$addr" SC_IP_ADDR="$addr"
- Finally restart the eucalyptus service on the CLC
sudo service eucalyptus restart
Verify Registration
Verify that the registration process was successful by running the following commands
sudo euca_conf --list-walruses sudo euca_conf --list-scs sudo euca_conf --list-clusters
STEP 5: Register the Node(s)
<<Include(UEC/NodeRegistration)>>
STEP 6: Obtain Credentials
<<Include(UEC/Credentials)>>
STEP 7: Install an image from the store
<<Include(UEC/GetAnImageFromStore)>>
STEP 8: Run an Image
<<Include(UEC/RunningImages)>>
More Information
<<Include(UEC/MoreInfo)>>
Glossary
<<Include(UEC/Glossary)>>