Ampliar un volumen en vSphere y en un SO (EN)

How to add space to your virtual disk and integrate it in your VM

Last Updated on 13th January 2022

Objective

We will demonstrate how to use vSphere and OS management tools to add space to your virtual disks for both Windows and Linux.

This guide offers you a step by step study case to achieve this objective.

Requirements

Instructions

Before proceeding with this type of change, we recommend a full backup or a clone of the virtual machine.

Windows VM

In the vSphere interface menu, go to the Hosts & Clusters dashboard.

MENU

On the left side, navigate to the VM you wish to modify, right click on it and select Edit Settings.

EDIT

Find the disk you are extending and modify the size value as needed (in our case, we changed the value from 80 to 100 GB).
Click OK.

EDIT

You can verify the change was applied in your recent tasks view.

EDIT

Log on the VM and go to the "Disk Management" console.
One simple way to do it is to right click on "Start" and select Disk Management.

WIN

In the management console, you can see there is 20GB of unallocated space, corresponding to the space added to the virtual disk previously.

WIN

Right-click the existing logical disk and select Extend Volume.

WIN

Click Next in the first wizard window.
In the second window, the whole available space will be selected by default. It can be modified if needed. Click Next.
Click Finish in the last window.

WIN

You can now see your disk fully extended and available.

WIN

Linux VM

For Linux VMs, we'll use a partition utility. There are many available products and we do not recommend any over the others. Our use of GParted LiveCD is in no way an endorsement. For creating an ISO library and mounting an ISO to a VM, refer to How to connect an ISO image to a VM.

In the vSphere interface menu, go to the Hosts & Clusters dashboard.

MENU

On the left side, navigate to the VM you wish to modify, right-click it and select Edit Settings.

EDIT

Connect the utility ISO to your VM (How to connect an ISO image to a VM).
Find the disk you are expanding and modify the size value as needed (in our case, we changed the value from 20 to 70 GB).

EDIT

In the VM Options tab, check the "During the next boot, force entry into the BIOS setup screen" box so you can boot on the partition utility.
Click OK.

EDIT

You can verify the change was applied in your recent tasks view.

EDIT

Boot (or reboot) the VM and start the partition utiliy.
Refer to the software developer documentation to boot and get to the management console.
In the management console, you can see there is 50GB of unallocated space, corresponding to the space added to the virtual disk previously.

LIN

Right-click the existing logical volume and select Resize/Move.

LIN

Drag the right arrow to select the whole available space or type 0 in the "Free space following" field.
Click Resize/Move.

LIN

Click the green checkmark to apply all operations.

LIN

Click Apply to confirm.

LIN

Click Close when done.

LIN

You can now see your volume contains the unallocated space.
We still need to apply the space to the disk.

LIN

Right-click the existing disk and select Resize/Move.

LIN

Drag the right arrow to select the whole available space or type 0 in the "Free space following" field.
Click Resize.

LIN

Click the green checkmark to apply all operations.

LIN

Click Apply to confirm.

LIN

Click Close when done.

LIN

You can now see your vitual disk is extended and ready for use.

LIN

Go further

Join our community of users on https://community.ovh.com/en/.


¿Le ha resultado útil esta guía?

Si lo desea, también puede enviarnos sus sugerencias para ayudarnos a mejorar nuestra documentación.

Imágenes, contenido, estructura...: ayúdenos a mejorar nuestra documentación con sus sugerencias.

No podemos tratar sus solicitudes de asistencia a través de este formulario. Para ello, haga clic en "Crear un tíquet" .

¡Gracias! Tendremos en cuenta su opinión.


Otras guías que podrían interesarle...

OVHcloud Community

¡Acceda al espacio de la OVHcloud Community! Resuelva sus dudas, busque información, publique contenido e interactúe con otros miembros de la comunidad.

Discuss with the OVHcloud community

A partir del 1 de enero de 2015, con arreglo a la Directiva 2006/112/CE modificada, los precios IVA incluido pueden variar según el país de residencia del cliente (por defecto, los precios con IVA incluyen el IVA español vigente).