# Virtualization

This tab displays the virtualization systems (virtual machines, containers, jails....) associated to a host.

![module assets - virtualization](/files/YWBy5bmRz1ewVzZ1IMv8)

{% hint style="success" %}
You can either remount the virtual machine in the assets tab or include it in the virtualization tab of the host that hosts them. To make this change, go to **Administration** > **Inventory** > **Virtualization**.

<img src="/files/5TRGVAAjcQBOYZkS6e4r" alt="module assets - import type for virtualization" data-size="original">
{% endhint %}

The available information vary from one system to another: for a virtual machine for instance, it includes :

* Name
* Automatic Inventory
* Virtualization system
* Virtualization model
* State
* UUID
* Processors number
* Allocated memory
* As well as the name of the physical machine (the host).

GLPI establishes the link between a host and a virtual machine based on the unique identifier (UUID). In some case, it is possible that the UUID is different inside the physical machine and the virtual machine; it is therefore impossible to make the link automatically.

Several systems are supported, including HyperV, VMWare, VirtualBox, WSL, etc.

The only way to link manually a virtual machine to a physical machine is to attribute the *same* UUID to the virtual machine declared on the host and to the virtual machine inside GLPI.

{% hint style="info" %}
If using native inventory or third-party inventory tool, the virtualization information can be automatically imported and updated.
{% endhint %}

## Add a virtual machine

* To add a new virtual machine, click on **Add a virtual machine**
* Enter the information of the new machine

![module assets - add a new virtual machine](/files/3PkGYFjT07s6LNzrpY91)

* By clicking on **+**, you can add a new :
  * Virtualization system
  * Virtualization model

You can manage these items in **Setup** > **Dropdowns** > **Virtual Machines**

![module assets - manager your VM](/files/U8TXvYt4RpemU6kVtKON)

{% hint style="info" %}
A machine added manually will, by default, be identified as automatic inventory: No. This information cannot be modified.
{% endhint %}

## Delete a virtual machine

* To delete a virtual, you need to click on this (on assets directly or in the virtualization tab of the host)
* Click on **Put in trashbin**
* If the VM was a computer in assets, click on the trashbin
* Select the **checkbox**
* Click on **Actions**
* Delete permanently (keep or remove devices as required)

![module assets - manager your VM](/files/w3l7oGa1O6MkwCTQk7Fw)

{% hint style="info" %}
If the VM is still present on the host, it will be remounted during the next inventory. You will therefore also need to delete it from the host
{% endhint %}


---

# 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://help.glpi-project.org/documentation/modules/assets/tabs/virtualization.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.
