创建虚拟机时,在创建虚拟硬盘时候,有两个选择:1, Allocate all disk space now 2, split into 2Gb files
首先,最上面会让你选择你的虚拟硬盘的最大容量,比如预设的8GB,不论怎么分配容量,硬盘的总大小不能超过预设值。但是看到第一个选项说可以增强虚拟机性能,我就那么干了,但是这样,我就不能shrink硬盘空间了
官方的解释:
The option Allocate all disk space now gives somewhat better performance for your virtual machine. If you do not select Allocate all disk space now, the virtual disk's files start small and grow as needed, but they can never grow larger than the size you set here.
预先分配好了空间的话,开始就是8G的大小,如果是选项2的话,开始虚拟硬盘容量会很小,随着你的使用会慢慢增大,但是,选项2可以让你进行shrink,选项1就不可以压缩硬盘了
官方的解释:
Shrinking Virtual Disks
If you have a virtual disk that grows as data is added, you can shrink it as described in this section. If you allocated all the space for your virtual disk at the time you created it, you cannot shrink it. 如果你预分配的硬盘空间,你就不能shrink它了。
顺便发现了2个似乎比较有用的链接:
如何用vmware workstation创建虚拟机:
http://www.vmware.com/support/ws55/doc/ws_newguest_setup_simple_steps.html
Shrinking Virtual Disks: