---
title: "Ampliar un volumen en vSphere y en un SO (EN)"
description: "How to add space to your virtual disk and integrate it in your VM"
url: https://docs.ovhcloud.com/es/guides/hosted-private-cloud/powered-by-vmware/extend-disk
lang: es
lastUpdated: 2022-01-13
---
# Ampliar un volumen en vSphere y en un SO (EN)

## 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

- Being an administrative contact of your [Hosted Private Cloud infrastructure](https://www.ovhcloud.com/es-es/enterprise/products/hosted-private-cloud/) to receive login credentials
- A user account with access to vSphere (created in the <ManagerLink to="/">OVHcloud Control Panel</ManagerLink>)

## Instructions

:::warning
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](/images/hosted-private-cloud/powered-by-vmware/extend-disk/en01dash.png)
On the left side, navigate to the VM you wish to modify, right click on it and select `Edit Settings
`.
![EDIT](/images/hosted-private-cloud/powered-by-vmware/extend-disk/en02vm.png)
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](/images/hosted-private-cloud/powered-by-vmware/extend-disk/en03hdd.png)
You can verify the change was applied in your recent tasks view.

![EDIT](/images/hosted-private-cloud/powered-by-vmware/extend-disk/en04task.png)
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](/images/hosted-private-cloud/powered-by-vmware/extend-disk/en05start.png)
In the management console, you can see there is 20GB of unallocated space, corresponding to the space added to the virtual disk previously.

![WIN](/images/hosted-private-cloud/powered-by-vmware/extend-disk/en06unallocated.png)
Right-click the existing logical disk and select `Extend Volume
`.
![WIN](/images/hosted-private-cloud/powered-by-vmware/extend-disk/en07extend.png)
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](/images/hosted-private-cloud/powered-by-vmware/extend-disk/en08wiz.png)
You can now see your disk fully extended and available.

![WIN](/images/hosted-private-cloud/powered-by-vmware/extend-disk/en09done.png)
### Linux VM

:::info
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](http://gparted.sourceforge.net/livecd.php) 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](/es/guides/hosted-private-cloud/powered-by-vmware/connect-iso-to-vm.md).

:::

In the vSphere interface menu, go to the `Hosts & Clusters
` dashboard.
![MENU](/images/hosted-private-cloud/powered-by-vmware/extend-disk/en01dash.png)
On the left side, navigate to the VM you wish to modify, right-click it and select `Edit Settings
`.
![EDIT](/images/hosted-private-cloud/powered-by-vmware/extend-disk/en10vm.png)
Connect the utility ISO to your VM ([How to connect an ISO image to a VM](/es/guides/hosted-private-cloud/powered-by-vmware/connect-iso-to-vm.md)
).

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](/images/hosted-private-cloud/powered-by-vmware/extend-disk/en11hdd.png)
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](/images/hosted-private-cloud/powered-by-vmware/extend-disk/en12bios.png)
You can verify the change was applied in your recent tasks view.

![EDIT](/images/hosted-private-cloud/powered-by-vmware/extend-disk/en13task.png)
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](/images/hosted-private-cloud/powered-by-vmware/extend-disk/en14unallocated.png)
Right-click the existing logical volume and select `Resize/Move
`.
![LIN](/images/hosted-private-cloud/powered-by-vmware/extend-disk/en15extend.png)
Drag the right arrow to select the whole available space or type 0 in the "Free space following" field.

Click `Resize/Move
`.
![LIN](/images/hosted-private-cloud/powered-by-vmware/extend-disk/en16wiz.png)
Click the green checkmark to apply all operations.

![LIN](/images/hosted-private-cloud/powered-by-vmware/extend-disk/en17apply.png)
Click `Apply
` to confirm.
![LIN](/images/hosted-private-cloud/powered-by-vmware/extend-disk/en18confirm.png)
Click `Close
` when done.
![LIN](/images/hosted-private-cloud/powered-by-vmware/extend-disk/en19close.png)
You can now see your volume contains the unallocated space.

We still need to apply the space to the disk.
![LIN](/images/hosted-private-cloud/powered-by-vmware/extend-disk/en20disk.png)
Right-click the existing disk and select `Resize/Move
`.
![LIN](/images/hosted-private-cloud/powered-by-vmware/extend-disk/en21extend.png)
Drag the right arrow to select the whole available space or type 0 in the "Free space following" field.

Click `Resize
`.
![LIN](/images/hosted-private-cloud/powered-by-vmware/extend-disk/en22wiz.png)
Click the green checkmark to apply all operations.

![LIN](/images/hosted-private-cloud/powered-by-vmware/extend-disk/en23apply.png)
Click `Apply
` to confirm.
![LIN](/images/hosted-private-cloud/powered-by-vmware/extend-disk/en18confirm.png)
Click `Close
` when done.
![LIN](/images/hosted-private-cloud/powered-by-vmware/extend-disk/en19close.png)
You can now see your vitual disk is extended and ready for use.

![LIN](/images/hosted-private-cloud/powered-by-vmware/extend-disk/en24done.png)
## Go further

Join our community of users on [https://community.ovh.com/en/](https://community.ovh.com/en/).
