Loading

×Sorry to interrupt
CSS Error

Refresh

Cookie Preference Center

General Information on cookies

When you visit our website, we use cookies to ensure that we give you the best experience. This information does not usually directly identify you, but it can give you a more personalized web experience. Because we respect your right to privacy, you can choose not to allow some types of cookies by clicking on the different category headings to find out more and change your settings. However, blocking some types of cookies may impact your experience on the site and the services we are able to offer. Further information can be found in our

Cookie Policy.

Strictly Necessary

Strictly Necessary

Always Active

Strictly Necessary

Strictly necessary cookies are always enabled since they are essential for our website to function. They enable core functionality such as security, network management, and website accessibility. You can set your browser to block or alert you about these cookies, but this may affect how the website functions. For more information please visit www.aboutcookies.org or www.allaboutcookies.org.

Cookie Details‎

Performance

Performance

Performance

Performance cookies are used to analyze the user experience to improve our website by collecting and reporting information on how you use it. They allow us to know which pages are the most and least popular, see how visitors move around the site, optimize our website and make it easier to navigate.

Cookie Details‎

Please confirm your settings by refreshing the page.

Functional

Functional

Functional

Functional cookies help us keep track of your past browsing choices so we can improve usability and customize your experience. These cookies enable the website to remember your preferred settings, language preferences, location and other customizable elements such as font or text size. If you do not allow these cookies, then some or all of these services may not function properly.

Cookie Details‎

Advertising

Advertising

Advertising

Advertising cookies are used to send you relevant advertising and promotional information. They may be set through our site by third parties to build a profile of your interests and show you relevant advertisements on other sites. These cookies do not directly store personal information, but their function is based on uniquely identifying your browser and internet device.

Cookie Details‎

Advertising Cookies

Consent Leg.Interest

Select All Vendors

Select All Vendors

Select All Hosts

Select All

Clear Filters

Information storage and access

Apply

Confirm My Choices Reject All Allow All

Skip to main content

My Subscriptions

Loading

Knowledge Base

Increasing the size of a virtual disk (1004047)

Last Updated: 3/27/2024Categories: How toTotal Views: 334555Language:
English

147 like this article

Subscribe to get an email
newsletter with new updates

147 people found this helpful Please provide article feedback:

Learn how VMware Skyline Advisor and Skyline Health Diagnostics work together to provide proactive intelligence and self-service log analysis.

Use Skyline Advisor to avoid issues before they occur across VCF, vSphere, vSAN, NSX, vROps & Horizon. Skyline Findings are based on top KBs, VMSAs/CVEs and design best practices.

Use Skyline Health Diagnostics to root cause vSphere & vSAN logs when an issue occurs. Skyline Health Diagnostic Findings are based on top KBs and VMSA/CVEs. You can use the Skyline Health Diagnostics tool in online or offline mode.

If you require additional help from technical support, please use Skyline Advisor to initiate a Log Assist to reduce time to upload logs. TSEs can also initiate logs to reduce effort.

Purpose

This article provides information on increasing the size of a virtual disk. This procedure is necessary to accommodate data requirements that have changed since the creation of the virtual disk.

Resolution

Important information before you begin

Even though this article provides steps to increase the size of your virtual disk, the size of the disk partition does not increase as observed inside the guest operating system. You must follow steps related to your specific operating system to increase the size of the disk partition(s).

For more information, see Increasing the size of a disk partition (1004071).

Caution: VMware recommends that you back up your virtual machine before increasing the size of virtual disks.

The procedure for increasing the size of a virtual disk differs between VMware products. Follow the section below that matches your product.

In all cases, confirm these before increasing the size of the virtual disk:

All snapshots have been removed. For additional information, see Working with snapshots (1009402).

The virtual machine is powered off.

PVSCSI controller allows hot extend disk from vSphere 7.0.

NVMe controller allows hot extend disk from vSphere 8.0.1.

Note: In ESX 4.1, you can extend and add virtual disks to a virtual machine when it is powered on (after installing VMware Tools).

Instructional Notes: About File Names

Replace any reference to vm.vmdk in the commands with the full path to the virtual machine's virtual disk.

Note: If you have multiple .vmdk files with the same base name, use the file that does not include -flat or -s0 in its file name.

You may need to:

Locate the full path to a hosted (non-ESX host) virtual machine's virtual disk (.vmdk ) file. For more information, see Locating a hosted virtual machine's files (1003880).

Locate the full path to an ESX host's virtual machine's virtual disk (.vmdk ) files. For more information, see Verifying that ESX/ESXi virtual machine storage is accessible (1003751).

Workstation / Player / ACE Manager / Server / GSX

To increase the virtual disk from the command line:

Open a command prompt. For more information, see Opening a command or shell prompt (1003892).

Navigate to the product's installation directory. For more information, see Locating the installation directory of a VMware product (1003897).

Type vmware-vdiskmanager -x 100Gb vm.vmdk and press Enter.

Note: Replace 100Gb with the actual size of virtual disk that you want. You can also specify Kb and Mb.

Follow the steps in Increasing the size of a disk partition (1004071) so the guest operating system is aware of the change in disk size.

For Workstation 7 and later and Player 3.x and later, you can increase the virtual disk from the GUI:

Select the virtual machine from the Inventory.

Click Edit Virtual Machine Settings.

Click Hard Disk.

Click Utilities > Expand, enter the new size, then click Expand.

Complete the steps in Increasing the size of a disk partition (1004071), so that the guest operating system is aware of the change in disk size.

VMware Player 2.x / ACE Instance

It is not possible to directly change the size of a virtual machine's virtual disk if VMware Player 2.x is being used or if it is an ACE Instance.

If you are using an ACE Instance, the virtual disk size must be changed from the ACE Manager, then repackaged and redeployed.

If you are using VMware Player's 2.x, upgrade to VMware Player 3. This is a free download, available at VMware Downloads.

ESX / VI Client / vSphere

Notes:

In ESX 4.1, you can extend and add virtual disks to a virtual machine when it is powered on (after installing VMware Tools).

Ensure the user has sufficient permissions to carry out this task.

Warning: If the disks are clustered, they cannot be expanded through vSphere Client but instead through CLI.

Please use this command as an example:

# vmkfstools -X 6G -d eagerzeroedthick vm.vmdk

Note: For more information on using vmkfstools commands, see Cloning and converting virtual machine disks with vmkfstools (1028042).

This error may occur because of a number of different issues:

Failed to open the disk 'vm.vmdk' : A file was not found (0x1900000004)

If you experience this error, ensure that you can power on the virtual machine successfully and ensure that you remove all snapshots. For additional information, see Determining if a virtual machine is using snapshots (1004343). If the error persists, contact VMware Support.

For ESX 3.5 or later:

Open VMware Infrastructure (VI) Client and connect to VirtualCenter or the ESX host.

Right-click the virtual machine.

Click Edit Settings.

Select Virtual Disk.

Increase the size of the disk.

Note: If this option is greyed out, the disk may be running on snapshots or the disk may be at the maximum allowed size depending on the block size of the datastore.

Follow the steps in Increasing the size of a disk partition (1004071) so the guest operating system is aware of the change in disk size.

For earlier versions of ESX, you must use the Console. For more information, see Adding space to an ESXi/ESX host virtual disk(994).

For further details on Virtual Disk Configuration, see the vSphere Virtual Machine Administration Guide.

Note: Increasing the size of an IDE virtual disk using the vSphere Client is not supported. SCSI virtual disks are the only supported disk that can be expanded via the vSphere Client.

Lab Manager

Warning: Any attempt to resize a configuration's virtual disk in Lab Manager results in total data loss. Do not attempt to resize the virtual disk. Create a new virtual machine with a virtual disk of the size desired. When you have completed creating a new virtual machine, create a backup of the virtual machine from within the guest and then restore the backup to the newly created virtual machine.

Note: This procedure applies to templates only. Do not attempt to resize a configuration.

Open Lab Manager.

Consolidate and then deploy the template to be resized. For instructions, see the Lab Manager User's Guide.

Connect to the ESX host where the template was deployed using VI Client.

Perform the disk resize according to the ESX section above.

Follow the steps in Increasing the size of a disk partition (1004071) so the guest operating system is aware of the change in disk size.

Related Information

VMware Skyline Health Diagnostics for vSphere - FAQ
For information on increasing a virtual disk for Fusion, see Resizing a virtual disk in VMware Fusion (1020778).
Increasing the disk space in vCenter Server Appliance 5.x
Verifying that ESX/ESXi virtual machine storage is accessible
Locating a hosted virtual machine's files
Opening a command or shell prompt
Locating the installation directory of a VMware product
Increasing the size of a disk partition
Determining if a virtual machine is using snapshots
Working with snapshots
Resizing a virtual disk in VMware Fusion
Cloning and converting virtual machine disks with vmkfstools
Aumentar o tamanho de um disco virtual
增加虚拟磁盘容量
Aumento del tamaño de un disco virtual
仮想ディスクのサイズの増加
ディスク容量不足で VMware VirtualCenter Server サービスが開始されない
Adding space to an ESXi/ESX host virtual disk

Detectable by VMware SkylineTM

Actions

Copy

link to clipboard
copied!

Print

Language:
English

Attachments

Additional Resources

KB
•
End Of General Availability of the Free vSphere Hypervisor (ESXi 7.x and 8.x) (2107518)

KB
•
VMware End Of Availability of Perpetual Licensing and SaaS Services (96168)

Results 1-2 of 2

Ask The Community

Get answers quickly from VMware experts in the community

Post Subject

CONTINUE IN COMMUNITIES

Related Products:

VMware Workstation Player

VMware Workstation

VMware vSphere ESXi

VMware VirtualCenter

VMware View

VMware vCenter Server

VMware vCenter Lab Manager

VMware Server

VMware Player

VMware GSX Server

VMware ESX Server

VMware ACE

view all

Related Versions:

Take Our Survey

Was this article helpful?

YES

NO

Copyright © 2005-2024 Broadcom. All Rights Reserved. The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.

Terms of Use

Your California Privacy Rights

Privacy

Accessibility

Cookie Settings

Support Assistant