> For the complete documentation index, see [llms.txt](https://platform9.com/kb/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://platform9.com/kb/pmo/solution/unable-to-start-instance-with-error-cannot-allocate-memory.md).

# Unable to Start Instance With Error "Cannot allocate memory"

## Problem

Starting an *instance* from a **SHUTDOWN** state results in the following error being observed in the *pf9-ostackhost* log located under */var/log/pf9* directory.

{% tabs %}
{% tab title="Javascript" %}

```javascript
2021-10-11 01:59:23.636 ERROR nova.virt.libvirt.driver [...] [instance: 7e008ee7-3dc1-4a02-b9a4-587d2f9ea591] Failed to start libvirt guest: libvirt.libvirtError:internal error: qemu unexpectedly closed the monitor: 2021-10-11T05:59:23.408060Z qemu-kvm: cannot set up guest memory 'pc.ram': Cannot allocate memory
```

{% endtab %}
{% endtabs %}

## Environment

* Platform9 Managed OpenStack - All versions
* Nova
* Libvirt

## Cause

The *instance* fails to start because the *libvirt* process is not able to allocate the required memory being requested by the *instance*.

## Resolution

1. Try migrating a few running *instances* to a different host.
2. If there is no hosts available to accommodate the running VMs, provision additional physical memory on the host.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://platform9.com/kb/pmo/solution/unable-to-start-instance-with-error-cannot-allocate-memory.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `build a script that syncs our docs to a CMS` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
