# Identify Backing Image for Instance (QEMU)

## Problem

An instance, spawned on a KVM hypervisor leveraging QEMU virtualization, has an ephemeral disk which is typically backed by a base image in **QCOW2** format. It may be necessary in some cases to verify the validity of the base image file. In order to do so, the file location of the backing image must be identified.

## Environment

* Platform9 Managed OpenStack - All Versions
* KVM/QEMU

## Procedure

1. Identify the following prior to any subsequent steps.
   * Instance UUID
   * Hypervisor/Host on which the instance resides.
   * File path of the instance storage for that particular hypervisor.
2. SSH to the instance's hypervisor.
3. Query the image information of the disk file associated with the instance.

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

```none
# qemu-img info [INSTANCE_STORAGE_PATH]/[INSTANCE_UUID]/disk
```

{% endtab %}
{% endtabs %}

4. A ***backing file*** attribute is displayed with the path to the base image.Example:

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

```none
backing file: /opt/pf9/data/instances/_base/a788db23f9e99aed9431324a7c04bafe7c633604
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions: 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 current page URL with the `ask` query parameter:

```
GET https://platform9.com/kb/pmo/how-to/identify-backing-image-for-instance-qemu.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
