2013年1月1日 星期二

Shrinking a virtual disk using scripts in VMware Fusion 5 官方文件


Shrinking a virtual disk using scripts in VMware Fusion 5

Purpose

This article provides the steps to shrink a virtual disk in VMware Fusion 5.x using scripts.
 
Notes:
  • The VMware Tools user interface inside the virtual machine in Fusion 5 no longer has the option to shrink the virtual disk.
  • The Clean up Virtual Machine option under Settings > General can also be used to shrink the virtual disks.

Resolution

Shrinking the virtual disk in a Windows virtual machine

To shrink the virtual disk in a Windows virtual machine:
  1. Power on the Windows virtual machine.
  2. Open a Command Prompt with administrator privileges.
  3. Run these commands:

    cd C:\Program Files\VMware\VMware Tools
    C:\Program Files\VMware\VMware Tools> VMwareToolboxCmd help disk
    This displays a list of options that are available for shrinking.

Shrinking the virtual disk in a Linux virtual machine

To shrink the virtual disk in a Linux virtual machine:
  1. Open Terminal.
  2. Run these commands:

    cd /usr/bin

    /usr/bin$ vmware-toolbox-cmd help disk

Shrinking the virtual disk in a Mac OS X virtual machine

To shrink the virtual disk in a Windows virtual machine:
  1. Open Terminal.
  2. Run these commands:

    cd /Library/Application Support/VMware Tools

    ./vmware-tools-cli help disk
Note: To perform a normal shrink operation, use the shrink only option.

沒有留言:

張貼留言