VMware is a cloud-based solution that allows you to run multiple virtual machines on a single physical machine. It acts as an interface between the hardware and various operating systems. If you're running out of disk space on your virtual machine, you will receive a notification upon startup and may also notice that the system is slowing down. To expand your disk space, simply adjust the disk settings and allocate additional space. Before making these changes, ensure that you have deleted all snapshots (copies of the disk files) and powered off the virtual machine.
StepsExpand Disk in VMware Settings

Ensure certain prerequisites are met. To increase the disk space in VMware, you must make sure that the virtual machine is powered off and that there are no snapshots. To check for any snapshots, review the 'Information' section under the 'Summary' tab.

Go to "Settings". Perform this action within VMware.

Select the hard drive you want to expand. You will find this drive under the "Hardware" column.

Expand the disk. On the right side of the window, under "Disk Provisioning," set the new "Provisioned Size" for the disk. In some interfaces, you will see a dropdown menu labeled "Utilities." Choose "Expand" here. Typically, disk sizes range from 30 to 40 GB, so try increasing the size to somewhere between 45 to 55 GB.

Click "OK". This step sets the new maximum size for the virtual disk.

Rescan the disk. After expanding the disk space, you will need to perform a few additional steps within the operating system. To rescan the disk, open "Disk Management" and select "Rescan Disks."

Thay đổi dung lượng của ổ cài đặt hệ điều hành. Giờ thì sau khi đã mở rộng và quét lại ổ đĩa, bạn sẽ nhìn thấy phần "Unallocated Space" vừa mới được tạo ra. Lúc này bạn phải gán phần dung lượng này vào ổ cài đặt hệ điều hành. Để thực hiện điều này, hãy nhấp chuột phải vào phần dung lượng chưa được dùng đến và lựa chọn "Expand Volume". Đây là bước hiển thị một chương trình đơn giản hỗ trợ bạn trong việc quyết định xem sẽ làm gì với phần dung lượng mới được tạo ra này. Cuối cùng là gán nó vào ổ ảo.
Mở rộng ổ đĩa trong Workstation, Player, ACE Manager, Server, hoặc GSX

Mở Command Prompt (Dấu nhắc lệnh). Nếu bạn đang sử dụng phần mềm VMware Workstation, Player, ACE Manager, Server hoặc GSX, hãy làm theo cách này. Bạn có thể thực hiện điều này bằng cách nhấp vào "Start" rồi gõ "cmd" mà không có dấu ngoặc kép vào thanh tìm kiếm. Sau đó lựa chọn "Run".

Vào thư mục cài đặt phần mềm.
- Nếu dùng Workstation, hãy gõ:
\Program Files\VMware\VMware Workstation trong Windows hoặc :/usr/sbin trong Linux.
- Nếu dùng Player và ACE Manager, gõ:
\Program Files\VMware\VMware Player trong Windows hoặc /usr/sbin trong Linux.
- Nếu dùng Server, gõ:
\Program Files\VMware\VMware Server trong Windows hoặc /usr/bin trong Linux.
- Nếu dùng GSX, gõ:
\Program Files\VMware\VMware GSX Server trong Windows hoặc /usr/bin trong Linux.

Gõ dòng code sau đây: vmware-vdiskmanager –x 100Gb vm.vmdk và nhấn “Enter”. Đây là bước thay đổi dung lượng của ổ đĩa hiện tại.
- Thay thế "vm.vmdk" bằng đường dẫn tuyệt đối đến ổ đĩa ảo của máy ảo và 100 GB bằng dung lượng ổ đĩa mong muốn.

Expand the disk partition. After expanding the disk space, you need to inform the operating system of this change. Go to "Computer Management" and select "Disk Management". Right-click on "Volume" and choose "Extend Volume."
Advice- You won't be able to complete this task if the virtual machine is running or if you haven’t deleted all snapshots.
- Sometimes, you might prefer to create a new disk rather than expanding the current one and transferring the data to it.
Warning- Before expanding the disk, it is advisable to back up your current data.
- If you attempt to change the disk size in Lab Manager, all your data will be lost. If you require more space on the virtual machine, consider creating a new virtual disk with the desired capacity and transferring the data to it.