CentOS 6
Sponsored Link

Eucalyptus - Run Instance by a Common User2013/02/24

 
Run Instance by a common user
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] Login to Controle server with a common user.
# create a keypair

[cent@frontend ~]$
euca-add-keypair my-key > ~/.my-key

[cent@frontend ~]$
chmod 600 ~/.my-key
# show images

[cent@frontend ~]$
euca-describe-images -a

IMAGE eri-B59B32EF centos-ramdisk-bucket/initrd-2.6.32-279.14.1.el6.x86_64.img.manifest.xml 000000000001 available private i386 ramdisk instance-store
IMAGE eki-FAE037C8 centos-kernel-bucket/vmlinuz-2.6.32-279.14.1.el6.x86_64.manifest.xml 000000000001 available private i386 kernel instance-store
IMAGE emi-58E13B1A centos-image-bucket/centos-6.3-x86_64.img.manifest.xml 288823442078 available privatei386 machine eki-FAE037C8 eri-B59B32EF instance-store
# run instance

[cent@frontend ~]$
euca-run-instances -k my-key --kernel eki-FAE037C8 --ramdisk eri-B59B32EF emi-58E13B1A

RESERVATION r-C46B3ED2 288823442078 default
INSTANCE i-76964036 emi-58E13B1A 0.0.0.0 0.0.0.0 pending my-key 0 m1.small 2013-02-25T13:35:50.671Z cluster01 eki-FAE037C8 eri-B59B32EF monitoring-disabled 0.0.0.0 0.0.0.0instance-store
# show status

[cent@frontend ~]$
euca-describe-instances

RESERVATION r-C46B3ED2 288823442078 default
INSTANCE i-76964036 emi-58E13B1A 10.0.0.207 10.0.0.207 running my-key 0 m1.small2013-02-25T13:35:50.671Z cluster01 eki-FAE037C8 eri-B59B32EF monitoring-disabled 10.0.0.207 10.0.0.207 instance-store
# login

[cent@frontend ~]$
ssh -i ~/.my-key -l root 10.0.0.207

The authenticity of host '10.0.0.207 (10.0.0.207)' 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.207' (RSA) to the list of known hosts.
[root@localhost ~]#
# just logined
Matched Content