# ec2 host creation failed

**URL:** <https://forum.opennebula.io/t/ec2-host-creation-failed/2097>\
**Category:** Product Support\
**Created:** [April 15, 2016, 6:13pm UTC](https://forum.opennebula.io/t/ec2-host-creation-failed/2097 "2016-04-15T18:13:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![AnimeshKuity](https://avatars.discourse-cdn.com/v4/letter/a/65b543/32.png) [@AnimeshKuity](https://forum.opennebula.io/u/AnimeshKuity)\
**Post date:** [April 15, 2016, 6:13pm UTC](https://forum.opennebula.io/t/ec2-host-creation-failed/2097/1 "2016-04-15T18:13:57Z")

</div>

I am trying to add an ec2 host.  
I am following [http://docs.opennebula.org/4.12/advanced\_administration/cloud\_bursting/ec2g.html#ec2g](http://docs.opennebula.org/4.12/advanced_administration/cloud_bursting/ec2g.html#ec2g)  
I am using ruby 1.9.1 and aws-sdk-v1. I have used my ACCESS\_KEY and SECRET\_ACCESS\_KEY for ec2 in /etc/one/ec2\_driver.conf.

The oned.log is showing as follows  
…  
…  
Fri Apr 15 23:29:26 2016 [InM][I]: Command execution fail: /var/lib/one/remotes/im/run\_probes ec2 /var/lib/one//datastores 4124 20 4 ec2  
Fri Apr 15 23:29:26 2016 [InM][I]: You are not authorized to perform this operation.  
Fri Apr 15 23:29:26 2016 [InM][E]: Error executing poll  
Fri Apr 15 23:29:26 2016 [InM][I]: ExitCode: 255  
Fri Apr 15 23:29:26 2016 [ONE][E]: Error monitoring Host ec2 (4): Error executing poll  
…  
…

I am unable to understand the problem…

Please help me out…

Thanks in advance for any kind of help…

---

<div class="post-metadata">

**Author:** ![tinova](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/tinova/32/25_2.png) [@tinova](https://forum.opennebula.io/u/tinova)\
**Post date:** [April 21, 2016, 9:01pm UTC](https://forum.opennebula.io/t/ec2-host-creation-failed/2097/2 "2016-04-21T21:01:25Z")

</div>

What EC2 region are you trying to use?

Please provide also the output of onehost list.

---

<div class="post-metadata">

**Author:** ![AnimeshKuity](https://avatars.discourse-cdn.com/v4/letter/a/65b543/32.png) [@AnimeshKuity](https://forum.opennebula.io/u/AnimeshKuity)\
**Post date:** [April 25, 2016, 5:15am UTC](https://forum.opennebula.io/t/ec2-host-creation-failed/2097/3 "2016-04-25T05:15:52Z")

</div>

I have created host using following command…

onehost create ec2 --im ec2 --vm ec2 --net dummy

The default ec2 region I am using i.e us-east-1

And onehost list output STAT showing err

ID NAME CLUSTER RVM ALLOCATED\_CPU ALLOCATED\_MEM STAT  
0 ec2 - 0 - - err

I have given one of my hostname ec2 and then was trying to add that host to private cloud.

Am I correct or doing something wrong?

Please help…
