title: Error in EC2 instance creation
body: <p>I am trying to create an ec2 instance from my java code. If I use the the image id provided by Amazon as default images, it works. </p>
  
  <p>For Example,the following code works</p>
  
  <pre><code>runInstancesRequest.withImageId("ami-37501207")
                      .withInstanceType("t1.micro").withMinCount(1)
                      .withMaxCount(1).withKeyName("yarn-research-aws");
  RunInstancesResult runInstancesResult = 
                        amazonEC2Client.runInstances(runInstancesRequest);
  </code></pre>
  
  <p>But, If I use my user defined image where I already installed Java and made a few changes, it gives me an error.</p>
  
  <pre><code>withImageId("ami-6fc1965f")
  </code></pre>
  
  <p>The above image id gives me the following error</p>
  
  <pre><code>Non-Windows instances with a virtualization type of 'hvm' are currently not supported for this instance type.
  </code></pre>
  
  <p>How will I do this?</p>