範例是 vdi 轉 vhd ,使用 vboxmanage 也可以轉vmware格式
Microsoft Windows [版本 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\win7>cd C:\Program Files\Oracle\VirtualBox
C:\Program Files\Oracle\VirtualBox>vboxmanage clonehd "D:\tmp\GHOSTXP\GHOSTXP.vd
i" "D:\tmp\GHOSTXP\GHOSTXP.vhd" --format vhd
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Clone hard disk created in format 'vhd'. UUID: d7ed5695-2e53-4545-8fd6-f6d2e4b66
626
C:\Program Files\Oracle\VirtualBox>vboxmanage clonehd "D:\tmp\GHOSTXP\GHOSTXP.vd
i" "D:\tmp\GHOSTXP\GHOSTXP.vmdk" --format vmdk
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Clone hard disk created in format 'vmdk'. UUID: f41b8d5a-9b69-4c3b-94b9-51957517
2bd6
C:\Program Files\Oracle\VirtualBox>
另外測試過程中,如果虛擬機有快照的話,好像要對虛擬機的VDI大小壓縮會沒什麼效果
測試2台虛擬機,如果是刪掉了快照後,再從VHD轉到VDI格式後,檔案都是變小
當然要先對虛擬機執行 sdelete -z c: 工具要另外下載
沒有留言:
張貼留言