[colug-432] import centos virtualbox into e2

Rick Hornsby richardjhornsby at gmail.com
Fri May 5 15:17:46 EDT 2017


Has anyone tried to import a CentOS virtualbox VM into aws/ec2?

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.

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?

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..."

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.

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?

thanks!

[1]
http://docs.aws.amazon.com/vm-import/latest/userguide/vmimport-image-import.html
[2] https://www.elastic.co/blog/create-an-ami-from-your-own-vm-image
[3] http://cloudinit.readthedocs.io/en/latest/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.colug.net/pipermail/colug-432/attachments/20170505/dc078f8d/attachment.html 


More information about the colug-432 mailing list