Unable to import Virtual Machine into Amazon EC2

Posted on 2011-05-10
Last Modified: 2014-11-12

I'm trying to import a virtual machine into Amazon EC2 but sofar I'm unsuccessful. Honestly I'm a little lost at this stage. I converted the Virtual Machine I created in Microsoft Hyper-V to VMDK format with no problems.

I also download and setup the Amazon EC 2 API tools with no problems and tested them. I've been able to launch a Windows instance from the AWS Management Console with no problems either.

The first problem I came across was while to import the virtual and I selected format "VMDK"

C:\aws>ec2-import-instance 123M.vmdk -f VMDK -s 12 z eu-west-1a -b test -o 111111111 -w 11111111111
WARNING:  Ignoring extra parameter(s): [ z, eu-west-1a ]
ERROR: Unknown VMDK format

I then decided to switch to RAW format instead, this was successful and I was able to get a "task ID" . I created the Amazon EBS volume with a size of 12GB before running this command mind you. Volume is vol-6a42df03 screenshot attached

C:\aws>ec2-import-instance 123M.vmdk -f RAW -s 12 z eu-west-1a -b vol-6a42df03 -
o 111111111111111 -w 11111111111111
WARNING:  Ignoring extra parameter(s): [ z, eu-west-1a ]
Disk image format: RAW
Converted volume size: 10284171264 bytes (9.58 GiB)
Requested EBS volume size: 12884901888 bytes (12.00 GiB)
TaskType        IMPORTINSTANCE  TaskId  import-i-ffwr4pgf       ExpirationTime
2011-05-17T19:27:53+00:00       Status  active  InstanceID      i-cc6a75a3
DISKIMAGE       DiskImageFormat RAW     DiskImageSize   10284171264     VolumeSi
ze      12      AvailabilityZone        us-east-1c      ApproximateBytesConverte
d       0       Status  active

I then tried to run the task but I'm getting the error message below! Can you please help me? Also I don't understand why I couldn't use the VMDK format it states that in alot of tutorials.

C:\aws>ec2-upload-disk-image -t import-i-ffwr4pgf -o 111111111111 -w 11111111111111
ERROR: Required argument 'disk-image' missing (-h for usage). Amazon EBS
Question by:makel2
    LVL 116

    Expert Comment

    by:Andrew Hancock (VMware vExpert / EE MVE)
    I would recommend using Cloud Switch.

    It's a virtual appliance, do you only have Hyper-V?i


    Author Comment

    Yes I have my own personal Hyper-V Server at home! Don't have access to ESX Servers I'm afraid
    LVL 8

    Accepted Solution

    Sounds like they're using VMWare.

    Did you try using VMWare's Stand Alone Converter Utility?  It works best when you
     1- shutdown the Hyper-V VM
     2- Run the converter utility on the Hyper-V host server.  It will install a little bit of client software
         (I usually choose to have it removed after the conversion is finished)
     3- Then you have a nicely converted VMWare server file to work with.
    *4-You could load it into VMWare Server to test it out.  But it might be recommended to leave it disconnected from the virtual network.

    LVL 116

    Expert Comment

    by:Andrew Hancock (VMware vExpert / EE MVE)
    how dod you convert hyper-v to vmdk?

    Download VMware vCenter Converter here

    VMware vCenter Converter Standalone 4.x Documentation

    VMware vCenter Converter Standalone 4.3 User Guide

    For the conversion steps, read fellow Expert Bestway's article.

    Best Practice Video Guide here

    Featured Post

    What Security Threats Are You Missing?

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Join & Write a Comment

    If your business is like most, chances are you still need to maintain a fax infrastructure for your staff. It’s hard to believe that a communication technology that was thriving in the mid-80s could still be an essential part of your team’s modern I…
    It Is not possible to enable LLDP in vSwitch(at least is not supported by VMware), so in this article we will enable this, and also go trough how to enabled CDP and how to get this information in vSwitches and also in vDS.
    The viewer will learn how to successfully download and install the SARDU utility on Windows 7, without downloading adware.
    This video shows you how easy it is to boot from ISO images for virtual machines with the ISO images stored on a local datastore on the ESXi host.

    732 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now