# VM has less memory than allocated

**URL:** <https://forum.opennebula.io/t/vm-has-less-memory-than-allocated/11988>\
**Category:** Product Support\
**Created:** [March 26, 2024, 7:46pm UTC](https://forum.opennebula.io/t/vm-has-less-memory-than-allocated/11988 "2024-03-26T19:46:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![leandroramos](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/leandroramos/32/7598_2.png) [@leandroramos](https://forum.opennebula.io/u/leandroramos)\
**Post date:** [March 26, 2024, 7:46pm UTC](https://forum.opennebula.io/t/vm-has-less-memory-than-allocated/11988/1 "2024-03-26T19:46:39Z")

</div>

When I allocate 1.5GB to a VM, the VM starts with 865MB of RAM. Do you can help me to fix or understand it? When I instantiate a VM with 1GB of RAM I can’t use it, since it ends with ~ 380MB.

I’m using OpenNebula 6.8.2 KVM Host and Sunstone 6.6 (another server).

Steps to reproduce:

Instantiate a VM with some memory size (in my case 1.5GB).

Current results:  
A VM with much less RAM than expected.

Expected results:  
The amount of RAM allocated.

Sunstone screenshot:

 ![image](https://canada1.discourse-cdn.com/flex031/uploads/opennebula/original/2X/7/7589af87eebe186d87709b6289c80ed68a21faaa.png)

onevm show screenshot (1GB memory):  
 ![image](https://canada1.discourse-cdn.com/flex031/uploads/opennebula/original/2X/b/bb6918559b2aaeedfc669d45b21d85da18d95861.png)

KVM info (1.5GB):  
 ![image](https://canada1.discourse-cdn.com/flex031/uploads/opennebula/original/2X/6/6f585c675ffa1d2e956f8cbccb95629becaddd42.png)

VM’s actual memory:

 ![image](https://canada1.discourse-cdn.com/flex031/uploads/opennebula/original/2X/c/c04ce1cd656a29ceeac27ca23d81b2e9cc1ffe41.png)

---

<div class="post-metadata">

**Author:** ![dclavijo](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/dclavijo/32/5265_2.png) [@dclavijo](https://forum.opennebula.io/u/dclavijo)\
**Post date:** [March 27, 2024, 1:33pm UTC](https://forum.opennebula.io/t/vm-has-less-memory-than-allocated/11988/2 "2024-03-27T13:33:22Z")

</div>

That behavior is probably related to the virtio memory balloon inflating and deflated. More details [here](https://docs.opennebula.io/6.8/open_cluster_deployment/kvm_node/kvm_driver.html?highlight=memory_resize_mode#memory-resize-mode).
