# Cloud Bursting Amazon EC2

**URL:** <https://forum.opennebula.io/t/cloud-bursting-amazon-ec2/2646>\
**Category:** Product Support\
**Created:** [July 26, 2016, 8:57am UTC](https://forum.opennebula.io/t/cloud-bursting-amazon-ec2/2646 "2016-07-26T08:57:12Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![sky\_ooo](https://avatars.discourse-cdn.com/v4/letter/s/d78d45/32.png) [@sky\_ooo](https://forum.opennebula.io/u/sky_ooo)\
**Post date:** [July 26, 2016, 8:57am UTC](https://forum.opennebula.io/t/cloud-bursting-amazon-ec2/2646/1 "2016-07-26T08:57:12Z")

</div>

Hi,

I have 2 KVM node running and one EC2 connected.  
OpenNebula can monitor wild VM on EC2.

While I try to launch a instance from OpenNebula to EC2, it stays pending forever.  
Can you show me some light where to debug? Thanks.

Below is template file  
I am trying to launch ami-7ea24a17, which equals to public CentOS image on Amazon.

CONTEXT = [  
NETWORK = “YES”,  
SSH\_PUBLIC\_KEY = “$USER[SSH\_PUBLIC\_KEY]” ]  
CPU = "0.1"  
DISK = [  
IMAGE\_ID = “0” ]  
GRAPHICS = [  
LISTEN = “0.0.0.0”,  
TYPE = “vnc” ]  
LOGO = "images/logos/linux.png"  
MEMORY = "128"  
PUBLIC\_CLOUD = [  
AMI = “ami-7ea24a17”,  
INSTANCETYPE = “t2.micro”,  
KEYPAIR = “gsg-keypair”,  
TYPE = “EC2” ]  
SCHED\_REQUIREMENTS = “PUBLIC\_CLOUD = YES”

---

<div class="post-metadata">

**Author:** ![sky\_ooo](https://avatars.discourse-cdn.com/v4/letter/s/d78d45/32.png) [@sky\_ooo](https://forum.opennebula.io/u/sky_ooo)\
**Post date:** [July 28, 2016, 3:11am UTC](https://forum.opennebula.io/t/cloud-bursting-amazon-ec2/2646/2 "2016-07-28T03:11:53Z")

</div>

VM20 should burst to Amazon EC2, It shows pending forever.

 ![](https://canada1.discourse-cdn.com/flex031/uploads/opennebula/original/2X/8/801656aeb269523ea9a5dadcdee565540bb97120.png)

---

<div class="post-metadata">

**Author:** ![sky\_ooo](https://avatars.discourse-cdn.com/v4/letter/s/d78d45/32.png) [@sky\_ooo](https://forum.opennebula.io/u/sky_ooo)\
**Post date:** [July 28, 2016, 3:40am UTC](https://forum.opennebula.io/t/cloud-bursting-amazon-ec2/2646/3 "2016-07-28T03:40:54Z")

</div>

The system have 3 host, node1, node2 and EC2.  
VM20 is unable to burst to EC2, nelow error message.

Thu Jul 28 11:37:23 2016 [Z0][VM][D]: Found 1 pending/rescheduling VMs.  
Thu Jul 28 11:37:23 2016 [Z0][HOST][D]: Discovered 3 enabled hosts.  
Thu Jul 28 11:37:23 2016 [Z0][SCHED][D]: Match-making results for VM 20:  
Cannot schedule VM, there is no suitable host.

Thu Jul 28 11:37:23 2016 [Z0][SCHED][D]: Dispatching VMs to hosts:  
VMID Host System DS  
-------------------------

---

<div class="post-metadata">

**Author:** ![sky\_ooo](https://avatars.discourse-cdn.com/v4/letter/s/d78d45/32.png) [@sky\_ooo](https://forum.opennebula.io/u/sky_ooo)\
**Post date:** [July 28, 2016, 4:20am UTC](https://forum.opennebula.io/t/cloud-bursting-amazon-ec2/2646/4 "2016-07-28T04:20:07Z")

</div>

Got below error message from 22.log

Thu Jul 28 12:10:23 2016 [Z0][VM][I]: New state is ACTIVE  
Thu Jul 28 12:10:23 2016 [Z0][VM][I]: New LCM state is PROLOG  
Thu Jul 28 12:10:23 2016 [Z0][VM][I]: New LCM state is BOOT  
Thu Jul 28 12:10:23 2016 [Z0][VMM][I]: Generating deployment file: /var/lib/one/vms/22/deployment.0  
Thu Jul 28 12:10:23 2016 [Z0][VMM][I]: Successfully execute network driver operation: pre.  
Thu Jul 28 12:10:26 2016 [Z0][VMM][I]: Command execution fail: /var/lib/one/remotes/vmm/ec2/deploy ‘/var/lib/one/vms/22/deployment.0’ ‘ec2’ 22 ec2  
Thu Jul 28 12:10:26 2016 [Z0][VMM][I]: Deploy of VM 22 on host ec2 with /var/lib/one/vms/22/deployment.0 failed due to "#\<REXML::ParseException: Missing end tag for ‘INSTANCETYPE’ (got “PUBLIC\_CLOUD”)  
Thu Jul 28 12:10:26 2016 [Z0][VMM][I]: Line: 35  
Thu Jul 28 12:10:26 2016 [Z0][VMM][I]: Position: 1816  
Thu Jul 28 12:10:26 2016 [Z0][VMM][I]: Last 80 unconsumed characters:  
Thu Jul 28 12:10:26 2016 [Z0][VMM][I]: \>  
Thu Jul 28 12:10:26 2016 [Z0][VMM][I]: /usr/share/ruby/rexml/parsers/baseparser.rb:338:in `pull_event' Thu Jul 28 12:10:26 2016 [Z0][VMM][I]: /usr/share/ruby/rexml/parsers/baseparser.rb:183:in`pull’  
Thu Jul 28 12:10:26 2016 [Z0][VMM][I]: /usr/share/ruby/rexml/parsers/treeparser.rb:22:in `parse' Thu Jul 28 12:10:26 2016 [Z0][VMM][I]: /usr/share/ruby/rexml/document.rb:287:in`build’  
Thu Jul 28 12:10:26 2016 [Z0][VMM][I]: /usr/share/ruby/rexml/document.rb:43:in `initialize' Thu Jul 28 12:10:26 2016 [Z0][VMM][I]: /usr/lib/one/ruby/ec2_driver.rb:636:in`new’  
Thu Jul 28 12:10:26 2016 [Z0][VMM][I]: /usr/lib/one/ruby/ec2\_driver.rb:636:in `load_default_template_values' Thu Jul 28 12:10:26 2016 [Z0][VMM][I]: /usr/lib/one/ruby/ec2_driver.rb:249:in`deploy’  
Thu Jul 28 12:10:26 2016 [Z0][VMM][I]: /var/lib/one/remotes/vmm/ec2/deploy:48:in `'  
Thu Jul 28 12:10:26 2016 [Z0][VMM][I]: …  
Thu Jul 28 12:10:26 2016 [Z0][VMM][I]: Missing end tag for ‘INSTANCETYPE’ (got “PUBLIC\_CLOUD”)  
Thu Jul 28 12:10:26 2016 [Z0][VMM][I]: Line: 35  
Thu Jul 28 12:10:26 2016 [Z0][VMM][I]: Position: 1816  
Thu Jul 28 12:10:26 2016 [Z0][VMM][I]: Last 80 unconsumed characters:  
Thu Jul 28 12:10:26 2016 [Z0][VMM][I]:  
Thu Jul 28 12:10:26 2016 [Z0][VMM][I]: Line: 35  
Thu Jul 28 12:10:26 2016 [Z0][VMM][I]: Position: 1816  
Thu Jul 28 12:10:26 2016 [Z0][VMM][I]: Last 80 unconsumed characters:  
Thu Jul 28 12:10:26 2016 [Z0][VMM][I]: "  
Thu Jul 28 12:10:26 2016 [Z0][VMM][I]: ExitCode: 255  
Thu Jul 28 12:10:26 2016 [Z0][VMM][I]: Failed to execute virtualization driver operation: deploy.  
Thu Jul 28 12:10:26 2016 [Z0][VMM][E]: Error deploying virtual machine  
Thu Jul 28 12:10:26 2016 [Z0][VM][I]: New LCM state is BOOT\_FAILURE

---

<div class="post-metadata">

**Author:** ![cmartin](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/cmartin/32/4278_2.png) [@cmartin](https://forum.opennebula.io/u/cmartin)\
**Post date:** [July 28, 2016, 8:30am UTC](https://forum.opennebula.io/t/cloud-bursting-amazon-ec2/2646/5 "2016-07-28T08:30:41Z")

</div>

Hi,

Can you share the contents on the vm (onevm show -x) and the deployment.0 file?

---

<div class="post-metadata">

**Author:** ![sky\_ooo](https://avatars.discourse-cdn.com/v4/letter/s/d78d45/32.png) [@sky\_ooo](https://forum.opennebula.io/u/sky_ooo)\
**Post date:** [September 21, 2016, 3:12am UTC](https://forum.opennebula.io/t/cloud-bursting-amazon-ec2/2646/6 "2016-09-21T03:12:41Z")

</div>

Hi Martin.

I have create a new EC2 VM, VMID 23  
I do not notice deployment.0 for VMID23, can you point me to the path. Thanks.

```
<![CDATA[
[oneadmin@node1 root]$ onevm show 23 -x

  23
  0
  0
  oneadmin
  oneadmin
  EC2_CentOS-23
  
    1
    1
    0
    0
    0
    0
    0
    0
    0
  
  0
  3
  36
  3
  36
  0
  1474427108
  0
  
  
  
    
    
    
      
      
      
      
    
    
    
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
    
    
      
      
      
    
    
    
    
  
  
    
    
      
      
      
      
    
  
  
    
      23
      0
      ec2
      11
      0
      1474427119
      0
      
      
      -1
      1474427119
      1474427119
      1474427119
      0
      0
      0
      0
      0
    
  

[oneadmin@node1 root]$
]]>
```

---

<div class="post-metadata">

**Author:** ![sky\_ooo](https://avatars.discourse-cdn.com/v4/letter/s/d78d45/32.png) [@sky\_ooo](https://forum.opennebula.io/u/sky_ooo)\
**Post date:** [September 21, 2016, 8:38am UTC](https://forum.opennebula.io/t/cloud-bursting-amazon-ec2/2646/7 "2016-09-21T08:38:41Z")

</div>

Hi Martin

I found below log message in Sunstone UI, It seem not meet scheduler requirements, Can you show me how to fix it. Thanks.

LOGO = "images/logos/linux.png"  
PUBLIC\_CLOUD = [  
AMI = “ami-bd3ba0aa”,  
INSTANCETYPE = “t2.micro”,  
KEYPAIR = “gsg-keypair”,  
TYPE = “EC2” ]  
SCHED\_MESSAGE = "Wed Sep 21 16:31:42 2016 : **No host meets capacity and SCHED\_REQUIREMENTS** : (CLUSTER\_ID = 0) & !(PUBLIC\_CLOUD = YES) | (PUBLIC\_CLOUD = YES & (HYPERVISOR = EC2)) & ( PUBLIC\_CLOUD = YES )"  
SCHED\_REQUIREMENTS = “PUBLIC\_CLOUD = YES”
