Skip to content

Commit 0518936

Browse files
author
Marcus Sorensen
committed
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)
1 parent 0c28b66 commit 0518936

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/LibvirtVMDef.java‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,8 @@ public String toString() {
162162
}
163163
if (_memBalloning) {
164164
resBuidler.append("<devices>\n" + "<memballoon model='virtio'/>\n" + "</devices>\n");
165+
} else {
166+
resBuidler.append("<devices>\n" + "<memballoon model='none'/>\n" + "</devices>\n");
165167
}
166168
if (_vcpu != -1) {
167169
resBuidler.append("<vcpu>" + _vcpu + "</vcpu>\n");

0 commit comments

Comments
 (0)