如果虚拟机是windows的话,推荐使用vmware converter;
如果不是的话,只能按下面的步骤来:
1. change disk size to your want:
vmware-vdiskmanager.exe -x 12Gb “YOUR_DISK.vmdk”
(vmware-vdiskmanager.exe只有在安装了workstation才有,如果你使用的workstatiopn
7的话,那恭喜你,你不需要命令行,可以直接在GUI上进行resize了)
2.let the os known you change:
use gparted to resize system partition to your size.
download gparted;
load gparted iso from vmware;
set system boot from cdrom(gparted not recognize zfs filesystem, so if your
want increase partition of opensolaris,
reinstall os);
resize system partition;
reboot;
refs:
http://beerpla.net/2007/08/10/how-to-resizegrow-vmware-linux-disks-and-
partitions/