Solved

VMware Workstation shrink harddrive - guest OS Windows8.1

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

Accepted Solution

by:
Andrew Hancock (VMware vExpert / EE MVE^2) 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 119
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

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.
When rebooting a vCenters 6.0 and try to connect using vSphere Client we get this issue "Invalid URL: The hostname could not parsed." When we get this error we need to do some changes in the vCenter advanced settings to fix the issue.
Teach the user how to install log collectors and how to configure ESXi 5.5 for remote logging Open console session and mount vCenter Server installer: Install vSphere Core Dump Collector: Install vSphere Syslog Collector: Open vSphere Client: Config…
Advanced tutorial on how to run the esxtop command to capture a batch file in csv format in order to export the file and use it for performance analysis. He demonstrates how to download the file using a vSphere web client (or vSphere client) and exp…

810 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