<html><head><style>body{font-family:Helvetica,Arial;font-size:13px}</style></head><body style="word-wrap:break-word"><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto"><br></div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto">Has anyone tried to import a CentOS virtualbox VM into aws/ec2?</div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto"><br></div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto">I'm able to follow Amazon's instructions[1] without encountering any obvious errors, but when I try to launch the instance (either manually via the ec2 web UI or using the AMI id in test kitchen), it's almost as if ec2 can't or didn't configure the host.</div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto"><br></div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto">The login prompt (via ec2 screenshot) says 'localhost' instead of "ec2-ip-1.2.3.4" or whatever, and test kitchen is never able to successfully ssh into the host, suggesting that the ssh keys maybe weren't able to be installed by ec2 when it provisioned the instance from the ami?</div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto"><br></div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto">I tried following the "manual steps" instructions from elastic[2], which talk about configuring cloud-init, but there seems to be a big hole in their documentation. They go from "run this script [on your local vm]" (which installs a couple of packages and creates a config file) immediately to "now that your amazon ami is created..."</div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto"><br></div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto">But they completely skip over any other intermediate cloud-config/cloud-init commands you're maybe supposed to run, as well as any commands/actions you need to actually get your local vm sent up to ec2 as an AMI.</div><br><div id="bloop_sign_1494000023685085184" class="bloop_sign"></div><div id="bloop_sign_1494000023685085184" class="bloop_sign">I haven't looked at every page of the docs[3] for cloud-init, but so far I'm not finding any commands I need to run while the vm is still local. It's almost as if installing cloud-init and setting the config file is supposed to do everything else by magic, maybe on the ec2 side?</div><div id="bloop_sign_1494000023685085184" class="bloop_sign"><br></div><div id="bloop_sign_1494000023685085184" class="bloop_sign">thanks!</div><div id="bloop_sign_1494000023685085184" class="bloop_sign"><br></div><div id="bloop_sign_1494000023685085184" class="bloop_sign">[1] <a href="http://docs.aws.amazon.com/vm-import/latest/userguide/vmimport-image-import.html">http://docs.aws.amazon.com/vm-import/latest/userguide/vmimport-image-import.html</a></div><div id="bloop_sign_1494000023685085184" class="bloop_sign">[2] <a href="https://www.elastic.co/blog/create-an-ami-from-your-own-vm-image">https://www.elastic.co/blog/create-an-ami-from-your-own-vm-image</a></div><div id="bloop_sign_1494000023685085184" class="bloop_sign">[3] <a href="http://cloudinit.readthedocs.io/en/latest/">http://cloudinit.readthedocs.io/en/latest/</a></div></body></html>