When you create a virtual machine with VMware Workstation, all data are stored in a virtual hard disk in vmdk format.
The problem is that over time, if you store a lot of data in the virtual hard disk of your virtual machine, then you delete many files, you will not recover the entire space released in your virtual machine.
Indeed, VMware tends to keep the deleted files in the virtual hard disk of your virtual machine by default. Fortunately, there are 2 features to solve this problem.
VMware also offers management of the location of the various iSCSI, SATA, and IDE virtual hard disks, as well as mapping the partitions of these virtual hard disks directly to the host PC.
To get started, go in the virtual machine settings by clicking on : Edit virtual machine settings.
For each virtual hard disk, you will be able to :
You will also be able to :
Finally, you will be able to :
To begin, we will map a partition of the virtual hard disk by clicking Map.
Note that the virtual machine must be stopped and it must not be encrypted for this to be possible.
If you enable encryption for your VMware virtual machine, this feature will no longer be available.
Since Windows 10 is installed on this virtual hard disk and Windows 10 still creates a (Win RE) system partition when it's installed, you will inevitably find at least 2 partitions :
By default, the partition will be mounted in read-only (Open file in read-only mode (recommended)) and it will be mapped with the letter Z (Map to Drive Z:).
Once the volume (partition) is mounted, you will have access to the contents of this partition from the host PC without having to start the virtual machine.
If we go to the "Z:\Windows\Web\Wallpaper\Windows" folder, we find the wallpaper of Windows 10.
To improve the performance of your virtual machine (or when VMware Workstation requires it), click the Defragment button to defragment the desired virtual hard disk.
A virtual disk is fragmented affecting the virtual machine's performance. To improve performance, defragment the following virtual disk(s): ide0:0. After you power off the virtual machine, go to Virtual Machine Settings, select the virtual disk and click the Defragment button.
This process may take time depending on the size of the disk and the amount of data stored inside it.
When the process is complete, the "Disk defragmentation successfully completed" message will appear.
When we created our virtual machine, we created a 60 GB virtual hard disk.
Now, we increase its size to 80 GB.
However, as VMware Workstation will tell you, you will also need to repartition the virtual hard disk and expand the file system from the guest system.
The disk was successfully expanded. You must repartition the disk and expand the file systems from within the guest operating system.
For Windows, updating the file system is very simple since you can do it from the Windows GUI.
To do this, in the file explorer, right-click on "This PC" (or Computer or Workstation in previous versions of Windows), then click Manage.
Click "Disk Management" and then, expand the last volume (partition) of the virtual hard disk that you just expanded.
In our case, we right-click "Extend Volume" on the C partition.
Just click Next without changing the displayed values so that the volume is expanded by taking all unallocated space (free space) remaining.
The volume is extended.
® InformatiWeb-Pro.net - InformatiWeb.net 2008-2020 - © Lionel Eppe - All rights reserved.
Total or partial reproduction of this site is prohibited and constitutes an infringement punishable by articles L.335-2 and following of the intellectual property Code.