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]-o [target format]
using vboxmanager:
vboxmanagerclonehd
===================================================================
【how to shrink or convert VMDK format image ?】
推荐阅读
- How|How Fear Works(PartⅡ)
- vue中的条件判断详解v-if|vue中的条件判断详解v-if v-else v-else-if v-show
- 清晨朗读327(How|清晨朗读327:How Successful People Network with Each Other)
- convert|convert string to BST[deserialize 基础]
- 90天30个TED演讲|90天30个TED演讲 - Day 25: How to get your ideas to spread
- How|How to make tomato and egg noodles.
- jQuery动画
- 你还再说How|你还再说How do you do?快学学外国人地道说法
- 条件渲染|条件渲染 之 v-if 和 v-show 的区别
- 点击其他界面清除定时器,返回启动定时器