Eucalyptus: Not Enough Resources - VM Instances

Issue:

FinishedVerify: Not enough resources: vm instances.

Reasoning:

This issue arises if the node controller is not registered with the cluster controller or if there are no free VMs available to launch the instance.

Solution:

In case, the node controller is not registered, the output of “euca-describe-availability-zones verbose” will show zero free and max VMs as below.

$ euca-describe-availability-zones verbose
 AVAILABILITYZONE        mycloud       A.B.C.D
 AVAILABILITYZONE        |- vm types     free / max   cpu   ram  disk
 AVAILABILITYZONE        |- m1.small     0000 / 0000   1    128     2
 AVAILABILITYZONE        |- c1.medium    0000 / 0000   1    256     5
 AVAILABILITYZONE        |- m1.large     0000 / 0000   2    512    10
 AVAILABILITYZONE        |- m1.xlarge    0000 / 0000   2   1024    20
 AVAILABILITYZONE        |- c1.xlarge    0000 / 0000   4   2048    20

Register the node controller with the following command and add the discovered nodes.

$ sudo euca_conf --no-rsync --discover-nodes

Once the node is successfully registered “euca-describe-availability-zones verbose” shows the following output

$ euca-describe-availability-zones verbose
 AVAILABILITYZONE        oss-cloud       A.B.C.D
 AVAILABILITYZONE        |- vm types     free / max   cpu   ram  disk
 AVAILABILITYZONE        |- m1.small     0002 / 0002 1    128     2
 AVAILABILITYZONE        |- c1.medium    0002 / 0002 1    256     5
 AVAILABILITYZONE        |- m1.large     0001 / 0001 2    512    10
 AVAILABILITYZONE        |- m1.xlarge    0001 / 0001 2   1024    20
 AVAILABILITYZONE        |- c1.xlarge    0000 / 0000 4   2048    20

Now an instance can be successfully started (provided other network related configuration has been taken care).

But after starting a couple of instances, again if the same error is encountered, then its time to look at the MAX_CORES macro in /etc/eucalyptus.conf

For example:

Before starting any instances,

$ euca-describe-availability-zones verbose
 AVAILABILITYZONE        oss-cloud       A.B.C.D
 AVAILABILITYZONE        |- vm types     free / max   cpu   ram  disk
 AVAILABILITYZONE        |- m1.small     0002 / 0002 1    128     2
 AVAILABILITYZONE        |- c1.medium    0002 / 0002 1    256     5
 AVAILABILITYZONE        |- m1.large     0001 / 0001 2    512    10
 AVAILABILITYZONE        |- m1.xlarge    0001 / 0001 2   1024    20
 AVAILABILITYZONE        |- c1.xlarge    0000 / 0000 4   2048    20

After running two instances of type c1.medium,

$ euca-describe-availability-zones verbose
 AVAILABILITYZONE        oss-cloud       A.B.C.D
 AVAILABILITYZONE        |- vm types     free / max   cpu   ram  disk
 AVAILABILITYZONE        |- m1.small     0000 / 0002 1    128     2
 AVAILABILITYZONE        |- c1.medium    0000 / 0002 1    256     5
 AVAILABILITYZONE        |- m1.large     0000 / 0001 2    512    10
 AVAILABILITYZONE        |- m1.xlarge    0000 / 0001 2   1024    20
 AVAILABILITYZONE        |- c1.xlarge    0000 / 0000 4   2048    20

CIO, CTO & Developer Resources

This deprives from launching further instances of any image.

MORE CORES….. MORE VMS……

In /etc/eucalyptus.conf, there sits this MAX_CORES macro which defaults to available CPU cores.

Before changing MAX_CORES and not running any instances:

$ euca-describe-availability-zones verbose
 AVAILABILITYZONE        oss-cloud       A.B.C.D
 AVAILABILITYZONE        |- vm types     free / max   cpu   ram  disk
 AVAILABILITYZONE        |- m1.small     0002 / 0002 1    128     2
 AVAILABILITYZONE        |- c1.medium    0002 / 0002 1    256     5
 AVAILABILITYZONE        |- m1.large     0001 / 0001 2    512    10
 AVAILABILITYZONE        |- m1.xlarge    0001 / 0001 2   1024    20
 AVAILABILITYZONE        |- c1.xlarge    0000 / 0000 4   2048    20

After changing MAX_CORES to 8 and not running any instances:

$ euca-describe-availability-zones verbose
 AVAILABILITYZONE        oss-cloud       A.B.C.D
 AVAILABILITYZONE        |- vm types     free / max   cpu   ram  disk
 AVAILABILITYZONE        |- m1.small     0008 / 0008 1    128     2
 AVAILABILITYZONE        |- c1.medium    0008 / 0008 1    256     5
 AVAILABILITYZONE        |- m1.large     0004 / 0004 2    512    10
 AVAILABILITYZONE        |- m1.xlarge    0003 / 0003 2   1024    20
 AVAILABILITYZONE        |- c1.xlarge    0001 / 0001 4   2048    20

Earlier, an instance of type c1.xlarge was not possible, but now one instance of c1.xlarge is possible.

So MORE CORES….. MORE VMs…..

 

from :      http://kiranmurari.wordpress.com/2010/03/22/more-cores-more-vms/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值