WilliamLam.com

  • About
    • About
    • Privacy
  • VMware Cloud Foundation
  • VKS
  • Homelab
    • Hardware Options
    • Hardware Reviews
    • Lab Deployment Scripts
    • Nested Virtualization
    • Homelab Podcasts
  • VMware Nostalgia
  • Apple
You are here: Home / Exporting An Amazon EC2 Instance To Run On vSphere

Exporting An Amazon EC2 Instance To Run On vSphere

05.02.2013 by William Lam // 15 Comments

I attended the Silicon Valley VMUG yesterday and there was an interesting question that was brought up at the end of Joe Sarabia's Software Defined Datacenter session (which was great BTW, folks stayed past the end and this was during lunch!). The question from the attendee was how to export an Amazon EC2 Instance and run that on an vSphere ESXi host? Joe's answer was that there is not a tool from VMware but there should be some 3rd party tools out there that could help with this task.

This was not something I had really thought about before since I do not use Amazon EC2 and of course that perked my curiosity. I assumed importing and exporting Instances to and from Amazon EC2 would be just as easy as it is on VMware vSphere. To export a VM in vSphere, you simply select the VM and then Export which can be outputted to either an OVF or OVA format.

After a quick search on Amazon's EC2 website, I found that you can export an EC2 Instance by using EC2 API Tools. So I went ahead and deployed both a Linux and Windows Instance and ran through the installation of the EC2 API Tools on my Mac OS X system at home. I tried to export the Linux Instance and it threw an error saying not supported which I thought was odd and then tried the Windows Instance and it threw another interesting error:

Client.NotExportable: Only imported instances can be exported.

My initial thought was that I must have done something wrong. I dug a bit more into Amazon's documentation which was not very easy to find and finally found the Exporting EC2 Instance documentation. It turns out there are a few "caveats" if you want to export an EC2 Instance:

Only the following operating systems are supported:

  • Windows Server 2003 R2 (Standard, Enterprise, and Datacenter)
  • Windows Server 2008 (Standard, Enterprise, and Datacenter)
  • Windows Server 2008 R2 (Standard, Enterprise, and Datacenter)

This meant that you could not export any of your Linux Instances. In addition, these Instances must be uploaded by the user initially for them to be eligible for export. I also found there were several other export limitations:

  • You cannot export Amazon Elastic Block Store (Amazon EBS) data volumes.
  • You cannot export an instance that has more than one virtual disk.
  • You cannot export an instance that has more than one network interface.

I was actually quite surprised to see how difficult and restrictive Amazon has made it for exporting their EC2 Instances, I really thought it would have been just as easy as it is on VMware vSphere. I also came across this VMware KB 1018015 which provides an alternative to the EC2 API Tools, which has you install VMware Converter on the Windows system to export the EC2 Instance.

More from my site

  • Auditing vSphere Datastore activities (Download, Upload, Copy, Move, Rename and Delete)
  • Lossless OVF Export in vSphere 5.1 & vCloud Director 5.1
  • Quick Tip - Certificate is not trusted when importing signed OVF/OVA into vCenter Server
  • Quick Tip - Dynamic OVF input properties using DeploymentOptions
  • Why does Deploy OVF Template operation show vpxd-extension-[uuid]?

Categories // Uncategorized Tags // amazon ec2, export, ova, ovf, vSphere

Comments

  1. *protectedMathew Lodge says

    05/02/2013 at 3:06 pm

    I met some of the folks from the AWS Import/Export team at VMworld last year. The restriction is there in order to comply with Microsoft Windows licensing (you can only import/export Windows VMs to/from EC2).

    Reply
    • *protectedWilliam Lam says

      05/02/2013 at 3:12 pm

      That's what I figured Matthew, thanks for confirming. Though I would have expected that the Linux Instances to be supported, but that's not the case. I'm not sure what their logic is there. Anyhow, not as easy as I had hoped ...

      Reply
    • *protectedMorne Smith says

      05/02/2013 at 10:00 pm

      William...simple....Amazon wants to tie you into their echo system!

      Reply
  2. *protectedKattrap says

    05/03/2013 at 7:39 pm

    Last time I checked you can only import Windows server as well.

    AWS would probably say that it's better (performance/ less troublehshooting) to create an EC2 from their AMI and move the userdata to the new EC2.
    Same as the rest of us would probably say when moving between any two hypervisor stacks.

    Reply
    • *protectedWilliam Lam says

      05/03/2013 at 8:00 pm

      I actually disagree with your last statement. I think moving a VM is much easier than just moving the data, especially when you can easily export it into a common standard such as OVF/OVA and import that into other hypervisors including vSphere, Hyper-V, etc.

      Reply
    • *protectedAnonymous says

      05/13/2013 at 7:24 am

      Hi Guys,

      After lot of efforts & RND i managed to get below error while exporting an EC2 instance.

      Client.NotExportable: Only imported instances can be exported

      If we interpret this message it means "You could only export the instances that have been imported earlier”

      So it's a compulsion that any Instance must be uploaded by the user initially for them to be eligible for export.

      Also is this really an export limitation or the restriction is there in order to comply with Microsoft Windows licensing model which is you can only import/export Windows VMs to/from EC2.

      I also found there were several other export limitations:
      You cannot export Amazon Elastic Block Store (Amazon EBS) data volumes.
      You cannot export an instance that has more than one virtual disk.
      You cannot export an instance that has more than one network interface.

      Could someone from Amazon please confirm the same?

      Reply
  3. *protectedAnonymous says

    05/08/2013 at 3:36 pm

    Himanshu@Cloud_baby

    Hi Guys,

    After lot of efforts & RND i managed to get below error while exporting an EC2 instance.

    Client.NotExportable: Only imported instances can be exported

    If we interpret this message it means "You could only export the instances that have been imported earlier”

    So it's a compulsion that any Instance must be uploaded by the user initially for them to be eligible for export.

    Also is this really an export limitation or the restriction is there in order to comply with Microsoft Windows licensing model which is you can only import/export Windows VMs to/from EC2.

    I also found there were several other export limitations:
    You cannot export Amazon Elastic Block Store (Amazon EBS) data volumes.
    You cannot export an instance that has more than one virtual disk.
    You cannot export an instance that has more than one network interface.

    Could someone from Amazon please confirm the same?

    Reply
  4. *protectedMatjaž Antloga says

    11/06/2013 at 5:35 pm

    After some thinking don't see any real problem here, at least for smaller setups

    Windows: use Converter
    Linux: setup new machine then scp everything needed over WAN

    downtime in both cases.
    linux example: http://serverfault.com/questions/239138/migrating-from-one-dedicated-linux-server-to-another

    Matjaž, https://twitter.com/balkancloud

    Reply
  5. *protectedFelipe Pasa says

    01/07/2014 at 2:27 am

    Amazon sucks! i dont agree with this limitations

    WHY NOT???? i only want to copy my Centos Machine to another server!

    create a disk image is a basic function on my point of view.

    sory about my english. is very poor

    Reply
  6. *protectedvrtigo1 says

    04/08/2014 at 9:23 pm

    I found this article while googling in hopes that someone has come up with a better method of exporting EC2 instances to VMware in the year or so since I have last done it. Using converter does work however I had to alter some of the storage drivers after exporting the EC2 instance in order to get it to boot in Workstation/ESXi. Overall it is pretty simple although it is a very manual process.

    Reply
  7. *protectedBeware_Cloud_Lock-in says

    09/24/2014 at 10:17 am

    Beware! That's Cloud-Lockin

    Reply
  8. *protectedarchangelwu says

    01/27/2015 at 9:33 am

    http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/VMImportPrerequisites.html

    Exporting instances and volumes is subject to the following limitations:

    You cannot export Amazon Elastic Block Store (Amazon EBS) data volumes.

    You cannot export an instance that has more than one virtual disk.

    You cannot export an instance that has more than one network interface.

    You cannot export an instance from Amazon EC2 unless you previously imported it into Amazon EC2 from another virtualization environment.

    Reply
  9. *protectedkaran says

    03/13/2015 at 6:40 am

    Can you please provide any link or URL for exporting ec2 instance to OVF/OVA.

    Thanks in advance.

    Reply
  10. *protectedfourthgrademathclub says

    08/25/2016 at 3:43 pm

    This is pretty rotten. Are there any other services besides amazon that might provide this ability? I'm thinking of moving off.

    Reply

Trackbacks

  1. Scientific Hooliganism » Amazon Finally Let Me Down says:
    07/03/2015 at 8:36 pm

    […] The phrasing indicates a positive qualification for some VMs, but not a disqualifying requirement for all VMs. In fact, I did not find this as an explicit requirement for all VMs anywhere in the available documentation. I found confirmations on a thread in the AWS Developer Forums and this blog post. […]

    Reply

Thanks for the comment!Cancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Search

Thank Author

Author

William is Distinguished Platform Engineering Architect in the VMware Cloud Foundation (VCF) Division at Broadcom. His primary focus is helping customers and partners build, run and operate a modern Private Cloud using the VMware Cloud Foundation (VCF) platform.

Connect

  • Bluesky
  • Email
  • GitHub
  • LinkedIn
  • Mastodon
  • Reddit
  • RSS
  • Twitter
  • Vimeo

Recent

  • Automating the vSAN Data Migration Pre-check using vSAN API 06/04/2025
  • VCF 9.0 Hardware Considerations 05/30/2025
  • VMware Flings is now available in Free Downloads of Broadcom Support Portal (BSP) 05/19/2025
  • VMUG Connect 2025 - Minimal VMware Cloud Foundation (VCF) 5.x in a Box  05/15/2025
  • Programmatically accessing the Broadcom Compatibility Guide (BCG) 05/06/2025

Advertisment

Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy

Copyright WilliamLam.com © 2025