1. 系统安装 qemu-img 2. file查看原有 img 文件 代码: [root@devs ~]# file redpill-DS918+_7.0.1-42218_1008.img redpill-DS918+_7.0.1-42218_1008.img: x86 boot sector; partition 1: ID=0x83, starthead 32, startsector 2048, 98304 sectors; partition 2: ID=0x83, starthead 62, startsector 100352, 153600 sectors; partition 3: ID=0x83, starthead 205, startsector 253952, 8192 sectors, code offset 0x63 3. 通过 qemu-img info 查看该文件 代码: [root@devs ~]# qemu-img info redpill-DS918+_7.0.1-42218_1008.img image: redpill-DS918+_7.0.1-42218_1008.img file format: raw virtual size: 128M (134217728 bytes) disk size: 128M 4. 转换 代码: [root@devs ~]# qemu-img convert -f raw -O vmdk redpill-DS918+_7.0.1-42218_1008.img redpill-DS918+_7.0.1-42218_1008.vmdk 5. 通过 file 查看转换后的文件 [root@devs ~]# file redpill-DS918+_7.0.1-42218_1008.vmdk redpill-DS918+_7.0.1-42218_1008.vmdk: VMware4 disk image 6. 通过 qemu-img info 查看转换后的文件 代码: [root@devs ~]# qemu-img info redpill-DS918+_7.0.1-42218_1008.vmdk image: redpill-DS918+_7.0.1-42218_1008.vmdk file format: vmdk virtual size: 128M (134217728 bytes) disk size: 58M cluster_size: 65536 Format specific information: cid: 1905877619 parent cid: 4294967295 create type: monolithicSparse extents: [0]: virtual size: 134217728 filename: redpill-DS918+_7.0.1-42218_1008.vmdk cluster size: 65536 format: