CLOUDSTACK-5968 last patch fixes setting low currentMemory during

overprovision, this one explicitly tells libvirt we dont want a
balloon device (won't use it anyway, and will just suck up a percent
of vm memory)
This commit is contained in:
Marcus Sorensen 2014-01-28 11:50:40 -07:00
parent 0c28b66362
commit 05189361b7
1 changed files with 2 additions and 0 deletions

View File

@ -162,6 +162,8 @@ public class LibvirtVMDef {
}
if (_memBalloning) {
resBuidler.append("<devices>\n" + "<memballoon model='virtio'/>\n" + "</devices>\n");
} else {
resBuidler.append("<devices>\n" + "<memballoon model='none'/>\n" + "</devices>\n");
}
if (_vcpu != -1) {
resBuidler.append("<vcpu>" + _vcpu + "</vcpu>\n");