CentOS 6
Sponsored Link

Eucalyptus - Run Instance2013/02/24

 
Run Instance.
This example shows to configure Eucalyptus on the environment below.
#1) frontend.srv.world
[10.0.0.30]   ⇒   Control Server ( CLC, Walrus, SC, CC installed )

#2) node01.srv.world
[10.0.0.40]   ⇒   Node Controler ( NC installed, built KVM Host )
[1] Create a keypair for login on the Controle Server.
[root@frontend ~]#
euca-add-keypair my-key > ~/.my-key

[root@frontend ~]#
chmod 600 ~/.my-key

[2] Run Instance with "euca-run-instances" command. It's possible to confirm "eki-***" and others on Web UI like below.
[root@frontend ~]#
euca-run-instances -k my-key --kernel eki-FAE037C8 --ramdisk eri-B59B32EF emi-58E13B1A

RESERVATION r-F8AB3ECD 288823442078 default
INSTANCE i-31CD3DA4 emi-58E13B1A 0.0.0.0 0.0.0.0 pending my-key 0 m1.small 2013-02-25T11:01:55.918Z cluster01 eki-FAE037C8 eri-B59B32EF monitoring-disabled 0.0.0.0 0.0.0.0instance-store
[3] After few minites later, IP address is assigned from DHCP server like below.
[root@frontend ~]#
euca-describe-instances

RESERVATION r-F8AB3ECD 288823442078 default
INSTANCE i-31CD3DA4 emi-58E13B1A 10.0.0.200 10.0.0.200 running my-key 0 m1.small2013-02-25T11:01:55.918Z cluster01 eki-FAE037C8 eri-B59B32EF monitoring-disabled 10.0.0.200 10.0.0.200 instance-store
[4] Login to Instance with keypair made on [1] section.
[root@frontend ~]#
ssh -i ~/.my-key -l root 10.0.0.200

The authenticity of host '10.0.0.200 (10.0.0.200)' can't be established.
RSA key fingerprint is xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx.
Are you sure you want to continue connecting (yes/no)?
yes

Warning: Permanently added '10.0.0.200' (RSA) to the list of known hosts.
[root@localhost ~]#
# just logined
[5] Shutdown command for Instance below.
[root@frontend ~]#
euca-terminate-instances i-31CD3DA4

INSTANCE i-31CD3DA4 running shutting-down
Matched Content