问题描述:
最近遇到了一个需要给ESXi host上的VM缩小硬盘的问题,本以为和单机版vmware类似,把guest os里面的disk shrink出来,然后在vmware里面减小size就行了。但是:it’s not supported.
给一个VMware VM缩小硬盘的官方方法是使用VMware vCenter Converter。
Shrinking
- Virtual disk shrinking is supported when using VMware Converter converting source virtual machine as a machine source (not as virtual to virtual).
Note: You cannot shrink virtual disks using vmkfstools in ESXi as the hypervisor is not aware of the file system layout and cannot ensure a safe shrink operation.
但是V2V 实际操作下来很慢,不得已找到如下“野路子”,亲测有效。不过重要的事情说三遍:
备份