Wednesday, June 10, 2015

Shrink a VM image


In the guest OS is Windows, start a cmd terminal and go to the VMware Tools folder:
    cd "C:\Program Files\VMware\VMware Tools"

List the available mount points:
    .\VMwareToolboxCmd.exe disk list

Shrink the mount point. For example, if the disk list command returns C:\, run the shrink command as:
    .\VMwareToolboxCmd.exe disk shrink C:\

To see the options of the command, run:
    .\VMwareToolboxCmd.exe help

To see the options of the subcommand, e.g. disk, run:
    .\VMwareToolboxCmd.exe help disk

On Linux or Solaris, use /usr/sbin/vmware-tool-cmd instead of VMwareToolboxCmd.exe. On FreeBSD, use /usr/local/sbin/vmware-tool-cmd.

Get the reference of VMware Tools at http://www.wmware.com/pdf/vmware-tools-cli.pdf. In the document, please note that shrink is missing after disk in the syntax of the command utility-name disk mount-point.

No comments:

 
Get This <