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

Unable to import Virtual Machine into Amazon EC2

Hi,

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

http://www.cloudswitch.com/

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

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

http://downloads.vmware.com/d/details/converter430/dGhiZEB0ZWJkd2V3


09Q1-VM-CONVERTER-DS-EN.pdf
0
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
how dod you convert hyper-v to vmdk?

Download VMware vCenter Converter here

http://downloads.vmware.com/d/info/datacenter_downloads/vmware_vcenter_converter_standalone/4_0

VMware vCenter Converter Standalone 4.x Documentation

http://www.vmware.com/support/pubs/converter_pubs.html

VMware vCenter Converter Standalone 4.3 User Guide

http://www.vmware.com/pdf/convsa_43_guide.pdf

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

http://www.experts-exchange.com/Software/VMWare/A_3639-VMware-vConverter-P2V-for-Windows-Servers.html

Best Practice Video Guide here

http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1004588
0

Featured Post

What Security Threats Are We Predicting for 2018?

Cryptocurrency, IoT botnets, MFA, and more! Hackers are already planning their next big attacks for 2018. Learn what you might face, and how to defend against it with our 2018 security predictions.

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