How to run an OVA + OVF appliance inside of AWS EC2

amazon ec2githubvirtualization

GitHub Enterprise ships as an Open Virtualisation Appliance and File; it's intended to be dropped into existing virtualization setup like VMWare, VirtualBox, etc.

I'd like to run it inside of the AWS EC2 cloud (Github doesn't provide an AMI currently).

I've read around the subject and it seems like AWS EC2's VMImport tool only supports Windows VMs, currently.

I wonder if there exists a step-by-step guide to exporting an OVA/OVF appliance into an EC2 instance, so I can create an AMI of it and go from there? I've tried to follow this guide but I don't know how to follow steps 1-3, honestly; GHE only gives me limited ssh access to the instance, and I'm not sure what to look for or how to look for it. GHE seems to ship on an Ubuntu base distribution.

(I'm still quite a beginner-level linux sysadmin; I come from a Windows development background, but am quite capable of learning quickly.)

Best Answer

It does appear that you can import an OVA/OVF using the ec2-import-image command:

Documentation from Amazon

Relevant text:

You can import VMware ESX VMDK images, Citrix Xen VHD images and Microsoft Hyper-V VHD images for Microsoft Windows Server 2003 R2 and 2008 R1 and R2. You can export previously imported EC2 instances to VMware ESX VMDK, VMware ESX OVA, Microsoft Hyper-V VHD or Citrix Xen VHD file formats. We plan to support import for additional operating systems, versions and virtualization infrastructure products in the future.

Just check to make sure that you're running the latest version of your AWS toolkits and you should be fine. You'd want to select the "Raw" format for -f and make sure that the other flags are correct. I have no experience with the github enterprise VM, so I can't get into specifics, but, with a little bit of poking, you should be fine.

ec2-import-instance DISK_IMAGE_FILENAME -t INSTANCETYPE -f FORMAT -a ARCHITECTURE-SYSTEM -b S3_BUCKET_NAME -o OWNER -w SECRETKEY

ec2-import-instance command reference

Related Topic