Skip to content

nickkadams/aws-import-vm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

A packer config for creating a VMware template on vCenter and exporting the OVA for import into AWS as a custom AMI (2 accounts/regions).

Software Requirements

Tested with:

VMware Requirements

Tested with:

  • ESXi 6.7
  • vCenter 6.7

Ports:

  • SSH/TCP 22 open temporarily to a single ESXi server
  • VNC/TCP 5900-5911 open to a single ESXi server

Instructions: https://blog.ukotic.net/2019/03/05/configuring-esxi-prerequisites-for-packer/

AWS Requirements

  • S3 bucket per region for VM/OVA import/export
  • VM import service role and policy per account

Instructions: https://docs.aws.amazon.com/vm-import/latest/userguide/vmimport-image-import.html

Troubleshooting

OVA upload:

aws --profile=YOUR_PROFILE s3api list-multipart-uploads --bucket my-import-bucket

Import process:

aws --profile=YOUR_PROFILE ec2 describe-import-image-tasks

ToDo

License and Author

  • Author:: Nick Adams