vmware-vdiskmanager.exe -x 40Gb “f:\CentOS\CentOS 5.vmdk”

成功后有Disk expansion completed successfully.的提示

WARNING: If the virtual disk is partitioned, you must use a third-party

        utility in the virtual machine to expand the size of the

        partitions. For more information, see:

        http://www.vmware.com/support/kb/enduser/std_adp.php?p_faqid=1647




在WMware的安装目录下有名为vmware-vdiskmanager.exe的可执行文件,在windows下打开控制台并进入WMware的安装目录后,使用一下命令:假设我的虚拟机文件在F:\CentOS\CentOS 5.vmdk


注意:虚拟机不能有快照存在