Volume in vSphere und einem Betriebssystem erweitern (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/.


Haben Ihnen die Anleitungen geholfen?

Bevor Sie Ihre Meinung abgeben, nehmen wir gerne Ihre Vorschläge auf, wie wir diese Dokumente verbessern können.

Woran liegt es? An den Bildern, dem Inhalt oder Aufbau der Anleitungen? Schreiben Sie es uns gerne, dann machen wir es zusammen besser.

Ihre Support-Anfragen werden in diesem Formular nicht entgegengenommen. Verwenden Sie hierfür bitte das Formular "Ein Ticket erstellen" .

Vielen Dank. Ihr Feedback wurde gesendet.


Diese Anleitungen könnten Sie auch interessieren...

OVHcloud Community

Besuchen Sie Ihren Community-Bereich und tauschen Sie sich mit anderen Mitgliedern der OVHcloud Community aus. Hier können Sie Fragen stellen, zusätzliche Informationen finden und eigene Inhalte veröffentlichen.

Tauschen Sie sich mit der Community aus

Alle Preise verstehen sich inklusive der gesetzlichen Mehrwertsteuer.

In Übereinstimmung mit der Richtlinie 2006/112/EG in der geänderten Fassung können die Preise ab 01.01.2015 je nach Wohnsitzland des Kunden variieren
(die Preise in den Angeboten verstehen sich inklusive der gesetzlichen Mehrwertsteuer für die Bundesrepublik Deutschland).