raw, qcow2, VDI, VMDK 鏡像互轉格式


轉換一種鏡像格式到另一種通常是直接的。
使用qemu-img 轉換: raw, qcow2, VDI, VMDK

qemu-img convert 命令可以轉換多種格式的鏡像文件,包括 raw, qcow2, VDI (VirtualBox), VMDK (VMware) and VHD (Hyper-V)。
表 7.1. qemu-img 格式字符列表 鏡像格式 qemu-img 參數
raw raw
qcow2 qcow2
VDI (VirtualBox) vdi
VMDK (VMware) vmdk
VHD (Hyper-V) vpc

這個示例轉換 centos63.dsk raw格式鏡像到 qcow2 鏡像格式。

$ qemu-img convert -f raw -O qcow2 centos64.dsk centos64.qcow2

轉換vmdk到raw格式,你可以使用:
[注意]
-f format參數是可選的,如果忽略,qemu-img將嘗試推斷鏡像格式。
VBoxManage: VDI (VirtualBox) 轉換為 raw

如果你使用 VirtualBox 創建了一個 VDI 鏡像,你可以使用VirtualBox附帶的 VBoxManage 工具轉換它為raw格式,在 Mac OS X,VirtualBox 默認存放鏡像在 ~/VirtualBox VMs/ 目錄,以下示例在當前目錄中從一個VirtualBox VDI鏡像創建一個 raw 鏡像。
-----------------------------------
raw, qcow2, VDI, VMDK 鏡像互轉格式

轉自網絡


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM