<div dir="ltr" style="text-align: left;">
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; margin-left: 0cm; margin-right: 0cm; margin-top: 9.0pt; mso-outline-level: 3;"><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 16.5pt;"><span style="color: #888888; text-decoration-line: none;">Import OVA to Amazon Aws</span><o:p></o:p></span></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm; margin-left: 0cm; margin-right: 0cm; margin-top: 9.0pt; mso-outline-level: 3;"><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 16.5pt;"><br /></span></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="color: #666666; font-family: ";helvetica"; , sans-serif; font-size: 10.5pt;">VM Import/Export enables you to easily import virtual machine images from your existing environment to Amazon EC2 instances and export them back to your on-premises environment. This offering allows you to leverage your existing investments in the virtual machines that you have built to meet your IT security, configuration management, and compliance requirements by bringing those virtual machines into Amazon EC2 as ready-to-use instances. You can also export imported instances back to your on-premises virtualization infrastructure, allowing you to deploy workloads across your IT infrastructure.</span><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;"><o:p></o:p></span></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="font-family: ";trebuchet ms"; , sans-serif; font-size: 10pt;"><a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ImportVMImportImage.html"><span style="color: #888888; text-decoration-line: none;">https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ImportVMImportImage.html</span></a></span><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;"><o:p></o:p></span></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><b><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;">Step 1.  ;: installing the Aws CLI</span></b><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;"><o:p></o:p></span></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="font-family: ";trebuchet ms"; , sans-serif; font-size: 10pt;"><a href="https://docs.aws.amazon.com/cli/latest/userguide/installing.html#install-msi-on-windows"><span style="color: #888888; text-decoration-line: none;">https://docs.aws.amazon.com/cli/latest/userguide/installing.html#install-msi-on-windows</span></a></span><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;"><o:p></o:p></span></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><b><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;">Step 2. We can get the Access Key ID and Secret Key from Aws IAM service under the specific User.</span></b><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;"><o:p></o:p></span></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;">aws</span><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;"> configure<o:p></o:p></span></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;">AWS Access Key ID [None]:<o:p></o:p></span></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;">AWS Secret Access Key [None]:<o:p></o:p></span></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;">Default region name [None]: us-west-2<o:p></o:p></span></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;">Default output format [None]: ENTER<o:p></o:p></span></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><b><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;">Step 3</span></b><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;"><o:p></o:p></span></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;">Now create two files: trust-policy.json &; role-policy.json, in the second file you’ll need to replace “$bucketname” with your bucket name.<o:p></o:p></span></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;">trust-policy.json:<o:p></o:p></span></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;">===============<o:p></o:p></span></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;">{<o:p></o:p></span></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;"> ; ; &#8220;Version&#8221;:&#8221;2012-10-17&#8243;,<o:p></o:p></span></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;"> ; ; &#8220;Statement&#8221;:[<o:p></o:p></span></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;"> ; ; ; ; ; {<o:p></o:p></span></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;"> ; ; ; ; ; ; ; ; &#8220;Sid&#8221;:&#8221;&#8221;,<o:p></o:p></span></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;"> ; ; ; ; ; ; ; ; &#8220;Effect&#8221;:&#8221;Allow&#8221;,<o:p></o:p></span></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;"> ; ; ; ; ; ; ; ; &#8220;Principal&#8221;:{<o:p></o:p></span></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;"> ; ; ; ; ; ; ; ; ; ; ; &#8220;Service&#8221;:&#8221;vmie.amazonaws.com&#8221;<o:p></o:p></span></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;"> ; ; ; ; ; ; ; ; },<o:p></o:p></span></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;"> ; ; ; ; ; ; ; ; &#8220;Action&#8221;:&#8221;sts:AssumeRole&#8221;,<o:p></o:p></span></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;"> ; ; ; ; ; ; ; ; &#8220;Condition&#8221;:{<o:p></o:p></span></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;"> ; ; ; ; ; ; ; ; ; ; ; &#8220;StringEquals&#8221;:{<o:p></o:p></span></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;"> ; ; ; ; ; ; ; ; ; ; ; ; ; ; &#8220;sts:ExternalId&#8221;:&#8221;vmimport&#8221;<o:p></o:p></span></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;"> ; ; ; ; ; ; ; ; ; ; ; }<o:p></o:p></span></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;"> ; ; ; ; ; ; ; ; }<o:p></o:p></span></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;"> ; ; ; ; ; }<o:p></o:p></span></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;"> ; ; ]<o:p></o:p></span></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;">}<o:p></o:p></span></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;">===============<o:p></o:p></span></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;">role-policy.json:<o:p></o:p></span></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;">=================<o:p></o:p></span></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;">{<o:p></o:p></span></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;"> ; ; &#8220;Version&#8221;:&#8221;2012-10-17&#8243;,<o:p></o:p></span></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;"> ; ; &#8220;Statement&#8221;:[<o:p></o:p></span></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;"> ; ; ; ; ; {<o:p></o:p></span></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;"> ; ; ; ; ; ; ; ; &#8220;Effect&#8221;:&#8221;Allow&#8221;,<o:p></o:p></span></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;"> ; ; ; ; ; ; ; ; &#8220;Action&#8221;:[<o:p></o:p></span></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;"> ; ; ; ; ; ; ; ; ; ; ; &#8220;s3:ListBucket&#8221;,<o:p></o:p></span></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;"> ; ; ; ; ; ; ; ; ; ; ; &#8220;s3:GetBucketLocation&#8221;<o:p></o:p></span></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;"> ; ; ; ; ; ; ; ; ],<o:p></o:p></span></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;"> ; ; ; ; ; ; ; ; &#8220;Resource&#8221;:[<o:p></o:p></span></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;"> ; ; ; ; ; ; ; ; ; ; ; &#8220;arn:aws:s3:::$bucketname&#8221;<o:p></o:p></span></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;"> ; ; ; ; ; ; ; ; ]<o:p></o:p></span></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;"> ; ; ; ; ; },<o:p></o:p></span></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;"> ; ; ; ; ; {<o:p></o:p></span></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;"> ; ; ; ; ; ; ; ; &#8220;Effect&#8221;:&#8221;Allow&#8221;,<o:p></o:p></span></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;"> ; ; ; ; ; ; ; ; &#8220;Action&#8221;:[<o:p></o:p></span></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;"> ; ; ; ; ; ; ; ; ; ; ; &#8220;s3:GetObject&#8221;<o:p></o:p></span></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;"> ; ; ; ; ; ; ; ; ],<o:p></o:p></span></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;"> ; ; ; ;  ; ; ; ;&#8220;Resource&#8221;:[<o:p></o:p></span></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;"> ; ; ; ; ; ; ; ; ; ; ; &#8220;arn:aws:s3:::$bucketname/*&#8221;<o:p></o:p></span></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;"> ; ; ; ; ; ; ; ; ]<o:p></o:p></span></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;"> ; ; ; ; ; },<o:p></o:p></span></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;"> ; ; ; ; ; {<o:p></o:p></span></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;"> ; ; ; ; ; ; ; ; &#8220;Effect&#8221;:&#8221;Allow&#8221;,<o:p></o:p></span></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;"> ; ; ; ; ; ; ; ; &#8220;Action&#8221;:[<o:p></o:p></span></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;"> ; ; ; ; ; ; ; ; ; ; ; &#8220;ec2:ModifySnapshotAttribute&#8221;,<o:p></o:p></span></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;"> ; ; ; ; ; ; ; ; ; ; ; &#8220;ec2:CopySnapshot&#8221;,<o:p></o:p></span></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;"> ; ; ; ; ; ; ; ; ; ; ; &#8220;ec2:RegisterImage&#8221;,<o:p></o:p></span></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;"> ; ; ; ; ; ; ; ; ; ; ; &#8220;ec2:Describe*&#8221;<o:p></o:p></span></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;"> ; ; ; ; ; ; ; ; ],<o:p></o:p></span></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;"> ; ; ; ; ; ; ; ; &#8220;Resource&#8221;:&#8221;*&#8221;<o:p></o:p></span></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;"> ; ; ; ; ; }<o:p></o:p></span></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;"> ; ; ]<o:p></o:p></span></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;">}<o:p></o:p></span></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;">===================<o:p></o:p></span></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;">Now, use the aws cli tools to apply the policies:<o:p></o:p></span></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;">$ aws iam create-role &#8211;role-name vmimport &#8211;assume-role-policy-document ;<a href="file://trust-policy.json/"><span style="color: #888888; text-decoration-line: none;">file://trust-policy.json</span></a><o:p></o:p></span></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;">$ aws iam put-role-policy &#8211;role-name vmimport &#8211;policy-name vmimport &#8211;policy-document ;<a href="file://role-policy.json/"><span style="color: #888888; text-decoration-line: none;">file://role-policy.json</span></a><o:p></o:p></span></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><b><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;">Step 4 : Check VM prerequisite before exporting as OVA</span></b><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;"><o:p></o:p></span></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="font-family: ";trebuchet ms"; , sans-serif; font-size: 10pt;"><a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/VMImportPrerequisites.html"><span style="color: #888888; text-decoration-line: none;">https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/VMImportPrerequisites.html</span></a></span><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;"><o:p></o:p></span></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;">========================<o:p></o:p></span></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="color: #1f497d; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;">In regard of VM, before exporting it from Vsphere and importing to AWS cloud, please make sure that all prerequisites for Import have been fullfiled.</span><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;"><o:p></o:p></span></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="color: #1f497d; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;">Compare your VM with this checklist:</span><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;"><o:p></o:p></span></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="color: #1f497d; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;">-Your OS version is supported, ;<a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/VMImportPrerequisites.html#vmimport-operating-systems"><span style="color: #888888; text-decoration-line: none;">https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/VMImportPrerequisites.html#vmimport-operating-systems</span></a></span><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;"><o:p></o:p></span></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="color: #1f497d; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;">-all unnecessary services are disabled,</span><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;"><o:p></o:p></span></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="color: #1f497d; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;">-no unnecessary applications are placed in Windows Startup,</span><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;"><o:p></o:p></span></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="color: #1f497d; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;">-there are no pending reboots (reboot flag set by Windows Update or by any other software),</span><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;"><o:p></o:p></span></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="color: #1f497d; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;">-VM volumes are defragmented and the size of each disk is resized to necessary (bigger disk=longer conversion time),</span><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;"><o:p></o:p></span></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="color: #1f497d; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;">-you use single network interface setup to use DHCP (this should be done prior to import),</span><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;"><o:p></o:p></span></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="color: #1f497d; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;">-no ISO is attached to this VM,</span><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;"><o:p></o:p></span></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="color: #1f497d; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;">-make sure that Microsoft .NET Framework 3.5 Service Pack 1 or later are installed (required to support Ec2Config),</span><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;"><o:p></o:p></span></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="color: #1f497d; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;">-your VM&#8217;s root volume use MBR partition table,</span><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;"><o:p></o:p></span></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="color: #1f497d; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;">-your anti-virus and anti-spyware software and firewalls are disabled,</span><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;"><o:p></o:p></span></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="color: #1f497d; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;">-only one partition is bootable,</span><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;"><o:p></o:p></span></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="color: #1f497d; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;">-rdp access is enabled,</span><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;"><o:p></o:p></span></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="color: #1f497d; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;">-the administrator account and all other user accounts use secure passwords. All accounts must have passwords or the importation might fail.</span><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;"><o:p></o:p></span></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="color: #1f497d; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;">-Uninstall the VMware Tools from your VMware VM,</span><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;"><o:p></o:p></span></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="color: #1f497d; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;">-the language of your OS is EN-US,</span><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;"><o:p></o:p></span></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="color: #1f497d; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;">-these hotfixes are installed (according to OS version):</span><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;"><o:p></o:p></span></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="color: #1f497d; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;"><a href="https://support.microsoft.com/en-us/kb/2922223"><span style="color: #888888; text-decoration-line: none;">https://support.microsoft.com/en-us/kb/2922223</span></a></span><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;"><o:p></o:p></span></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="color: #1f497d; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;"><a href="https://support.microsoft.com/en-us/kb/2800213"><span style="color: #888888; text-decoration-line: none;">https://support.microsoft.com/en-us/kb/2800213</span></a></span><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;"><o:p></o:p></span></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="color: #1f497d; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;">Install Latest Ec2Config</span><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;"><o:p></o:p></span></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="color: #1f497d; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;">https://aws.amazon.com/developertools/5562082477397515</span><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;"><o:p></o:p></span></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="color: #1f497d; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;">=================</span><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;"><o:p></o:p></span></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><b><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;">Step 5 : Uploading the OVA to S3 and Creating the AMI</span></b><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;"><o:p></o:p></span></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;">You can upload your VMs in OVA format to your Amazon S3 bucket using the upload tool of your choice. After you upload your VM to Amazon S3, you can use the AWS CLI to import your OVA image. These tools accept either a URL (public Amazon S3 file, a signed GET URL for private Amazon S3 files) or the Amazon S3 bucket and path to the disk file.<o:p></o:p></span></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;">Use aws ec2 import-image to create a new import image task.<o:p></o:p></span></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;">The syntax of the command is as follows:<o:p></o:p></span></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;">$ aws ec2 import-image &#8211;description &#8220;Windows 2008 OVA&#8221; &#8211;disk-containers ;<a href="file://containers.json/"><span style="color: #888888; text-decoration-line: none;">file://containers.json</span></a><o:p></o:p></span></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;">The file containers.json is a JSON document that contains information about the image. The S3Key is the name of the image file you want to upload to the S3Bucket.<o:p></o:p></span></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;">[{<o:p></o:p></span></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;"> ; ; ; &#8220;Description&#8221;: &#8220;First CLI task&#8221;,<o:p></o:p></span></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;"> ; ; ; &#8220;Format&#8221;: &#8220;ova&#8221;,<o:p></o:p></span></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;"> ; ; ; &#8220;UserBucket&#8221;: {<o:p></o:p></span></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;"> ; ; ; ; ; ; ; &#8220;S3Bucket&#8221;: &#8220;my-import-bucket&#8221;,<o:p></o:p></span></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;"> ;  ; ; ; ; ; ;&#8220;S3Key&#8221;: &#8220;my-windows-2008-vm.ova&#8221;<o:p></o:p></span></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;"> ; ; ; }<o:p></o:p></span></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;">}]<o:p></o:p></span></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><b><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;">Step 6 : Checking the Status</span></b><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;"><o:p></o:p></span></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;">Use the ;“aws ec2 describe-import-image-tasks” ;command to return the status of the task. The syntax of the command is as follows:<o:p></o:p></span></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="color: #1f497d; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;">Regarding the License licensing, within the  ;api-call &#8220;aws ec2 import-image&#8221; we can define a &#8220;&#8211;license-type&#8221; value.</span><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;"><o:p></o:p></span></div>
<div style="background: white; line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;"><span style="color: #1f497d; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;">Based on this option your VM will use your license (BYOL) or ;<b>will activate itself in AWS KMS</b>[4]. Option should be set to &#8220;AWS&#8221; or &#8220;BYOL&#8221;.</span><span style="color: #666666; font-family: ";trebuchet ms"; , sans-serif; font-size: 10.0pt;"><o:p></o:p></span></div>
<p></p>
<div></div>
</div>

