

Do not forget if you have a question about this article or another VMware, Virtualisation, Windows Server 2012 question, why not post a Question for me and the other Experts Exchange Experts in the VMware, Virtualisation, Windows 2008, Windows 2012 Zones. If you liked my VMware article and would like to see more Articles from me, please click the Yes button near the: Was this article helpful? at the bottom of this article just below and to the right of this information. Thank you for reading my article, please leave valuable feedback. HOW TO: Clone or Copy a virtual machine in VMware vSphere Hypervisor ESX/ESXi 4.x or ESXi 5.0Īfter the virtual machine disk (VMDK) has been moved, you will notice the disk size reflects the desired size of 20GB.Īfter restarting the virtual machine, and checking with Disk Management, you will notice the 19.5GB unallocated storage space, has been removed, and disappeared.Ĭongratulations, you have successfully Shrunk a VMware Virtual Machine Disk (VMDK) Migrate or Copy the virtual machine to another datastore, if you do not have the migrate option, see my Experts Exchange article here Using vi, edit the descriptor file, and change the number from 83886080 to 41943040, and save the file. We wanted to reduce the size of the VMware virtual machine disk (VMDK) from 40 GB to 20 GB. The number highlighted above, under the heading #Extent description, after the letters RW, defines the size of the VMware virtual disk (VMDK). Using cat, this is what the descriptor file contains We need to edit the *.vmdk, which is the descriptor file, which contains the variables for the size of the *.-flat.vmdk. Power OFF the Virtual Machine, and change to the datastore path where the VMware virtual machine disk (VMDK) is located. Part 5: HOW TO: Enable SSH Remote Access on a VMware vSphere Hypervisor 5.1 (ESXi 5.1) See my previous Experts Exchange articles Login and connect to the VMware vSphere Host ESXi server which hosts the virtual machine. Reducing the size of the VMware Virtual Machine Disk (VMDK) So in effect the "cut" will be made in the unallocated storage space, after the OS partition.Ģ. Providing that we DO NOT affect the existing partitions, this is a safe operation. OS Partition size after Shrink Operation.Īs can be clearly seen in the above screenshot, there is now an unallocated 19.5GB space on the virtual disk, in Step 2 the VMware virtual machine disk (VMDK) will be "chopped", removing this unallocated storage space, and finally reducing the virtual machine disk (VMDK) to 20GB. The Disk Management utility scans the available file system, and reports a maximum size the OS partition can be reduce by, this is based on current file system usage.Įnter the figure 19.5 (GB) x 1024 = 19968 In this example the VMware virtual machine disk (VMDK) is 40GB, and we would like to reduce the size of the VMware virtual machine disk (VMDK) to 20GB. The above dialogue will briefly appear whilst the file system is queried.

Right Click the Volume/Partition to shrink, and select Shrink. Select Disk Management, and select the partition you need to shrink.

Right Click My Computer and Select Manage Press Control-Alt-Delete to login to the virtual machine. Using an RDP (Remote Desktop Protocol) connection or connect via the Console, using the vSphere Client, login to the virtual machine as an Administrator. HOW TO: Resize a VMware (VMDK) Virtual Disk
