特殊:Badtitle/NS100:UEC/Credentials

来自Ubuntu中文
Wikibot留言 | 贡献2009年11月17日 (二) 20:59的版本 (创建新页面为 '{{From|https://help.ubuntu.com/community/UEC/Credentials}} {{Languages|UbuntuHelp:UEC/Credentials}} After installing and booting the Cloud Controller, users of the cloud will ne...')
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳到导航跳到搜索
可打印版本不再受到支持且可能有渲染错误。请更新您的浏览器书签并改用浏览器默认打印功能。

{{#ifexist: :UEC/Credentials/zh | | {{#ifexist: UEC/Credentials/zh | | {{#ifeq: {{#titleparts:UEC/Credentials|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:UEC/Credentials|1|-1|}} | zh | | }}

After installing and booting the Cloud Controller, users of the cloud will need to retrieve their credentials. This can be done either through a web browser, or at the command line.

From a Web Browser
  1. From your web browser (either remotely or on your Ubuntu server) access the following URL:
https://<cloud-controller-ip-address>:8443/
Important! You must use a secure connection, so make sure you use "https" not "http" in your URL. You will get a security certificate warning. You will have to add an exception to view the page. If you do not accept it you will not be able to view the Eucalyptus configuration page.
  1. Use username 'admin' and password 'admin' for the first time login (you will be prompted to change your password).
  2. Then follow the on-screen instructions to update the admin password and email address.
  3. Once the first time configuration process is completed, click the 'credentials' tab located in the top-left portion of the screen. <
    >Credentials?action=AttachFile&do=get&target=UECcredentials-2.png
  4. Click the 'Download Credentials' button to get your certificates
  5. Save them to ~/.euca
  6. Unzip the downloaded zipfile into a safe location (~/.euca)
unzip -d ~/.euca mycreds.zip
From a Command Line
  1. Alternatively, if you are on the command line of the Cloud Controller, you can run:
mkdir -p ~/.euca
chmod 700 ~/.euca
cd ~/.euca
sudo euca_conf --get-credentials mycreds.zip
unzip mycreds.zip
cd -
Extracting and Using Your Credentials

Now you will need to setup EC2 API and AMI tools on your server using X.509 certificates.

  1. Source the included "eucarc" file to set up your Eucalyptus environment
. ~/.euca/eucarc
  1. You may additionally wish to add this command to your ~/.bashrc file so that your Eucalyptus environment is set up automatically when you log in. Eucalyptus treats this set of credentials as 'administrator' credentials that allow the holder global privileges across the cloud. As such, they should be protected in the same way that other elevated-priority access is protected (e.g. should not be made visible to the general user population).
echo "[ -r ~/.euca/eucarc ] && . ~/.euca/eucarc" >> ~/.bashrc
  1. Install the required cloud user tools:
sudo apt-get install euca2ools
  1. To validate that everything is working correctly, get the local cluster availability details:
. ~/.euca/eucarc
euca-describe-availability-zones verbose
AVAILABILITYZONE   myowncloud                 192.168.1.1
AVAILABILITYZONE   |- vm types                free / max   cpu   ram  disk
AVAILABILITYZONE   |- m1.small                0004 / 0004   1    128     2
AVAILABILITYZONE   |- c1.medium               0004 / 0004   1    256     5
AVAILABILITYZONE   |- m1.large                0002 / 0002   2    512    10
AVAILABILITYZONE   |- m1.xlarge               0002 / 0002   2   1024    20
AVAILABILITYZONE   |- c1.xlarge               0001 / 0001   4   2048    20