Solved

VMware Workstation shrink harddrive - guest OS Windows8.1

Posted on 2013-11-27
4
3,204 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

In this article, I will show you HOW TO: Create your first Windows Virtual Machine on a VMware vSphere Hypervisor 6.5 (ESXi 6.5) Host Server, the Windows OS we will install is Windows Server 2016.
Is your company's data protection keeping pace with virtualization? Here are 7 dynamic ways to adapt to rapid breakthroughs in technology.
Teach the user how to rename, unmount, delete and upgrade VMFS datastores. Open vSphere Web Client: Rename VMFS and NFS datastores: Upgrade VMFS-3 volume to VMFS-5: Unmount VMFS datastore: Delete a VMFS datastore:
This video shows you how easy it is to boot from ISO images for virtual machines with the ISO images stored on a local datastore on the ESXi host.

744 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

11 Experts available now in Live!

Get 1:1 Help Now