Version 4 (modified by rock, 15 years ago) (diff) |
---|
Eucalyptus 使用者手冊
【1.註冊】
- 到 https://IP:8443 註冊個人資料,註冊完後等待 mail 通知
- 註冊成功且登入後,下載使用者的 Certificate
$ mkdir ~/.euca $ cd ~/.euca $ unzip name-of-the-key-zip.zip $ chmod 0700 ~/.euca $ chmod 0600 ~/.euca/*
【2.安裝 Euca2ools】
【3.快速開始】
- 查詢 Euca 系統
$ euca-describe-images IMAGE eki-2B121184 kernel/vmlinuz-2.6.27.21-0.1-xen.manifest.xml admin available public x86_64 kernel IMAGE eri-25751174 ramdisk/initrd-2.6.27.21-0.1-xen.manifest.xml admin available public x86_64 ramdisk IMAGE emi-FFD310FF images/ubuntu.9-04.x86-64.img.manifest.xml admin available public x86_64 machine $ euca-describe-availability-zones verbose $ euca-describe-instances $ ec2-describe-keypairs
- 申請 key pair,以便 ssh 登入 instance
$ ec2-add-keypair mykey >mykey.private ('mykey' is the name for the key in Eucalyptus, 'mykey.private' is the file to be used by ssh) $ chmod 0600 mykey.private $ ec2-run-instances <emi-id> -k mykey -n <number of instances to start>
-
### 允許 instance 開啟 22 port ### $ ec2-authorize default -P tcp -p 22 -s 0.0.0.0/0 ### 給予 Instance IP ### $ ec2-allocate-address $ ec2-associate-address <IP from allocate> -i <instance ID> ### 使用 ssh 登入 ### $ ssh -i mykey.private root@<accessible-instance-ip> ### 關掉 Instances ### $ ec2-terminate-instances <instance-id1> <instance-id2> ... <instance-idn>