1. 服务器/VPS/主机用户Telegram电报群: https://t.me/openos
    黑群晖 Synology Telegram电报群: https://t.me/nasfan
    排除公告

群晖 img 引导文件转化为 vmdk 引导文件

本帖由 gx5202021-11-02 发布。版面名称:群晖 Synology DSM

  1. gx520

    gx520 New Member

    注册:
    2021-09-22
    帖子:
    11
    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:
     
  2. conray

    conray New Member

    注册:
    2021-10-30
    帖子:
    6
    StarWind V2V Converter 感覺比較好用
     
  3. yuhangyuan

    yuhangyuan New Member

    注册:
    2021-11-14
    帖子:
    1
    转成vmdk的话,多一个专用的引导硬盘。能不能转成iso格式啊?可以用光盘引导启动