Error importing vmdk files using ec2 developer too

2019-02-21 20:17发布

Although vmdk disk format is supported by ec2-import-instance tool, every time I try to run the command on a vmdk file, I get the following error:

    ERROR: File uses unsupported compression algorithm 0

I invoke the tool in the following format:

    ec2-import-instance -f vmdk -o <ACCESS KEY> -w <SECRET KEY> <VMDK file>

I am using ec2 tools version 1.6.6.1.

5条回答
不美不萌又怎样
2楼-- · 2019-02-21 20:29

I have experienced the same issue. My solution: the StarWind V2V converter to convert VMDK to RAW (-f RAW) or VHD (-f VHD).

查看更多
\"骚年 ilove
3楼-- · 2019-02-21 20:30

ERROR: File uses unsupported compression algorithm 0. The VMDK was created using OVA format instead of OVF format.

Resolution

Create the VMDK in OVF format.

查看更多
别忘想泡老子
4楼-- · 2019-02-21 20:37

This ec2 migration tool works with both VMware workstation and ESX http://cloudscraper.migrate2iaas.com/ Just run it from your running server.

查看更多
霸刀☆藐视天下
5楼-- · 2019-02-21 20:43

Looks like it's got nothing to do with "compression algorithm" but instead more to do with supported vmdk formats as documented in http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/VMImportPrerequisites.html

查看更多
做自己的国王
6楼-- · 2019-02-21 20:54

I fixed this for myself by exporting my VM from VirtualBox(where I created it). This exported its into OVF format(I had to change the default exention from OVA to OVF). Then ec2-import-instance worked.

This put me on the right track when converting to RAW using qemu-img did not work.

查看更多
登录 后发表回答