环境:

CentOS6.4+Cloudstack4.2+xenserver 6.2

 

动态修改Cloudstack guest 内存、CPU 准备工作:

 

1.安装 xenserver tools工具包

2.修改Cloudstack全局配置 enable.dynamic.scale.vm 为true
mem.overprovisioning.factor = 2 (内存超载2倍,如果HOST内存足够大,可忽略)
3.模板里面 Dynamically Scalable  勾选上

 

 

刚开始做的时候进了不少坑:

xenserver tools分明已经安装了,可就是提示错误

 

 

 

 

 

最后才发现,原来是模板里面的Dynamically Scalable没有打开

 

 

 

赶紧关机,打开这一选项

 

 

添加计算方案(CPU、内存容量配置)

 

 

 

在需要更改的guest上应用

 

 

 

 

 

 

 

 

成功添加 

 

 

 

另外还有一个坑,在VM运行Linux 64位和32位Windows 7操作系统,如果VM最初分配不到3GB的RAM,它可以动态地扩展到3 GB,而不是更多。

 

参考:

 

http://cloudstack.apache.org/docs/en-US/Apache_CloudStack/4.2.0/html/Admin_Guide/changing-service-offering-for-vm.html#change-cpu-ram-for-vm

 

 

 from:http://blog.cunss.com/?p=226

posted on 2014-08-18 15:15  heidsoft  阅读(800)  评论(0)    收藏  举报