Estendi un volume in vSphere e in un OS (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/.


Questa documentazione ti è stata utile?

Prima di inviare la valutazione, proponici dei suggerimenti per migliorare la documentazione.

Immagini, contenuti, struttura... Spiegaci perché, così possiamo migliorarla insieme!

Le richieste di assistenza non sono gestite con questo form. Se ti serve supporto, utilizza il form "Crea un ticket" .

Grazie per averci inviato il tuo feedback.


Potrebbero interessarti anche...

OVHcloud Community

Accedi al tuo spazio nella Community Fai domande, cerca informazioni, pubblica contenuti e interagisci con gli altri membri della Community OVHcloud

Discuss with the OVHcloud community

Conformemente alla Direttiva 2006/112/CE e successive modifiche, a partire dal 01/01/2015 i prezzi IVA inclusa possono variare in base al Paese di residenza del cliente
(i prezzi IVA inclusa pubblicati includono di default l'aliquota IVA attualmente in vigore in Italia).