# Ec2 with a opennebula ESXi

**URL:** <https://forum.opennebula.io/t/ec2-with-a-opennebula-esxi/779>\
**Category:** Product Support\
**Created:** [May 26, 2015, 12:39pm UTC](https://forum.opennebula.io/t/ec2-with-a-opennebula-esxi/779 "2015-05-26T12:39:14Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![juan\_freyre](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/juan_freyre/32/4370_2.png) [@juan\_freyre](https://forum.opennebula.io/u/juan_freyre)\
**Post date:** [May 26, 2015, 12:39pm UTC](https://forum.opennebula.io/t/ec2-with-a-opennebula-esxi/779/1 "2015-05-26T12:39:14Z")

</div>

is possible to access to mi amazon ec2 account if i have a Esxi opennebula configuration?

I folllow this guide and now i would like to connect to my ec2 instances  
[http://docs.opennebula.org/4.10/design\_and\_installation/quick\_starts/qs\_centos\_vmware.html#qs-centos-vmware](http://docs.opennebula.org/4.10/design_and_installation/quick_starts/qs_centos_vmware.html#qs-centos-vmware)

how i do to create a instance in amazon since my opennebula sunstone?

Thanks

---

<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:** [May 26, 2015, 4:10pm UTC](https://forum.opennebula.io/t/ec2-with-a-opennebula-esxi/779/2 "2015-05-26T16:10:24Z")

</div>

Hi,

Yes, it is entirely doable, please follow the guide of the [Amazon EC2 driver](http://docs.opennebula.org/4.12/advanced_administration/cloud_bursting/ec2g.html) to configure and enable this functionality.

-Tino

---

<div class="post-metadata">

**Author:** ![juan\_freyre](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/juan_freyre/32/4370_2.png) [@juan\_freyre](https://forum.opennebula.io/u/juan_freyre)\
**Post date:** [May 27, 2015, 8:46am UTC](https://forum.opennebula.io/t/ec2-with-a-opennebula-esxi/779/3 "2015-05-27T08:46:32Z")

</div>

hi, thanks i already create the Amazon ec2 host and now when i try to create a template and instantiate a VM the VM keep in pending.

This is my template:  
SCHED\_REQUIREMENTS="ID="1""  
CPU=“1"  
SUNSTONE\_CAPACITY\_SELECT=“YES"  
CONTEXT=[SSH\_PUBLIC\_KEY=”$USER[SSH\_PUBLIC\_KEY]”,NETWORK=“YES”]  
MEMORY="613"  
EC2=[INSTANCETYPE=“t1.micro”,AMI=“ami-17c44860”,KEYPAIR=“nebula1”]  
SUNSTONE\_NETWORK\_SELECT=“YES”

* * *

questions:

The ami has to be to my property ?  
because i use a public template from amazon

something is missing in my template?

* * *

Thanks

---

<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:** [May 27, 2015, 9:26am UTC](https://forum.opennebula.io/t/ec2-with-a-opennebula-esxi/779/4 "2015-05-27T09:26:46Z")

</div>

Could you share the output of “onehost list”?

The template seems to be fine. The ami needs to be accessible by you (either of your property or public)

---

<div class="post-metadata">

**Author:** ![juan\_freyre](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/juan_freyre/32/4370_2.png) [@juan\_freyre](https://forum.opennebula.io/u/juan_freyre)\
**Post date:** [May 27, 2015, 10:52am UTC](https://forum.opennebula.io/t/ec2-with-a-opennebula-esxi/779/5 "2015-05-27T10:52:28Z")

</div>

![](https://yyz1.discourse-cdn.com/flex031/uploads/opennebula/original/5/c/5c1251e3bc08d73548392a1d697f2b8c09257858.png) ![](https://yyz1.discourse-cdn.com/flex031/uploads/opennebula/original/6/2/62914c092fda33bdabaa803b0da115397dbf0e3d.png) ![](https://yyz1.discourse-cdn.com/flex031/uploads/opennebula/original/e/9/e95176f1e0818a140b6dc36c44822e25e4503922.png)

ID NAME CLUSTER RVM ALLOCATED\_CPU ALLOCATED\_MEM STAT  
0 172.16.36.110 - 1 100 / 400 (25%) 512M / 8G (6%) on  
1 ec2 - 0 0 / 500 (0%) - on

Othe question, the key pairs has to be the Cloud Front key pairs from my security credentials or the key pairs from my ec2 dashboard ?

Thanks

---

<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:** [May 28, 2015, 10:29am UTC](https://forum.opennebula.io/t/ec2-with-a-opennebula-esxi/779/6 "2015-05-28T10:29:33Z")

</div>

There seems to be a problem with the memory capacity of the ec2 host, check your ec2\_driver.conf configuration. That is why the VMs are in pending (you can force the deployment however, to check that the driver is working properly)

Regarding the keypairs, you need to use the ones from your ec2 dashboard.

-Tino

---

<div class="post-metadata">

**Author:** ![juan\_freyre](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/juan_freyre/32/4370_2.png) [@juan\_freyre](https://forum.opennebula.io/u/juan_freyre)\
**Post date:** [May 28, 2015, 11:49am UTC](https://forum.opennebula.io/t/ec2-with-a-opennebula-esxi/779/7 "2015-05-28T11:49:41Z")

</div>

thanks i already solved my issue thanks a lot 🙂
