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:
- Power on the Windows virtual machine.
- Open a Command Prompt with administrator privileges.
- 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:
- Open Terminal.
- 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:
- Open Terminal.
- 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.
沒有留言:
張貼留言