how to shrink or convert VMDK format image ?


===============================================================

how to shrink vmdk


in guest:

for OS X :

su diskutil secureErase freespace 0 [harddrive name]

for some other linux/unix OS , we should do below two steps to replace "diskutil":

1)  cat /dev/zero > zero.fill

2)  rm -f zero.fill


on host:
C:\Program Files (x86)\VMware\VMware Workstation\vmware-vdiskmanager.exe -k [vmdk path]


REFERENCE:

    https://www.insanelymac.com/forum/topic/308367-how-to-shrink-os-x-vmdk/

================================================================

about VMDK and VDI format convert

as we know, VMDK is the shortname of Virtual Machine Disk, initially developed by VMWare and now it's an

open format.

VDI is the shortname of VirtualBox Disk Image, it's specified for virtualbox but the others VMM also support

this format. In some place, the VDI means Virtual Desktop Infrastructure, but here we are talking about a file format.

---------------------------------------------------------------------------------------------------------

1) performance

at first, in my opinion I supposed the VMDK image has a higher performance than VDI on VMWare or the VDI image

worked better than VMDK on VBox. but finally I found there is no difference. they are just image formats to content

data.

----------------------------------------------------------------------------------------------------------

2) format convert

raw / vdi / vmdk / vhd / qcow2

using qemu-img:

    qemu-img covert -f [origin format] <source image> -o [target format] <target image>

using vboxmanager:

    vboxmanager  clonehd <source image>  <target image> --format [target format]

===================================================================

    


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值