• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 3447
  • Last Modified:

Unable to import Virtual Machine into Amazon EC2


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
  • 2
1 Solution
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
I would recommend using Cloud Switch.


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

makel2Author Commented:
Yes I have my own personal Hyper-V Server at home! Don't have access to ESX Servers I'm afraid
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.


Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
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

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Managing Security Policy in a Changing Environment

The enterprise network environment is evolving rapidly as companies extend their physical data centers to embrace cloud computing and software-defined networking. This new reality means that the challenge of managing the security policy is much more dynamic and complex.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now