# Virtualization

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

![module assets - virtualization](https://3503800744-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIiEHKRx5AeABNDLcRlWX%2Fuploads%2Fgit-blob-9d25c488d2e0f589d8822d1533e867fef1ec9ce4%2Fvirtualization.png?alt=media)

{% 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="https://3503800744-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIiEHKRx5AeABNDLcRlWX%2Fuploads%2Fgit-blob-1387dc32954eb54f381ad33e56064ccaa428fc13%2Fvirtualization-import-type.png?alt=media" 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](https://3503800744-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIiEHKRx5AeABNDLcRlWX%2Fuploads%2Fgit-blob-5a0fa3a72af7abc28949456f02eef7d66285fa84%2Fvirtualization-add.png?alt=media)

* 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](https://3503800744-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIiEHKRx5AeABNDLcRlWX%2Fuploads%2Fgit-blob-3cd3d711a4f956b6078f48dcab6acf4a4d17a7d7%2Fvirtualization-manage.png?alt=media)

{% 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](https://3503800744-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIiEHKRx5AeABNDLcRlWX%2Fuploads%2Fgit-blob-b7f347eb51e10f83e8d763aac4b41061f019a1f7%2Fvirtualization-delete.png?alt=media)

{% 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 %}
