vm2ami

Export a vCenter VM's vmdks and ovf descriptor to local file system. Then upload a vmdk to the aws s3 s bucket specified, convert the image to an AMI, then finally rename, and copy the image to all specified regions.


Keywords
export, vmdk, vCenter, vm, ami, upload
License
MIT
Install
pip install vm2ami==1.0.0

Documentation

vCenter vm to AWS ami converter

About

vm2ami will use the combination of the ovfexporter and amiuploader packages to perform an export of a vCenter vmdk to the local file system. The exported vmdk will then be uploaded into the specified s3 bucket with amiuploader. After image fully uploaded, the amiuploader script will perform the calls necessary to convert the image to an AMI, then rename and copy the image to all specified regions

Requirements

  • vCenter user should have permissions to export a vm

In order to complete all necessary operations to upload, import and copy images the following system requirements must be met

This script does its best to validate that you have permissions, but no promises are made

Installation

Ensure you have the local silo repository in your .pip config and:

$ pip install vm2ami

Running

All arguments and parameters are specified in the help menu when running the script

$ vm2ami -h