Solved

VMware Workstation shrink harddrive - guest OS Windows8.1

Posted on 2013-11-27
4
3,233 Views
Last Modified: 2013-11-27
Dear Experts,
I want to shrink my VMware drive for Windows8.1 from 160GB to 80 GB
The windows guest only uses 80GB, 80 GB are not allocated, pls see screenshot WindowsDiskUsage
What I tried:
1. starting vmware tools in the guest OS, I only get a about dialog when I click on the VMWare tools tray icon, pls see attachment VmwareToolsPopUp
2. Tried with the vmware-vdiskmanager.exe -k "pathToVMDisk\Windows 8 x64-flat.vmdk"
result: VixDiskLib: Invalid configuration file parameter.  Failed to read configuration file.
Failed to open the disk 'pathToVMDisk\Windows 8 x64-flat.vmdk' : The file specified is not a virtual disk (
0xf00003ebf).
Failed to shrink the disk 'pathToVMDisk\Windows 8 x64-flat.vmdk' : The file specified is not a virtual disk
 (0xf00003ebf).
Please see also VMvirtualmachineconfig attachment
Many thanks for your support
WindowsDiskUsage.PNG
VmwareToolsPopUp.PNG
VMvirtualmachineconfig.png
0
Comment
Question by:mruff
  • 2
  • 2
4 Comments
 
LVL 118

Accepted Solution

by:
Andrew Hancock (VMware vExpert / EE MVE) earned 500 total points
ID: 39680612
A supported method shrinking is to use VMware vCenter Converter Standalone 5.5, and create a V2V.

You will be able to change the virtual machine disk size and OS partition in a single procedure, and have the original unchanged as a copy/backup.

see my EE Article, Step by Step Tutorial Instructions with Screenshots

HOW TO:  P2V, V2V for FREE - VMware vCenter Converter Standalone 5.5

HOW TO:  Synchronize changes when completing a P2V or V2V with VMware vCenter Converter Standalone 5.1

HOW TO: Improve the transfer rate of a Physical to Virtual (P2V), Virtual to Virtual Conversion (V2V) using VMware vCenter Converter Standalone 5.0

I've also seen issues with vmware-vdiskmanager.exe and it's patch....

try changing directory to the location of the VMDK

e.g. cd "pathToVMDisk\Windows 8 x64-flat.vmdk"

and then executing a

C:\Program Files\path to\vmware-vdiskmanager.exe -k "Windows 8 x64-flat.vmdk"

execute the above in the same folder as Windows 8 x64-flat.vmdk,

make sure you have a backup, and be careful just chopping off space off a VMDK, because the OS, will complain.....
0
 

Author Comment

by:mruff
ID: 39680617
What I forgot: even thogh I configured to use the file Windows 8 x64-000002GrowAble.vmdk ask disk, If I remove the former file Windows 8 x64-flat.vmdk (size 160GB) the Windows 8.1 VM does not start - missing file Windows 8 x64-flat.vmdk
0
 
LVL 118
ID: 39680630
I've also seen issues with vmware-vdiskmanager.exe and it's patch....

try changing directory to the location of the VMDK

e.g. cd "pathToVMDisk\Windows 8 x64-flat.vmdk"

and then executing a

C:\Program Files\path to\vmware-vdiskmanager.exe -k "Windows 8 x64-flat.vmdk"

execute the above in the same folder as Windows 8 x64-flat.vmdk,

make sure you have a backup, and be careful just chopping off space off a VMDK, because the OS, will complain.....

Make sure you have no snapshots....and use a V2V...
0
 

Author Closing Comment

by:mruff
ID: 39680915
Dear hanccocka,
Perfect help - VMware vCenter Converter Standalone 5.5 did a great job. Could easily shrink the disk size.
Thanks a lot!!!!
0

Featured Post

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Exchange server is not supported in any cloud-hosted platform (other than Azure with Azure Premium Storage).
In this article, I show you step by step with screenshots to assist you - HOW TO: Deploy and Install the VMware vCenter Server Appliance 6.5 (VCSA 6.5), with some helpful tips along the way.
Teach the user how to configure vSphere Replication and how to protect and recover VMs Open vSphere Web Client: Verify vsphere Replication is enabled: Enable vSphere Replication for a virtual machine: Verify replicated VM is created: Recover replica…
This tutorial will walk an individual through the steps necessary to enable the VMware\Hyper-V licensed feature of Backup Exec 2012. In addition, how to add a VMware server and configure a backup job. The first step is to acquire the necessary licen…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now