Yes, you can!
While on May 13, 2016 you can't do it... actually, as of today, December 13 2017, the answer is yes, you can install Amazon Linux 2 on your own machines and in his Amazon AMI image!
https://aws.amazon.com/amazon-linux-2/
It is also available as virtual machine images for VMware, Oracle VM VirtualBox, and Microsoft Hyper-V virtualization solutions for on-premises development and testing.
This is from the announcement:
https://aws.amazon.com/about-aws/whats-new/2017/12/introducing-amazon-linux-2/
Virtual machine images and docker images:
Yahoo! From the FAQ you're supposed to generate a config.iso with user-data and meta-data:
... but it looks like this example of a cloud-init is a little more on point at explaining the different ways that you can set up the auth:
https://cdn.amazonlinux.com/os-images/latest/README.cloud-init
As a MacOS user rather than Linux desktop user, I also needed to know that the cdrtools
homebrew package provides mkisofs
which is apparently near identical to the genisoimage
tool that is mentioned throughout the Amazon Linux cloud-init documentation.
mkisofs -output seed.iso -volid cidata -joliet -rock user-data meta-data
It may also help to know that if the seed.iso
file generated above is not connected on first boot, it will be ineffectual. (This took me too many login attempts to figure out on my own, and I didn't see it mentioned anywhere in the documentation that I skimmed.)
If you just want an ec2-user
account with password set to password
, attaching this init.iso file on first boot will do that.
d3fbbe38530f6c49964e6829e86d1133b4dfe2b7 /Users/kingdonb/Downloads/init.iso
The contents of that file are in this gist, for posterity in case the init.iso link becomes bad.
Hope this helps!
1I know this is an old question but… A LAMP application should not be this complicated: “…either switch the system or spend thousand of hours to setup the php application.” There is utterly no way a half competently setup PHP application should require this level of tweaks. LAMP stacks are extremely portable. I would highly recommend using Vagrant and learn how to setup a provisioning script that will allow the automatic creation of the massively tweaked server with a few keystrokes. – JakeGould – 2017-12-14T03:43:03.883
@riksof-zeeshan could you visit this question again and see if my answer is helpful for you? I think I've finished editing it... – Kingdon – 2018-01-21T16:33:19.807
1@Kingdon nahi bhai – riksof-zeeshan – 2018-01-24T06:50:58.150