> 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/frequently-asked-questions/vm-build-fails-due-to-service--org-freedesktop-machine1--failing.md).

# VM Build Fails due to Service 'org.freedesktop.machine1' Failing to Activate and Timed out

## Problem

VM build fails with the below error logs in *`pf9-ostackhost`* logs.

{% tabs %}
{% tab title="PF9-ostackhost logs" %}

```bash
2024-09-10 01:11:04.779 ERROR nova.compute.manager [req-38f8dc99-4712-4cf8-9077-56d772768e1b ..] [instance: <instance-uuid>] Failed to build and run instance: libvirt.libvirtError: Failed to activate service 'org.freedesktop.machine1': timed out
2024-09-10 01:11:04.779 TRACE nova.compute.manager [instance: <instance-uuid>] Traceback (most recent call last):
...
2024-09-10 01:11:04.779 TRACE nova.compute.manager [instance: <instance-uuid>] libvirt.libvirtError: Failed to activate service 'org.freedesktop.machine1': timed out
2024-09-10 01:11:04.779 TRACE nova.compute.manager [instance: <instance-uuid>]
2024-09-10 01:11:07.024 INFO nova.compute.manager [req-38f8dc99-4712-4cf8-9077-56d772768e1b ..] [instance: <instance-uuid>] Took 1.98 seconds to deallocate network for instance.
2024-09-10 01:11:07.653 INFO nova.scheduler.client.report [req-38f8dc99-4712-4cf8-9077-56d772768e1b ..] Deleted allocation for instance <instance-uuid>
```

{% endtab %}
{% endtabs %}

## Environment

* Platform9 Managed OpenStack - v4.0 and Higher

## Cause

*`Systemd-machined`* is a system service that keeps track of locally running virtual machines and containers. However, sometimes it has been observed that this service does not show errors but still libvirt fails to activate the service and build VM.

## Resolution

Restart the *`systemd-machined`* service. Verify once the service is stable.

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

```bash
# systemctl restart systemd-machined
```

{% endtab %}
{% endtabs %}

## Additional Information

The underlying Linux host system service may experience virtualisation issues, but restarting the service typically resolves the problem.


---

# 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/frequently-asked-questions/vm-build-fails-due-to-service--org-freedesktop-machine1--failing.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.
